joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429360
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44beab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov cl, byte [esp + 0x13]
xor ebx, ebx
push 0x1c
mov dword [esp + 0x20], esi
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], cl
mov byte [esi + 0x24], bl
call fcn.0043a0eb
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x18], 1
call fcn.004472da
cmp dword [0x45ad18], ebx
jne 0x4293d1
mov dword [0x45ad18], edi
mov dword [edi], ebx
mov edx, dword [0x45ad18]
xor ebp, ebp
mov dword [edx + 8], ebx
mov ecx, dword [0x45ad14]
inc ecx
mov dword [0x45ad14], ecx
lea ecx, [esp + 0x14]
call fcn.00447376
cmp ebp, ebx
je 0x4293f4
push ebp
call fcn.00439308
add esp, 4
mov edi, dword [0x45ad18]
push 0x1c
call fcn.0043a0eb
mov dword [eax + 4], edi
mov dword [eax + 0x18], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 8], eax
mov al, byte [esp + 0x17]
mov cl, byte [esp + 0x17]
push 0x1c
mov dword [esp + 0x30], ebx
mov byte [esi + 0x2c], al
mov byte [esi + 0x2d], cl
mov byte [esi + 0x34], bl
call fcn.0043a0eb
mov edi, eax
add esp, 8
lea ecx, [esp + 0x18]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x18], 1
call fcn.004472da
cmp dword [0x45ad18], ebx
jne 0x429466
mov dword [0x45ad18], edi
mov dword [edi], ebx
mov edx, dword [0x45ad18]
xor ebp, ebp
mov dword [edx + 8], ebx
mov ecx, dword [0x45ad14]
inc ecx
mov dword [0x45ad14], ecx
lea ecx, [esp + 0x18]
call fcn.00447376
cmp ebp, ebx
je 0x429489
push ebp
call fcn.00439308
add esp, 4
mov edi, dword [0x45ad18]
push 0x1c
call fcn.0043a0eb
mov dword [eax + 4], edi
mov dword [eax + 0x18], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x30]
add esp, 4
mov dword [eax + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x42a540
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44beeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dx, word [eax]
push esi
push edi
mov word [ecx], dx
mov eax, dword [ebx]
lea edi, [ecx + 2]
mov dword [esp + 0x18], ecx
lea ebp, [ebx + 0x1c]
mov dword [edi], eax
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov dword [edi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov cl, byte [ebp]
lea esi, [edi + 0x1c]
push 0x1c
mov dword [esp + 0x20], edi
mov byte [esi], cl
mov dl, byte [ebp + 1]
mov byte [esi + 1], dl
mov al, byte [ebp + 8]
mov byte [esi + 8], al
call fcn.0043a0eb
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [eax + 4], 0
mov dword [eax + 0x18], 1
mov dword [esp + 0x30], eax
call fcn.004472da
mov eax, dword [0x45ad18]
xor ecx, ecx
cmp eax, ecx
jne 0x42a600
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [0x45ad18], eax
mov dword [eax], ecx
mov edx, dword [0x45ad18]
mov dword [edx + 8], ecx
mov edx, dword [0x45ad14]
lea ecx, [esp + 0x10]
inc edx
mov dword [0x45ad14], edx
call fcn.00447376
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42a627
push eax
call fcn.00439308
add esp, 4
mov eax, dword [0x45ad18]
push 0
push eax
mov ecx, esi
call fcn.0040e820
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
push ebp
mov ecx, esi
mov dword [eax + 8], eax
call fcn.0042aae0
mov cl, byte [ebx + 0x2c]
add ebx, 0x2c
lea esi, [edi + 0x2c]
xor ebp, ebp
push 0x1c
mov dword [esp + 0x2c], ebp
mov byte [esi], cl
mov dl, byte [ebx + 1]
mov byte [esi + 1], dl
mov al, byte [ebx + 8]
mov byte [esi + 8], al
call fcn.0043a0eb
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [edi + 4], ebp
mov dword [edi + 0x18], 1
mov ebp, edi
call fcn.004472da
mov eax, dword [0x45ad18]
test eax, eax
jne 0x42a6aa
xor ebp, ebp
mov dword [0x45ad18], edi
mov dword [edi], ebp
mov ecx, dword [0x45ad18]
mov dword [ecx + 8], ebp
mov ecx, dword [0x45ad14]
inc ecx
mov dword [0x45ad14], ecx
lea ecx, [esp + 0x14]
call fcn.00447376
test ebp, ebp
je 0x42a6cd
push ebp
call fcn.00439308
add esp, 4
mov edx, dword [0x45ad18]
push 0
push edx
mov ecx, esi
call fcn.0040e820
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
push ebx
mov ecx, esi
mov dword [eax + 8], eax
call fcn.0042aae0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x42c960
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44c037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [esp + 0x7c]
push esi
push edi
lea ecx, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.0042c6d0
mov esi, eax
mov edi, dword [esp + 0x88]
lea edx, [esp + 0x24]
push edi
push 0x45676c
push edx
mov dword [esp + 0x88], 1
call fcn.00431510
push 0x456768
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x90], 2
push eax
call fcn.00402480
push esi
lea ecx, [esp + 0x70]
push eax
push ecx
mov byte [esp + 0xa0], 3
call fcn.004052f0
push 0x456764
lea edx, [esp + 0x6c]
push eax
push edx
mov byte [esp + 0xac], 4
call fcn.00402480
push edi
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0xb4], 5
push eax
call fcn.004052f0
add esp, 0x44
mov esi, dword [esp + 0x7c]
push 0x456768
push eax
push esi
mov byte [esp + 0x80], 6
call fcn.00402480
add esp, 0xc
mov dword [esp + 8], 1
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.00401ff0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 4
call fcn.00401ff0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 3
call fcn.00401ff0
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x42ca8a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42ca81
cmp al, 0xff
je 0x42ca81
dec al
mov byte [ecx], al
jmp 0x42ca8a
push ecx
call fcn.00439308
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x42cabb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42cab2
cmp al, 0xff
je 0x42cab2
dec al
mov byte [ecx], al
jmp 0x42cabb
push ecx
call fcn.00439308
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], edi
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x42cafd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42caf4
cmp al, 0xff
je 0x42caf4
dec al
pop edi
mov byte [ecx], al
mov eax, esi
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
push ecx
call fcn.00439308
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x42cdf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2820
call fcn.0043abc0
mov eax, dword [esp + 0x2830]
mov edx, dword [0x44e274]
push ebp
push esi
mov cl, byte [eax]
push edi
push edx
mov byte [esp + 0x10], cl
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.004025b0
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
jne 0x42ce46
mov edi, 0x44e270
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x2838]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x2834]
lea ecx, [esp + 0x1c]
push 0x10
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2838]
push 0
lea edx, [esp + 0x38]
push ebp
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x42ceeb
mov al, byte [ecx - 1]
test al, al
je 0x42cee1
cmp al, 0xff
je 0x42cee1
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
add esp, 0x2820
ret
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2820
ret

Function at 0x42d320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c134
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
push ebx
mov byte [esi], al
call fcn.00401ff0
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx], dl
call fcn.00401ff0
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x20]
push ebx
mov byte [esp + 0x1c], 1
mov byte [ecx], al
call fcn.00401ff0
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push ebx
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call fcn.00401ff0
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x40]
push ebx
mov byte [esp + 0x1c], 3
mov byte [ecx], al
call fcn.00401ff0
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push ebx
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call fcn.00401ff0
mov al, byte [esp + 0xb]
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esi + 0x60], al
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], 1
mov byte [esi + 0x74], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov byte [esi + 0x84], dl
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov byte [esi + 0x94], al
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov word [esi + 0xa4], bx
mov byte [esi + 0xa6], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x430960
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
lea eax, [ebp - 0x138]
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x100
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x430b01
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x430a98
cmp word [edi + 0xa], 4
jne 0x430a98
mov edx, dword [edi + 0xc]
cmp dword [edx], 0
je 0x430a98
mov al, byte [ebp - 0x19]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00401ff0
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 1
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov edi, esi
or ecx, 0xffffffff
lea ebx, [eax + 0x84]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x20], edi
call fcn.00402180
test al, al
je 0x430a46
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x14]
mov word [edx + 0xa4], ax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x430a6d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x430a7e
cmp al, 0xff
je 0x430a7e
dec al
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00439308
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x45ad08
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 0x84]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00402180
test al, al
je 0x430ae7
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov esi, 0x45ad08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 4]
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0xc]
mov word [esi + 0xa4], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x45ad08
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 0x84]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00402180
test al, al
je 0x430ae7
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov esi, 0x45ad08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x430ada
Function at 0x4320f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x2c
push esi
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [0x456c14]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.QVOD_04d_012I64X
push ecx
call fcn.0043a5e5
mov ecx, 5
lea esi, [esp + 0x28]
mov edi, 0x45f560
push 0xb
lea edx, [esp + 0x34]
push 4
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [esp + 0x28], 0x67452301
call fcn.00432090
mov esi, eax
push 0xd76aa478
push 7
push esi
push 0x10325476
push 0x98badcfe
lea eax, [esp + 0x3c]
push 0xefcdab89
push eax
call fcn.004266f0
push 0xf61e2562
push 5
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x58]
push 0xefcdab89
push ecx
call fcn.00426740
add esp, 0x58
lea edx, [esp + 8]
push 0xfffa3942
push 4
push esi
push 0x10325476
push 0x98badcfe
push 0xefcdab89
push edx
call fcn.00426790
push 0xf4292244
push 6
push esi
push 0x10325476
push 0x98badcfe
lea eax, [esp + 0x38]
push 0xefcdab89
push eax
call fcn.004267e0
mov ecx, dword [esp + 0x40]
add esp, 0x38
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop edi
mov cx, ax
pop esi
shr cx, 0xc
cmp cl, 9
jbe 0x4321ef
add cl, 0x37
jmp 0x4321f2
add cl, 0x30
mov byte [0x45f568], cl
xor ecx, ecx
mov cl, ah
and cl, 0xf
cmp cl, 9
jbe 0x432209
add cl, 0x37
jmp 0x43220c
add cl, 0x30
mov byte [0x45f569], cl
mov cl, al
shr cl, 4
and cl, 0xf
cmp cl, 9
jbe 0x432224
add cl, 0x37
jmp 0x432227
add cl, 0x30
and al, 0xf
mov byte [0x45f56a], cl
cmp al, 9
jbe 0x43223e
add al, 0x37
mov byte [0x45f56b], al
add esp, 0x2c
ret
add al, 0x30
mov byte [0x45f56b], al
add esp, 0x2c
ret
Function at 0x432f00
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x1d8
push ebp
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
mov dword [0x45f430], ecx
push eax
mov dword [0x45f3f8], edx
call fcn.0043aa71
mov dword [0x45f31c], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], 0
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xe0]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4330fa
mov edi, str.drivers_tcpip.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xe4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4330fa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea ecx, [esp + 0xe0]
push ebp
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43302d
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push 0x455138
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43302d
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov edx, ecx
lea edi, [esp + 0xac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xb8]
jmp 0x433031
mov esi, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
and eax, 0xffff
cmp eax, 0x884
jg 0x433079
je 0x433072
sub eax, 0x830
je 0x43306b
sub eax, 0x35
je 0x433064
sub eax, 0xd
jne 0x4330fa
mov edi, 0x4f822
jmp 0x433091
mov edi, 0x4f4a2
jmp 0x433091
mov edi, 0x4eab7
jmp 0x433091
mov edi, 0x4f322
jmp 0x433091
sub eax, 0xa7d
je 0x43308c
sub eax, 0x8e
je 0x43308c
sub eax, 0x41
jne 0x4330fa
mov edi, 0x4f5a2
lea eax, [esp + 0xe0]
push 0x4558a8
push eax
call fcn.0043adb4
mov esi, eax
add esp, 8
test esi, esi
je 0x4330fa
push 0
push edi
push esi
mov dword [esp + 0x1c], 0
call fcn.0043bd05
push esi
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.0043ac6c
push esi
call fcn.0043abef
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp eax, 0xff
mov byte [0x45f3ab], al
jb 0x4330ec
mov byte [0x45f3ab], 0xff
push eax
push str.tcp_connecting_limit_is__d_n
call fcn.0043a5a4
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x1d8
ret
Function at 0x433110
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x100
push ebp
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x433150
pop edi
mov eax, 1
pop ebp
add esp, 0x100
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x43316f
pop edi
mov eax, 1
pop ebp
add esp, 0x100
ret
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp dword [eax], 0
je 0x4331b6
mov edx, dword [eax + ebx*4]
mov eax, dword [edx]
push eax
call fcn.00434690
add esp, 4
test al, al
je 0x433199
mov eax, dword [ebp + 0xc]
inc ebx
cmp dword [eax + ebx*4], 0
jne 0x43317b
jmp 0x4331b6
movsx ecx, word [ebp + 0xa]
mov edx, dword [ebp + 0xc]
mov eax, ecx
mov edi, 0x45f548
mov esi, dword [edx + ebx*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
cmp dword [eax + ebx*4], 0
jne 0x4331d8
movsx ecx, word [ebp + 0xa]
mov esi, dword [eax]
mov edx, ecx
mov edi, 0x45f548
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x100
ret
Function at 0x4043a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4043ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4043cd
push eax
call fcn.00404800
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4043d0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4054fc
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4096f0], eax
xor eax, eax
mov al, byte [0x4096f1]
mov dword [0x4096fc], eax
mov eax, dword [0x4096f0]
shr dword [0x4096f0], 0x10
and eax, 0xff
mov dword [0x4096f8], eax
shl eax, 8
add eax, dword [0x4096fc]
mov dword [0x4096f4], eax
call fcn.004047c0
mov dword [ebp - 4], 0
call fcn.00405320
call fcn.00405310
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40aa64], eax
call fcn.00404eb0
mov dword [0x4096d0], eax
test eax, eax
je 0x404469
cmp dword [0x40aa64], 0
jne 0x404473
push 0xffffffffffffffff
call fcn.004045c0
add esp, 4
call fcn.00404c30
call fcn.00404b50
call fcn.00404590
mov esi, dword [0x40aa64]
mov al, byte [esi]
cmp al, 0x22
je 0x40449a
cmp al, 0x20
jbe 0x4044c7
inc esi
cmp byte [esi], 0x20
ja 0x404492
jmp 0x4044c7
inc esi
cmp byte [esi], 0x22
je 0x4044c6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4044c1
xor eax, eax
mov al, bl
push eax
call fcn.00404af0
add esp, 4
test eax, eax
je 0x4044bb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4044a3
cmp byte [esi], 0x22
jne 0x4044c7
inc esi
cmp byte [esi], 0
je 0x4044d7
cmp byte [esi], 0x20
ja 0x4044d7
inc esi
cmp byte [esi], 0
jne 0x4044cc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4044fb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004045c0
jmp 0x40453c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404600
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40972c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40461e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x409728], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x409724], bl
jne 0x404678
cmp dword [0x40aa5c], 0
je 0x404666
mov edi, dword [0x40aa58]
sub edi, 4
cmp dword [0x40aa5c], edi
ja 0x404666
mov eax, dword [edi]
test eax, eax
je 0x40465b
call eax
sub edi, 4
cmp dword [0x40aa5c], edi
jbe 0x404653
push 0x409014
push 0x409010
call fcn.004046b0
add esp, 8
push 0x40901c
push 0x409018
call fcn.004046b0
add esp, 8
test ebx, ebx
jne 0x40469f
mov dword [0x40972c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret