03.10.2016 Views

Investigation of Linux.Mirai Trojan family

u97CXm

u97CXm

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

32<br />

32<br />

.text:0804AE31 push eax<br />

.text:0804AE32 push eax<br />

.text:0804AE33 mov eax, dword ptr [esp+64h<br />

+size_<strong>of</strong>_packet]<br />

.text:0804AE37 and eax, 0FFFFh<br />

.text:0804AE3C push eax ; a2<br />

.text:0804AE3D lea eax, [esi+ipudp_0.data]<br />

.text:0804AE40 push eax ; a1<br />

.text:0804AE41 call fillBufRandom<br />

.text:0804AE46 add esp, 10h<br />

.text:0804AE49 jmp send_packet<br />

Then the <strong>Trojan</strong> counts checksums and shifts its attention to the next target. This procedure continues<br />

until the process is terminated:<br />

; CODE XREF: cm-<br />

.text:0804AD1C send_packet:<br />

d0_udp_random+36Bj<br />

.text:0804AD1C<br />

+389j<br />

.text:0804AD1C mov word ptr [esi+0Ah], 0<br />

.text:0804AD22 push eax<br />

.text:0804AD23 push eax<br />

.text:0804AD24 push 14h<br />

.text:0804AD26 push esi<br />

.text:0804AD27 call calcIPCheckSum<br />

.text:0804AD2C mov [esi+0Ah], ax<br />

.text:0804AD30 mov word ptr [edi+6], 0<br />

.text:0804AD36 push ebx ; a4<br />

.text:0804AD37 mov ax, [edi+4]<br />

.text:0804AD3B and eax, 0FFFFh<br />

.text:0804AD40 push eax ; a3<br />

.text:0804AD41 push edi ; a2<br />

.text:0804AD42 push esi ; a1<br />

.text:0804AD43 call calcUDPChecksum<br />

.text:0804AD48 mov [edi+6], ax<br />

.text:0804AD4C mov eax, [esp+7Ch+counter]<br />

.text:0804AD50 mov ecx, [esp+7Ch+targets]<br />

.text:0804AD57 mov dx, [edi+2]<br />

.text:0804AD5B lea eax, [eax+eax*2]<br />

; cmd0_udp_random

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!