joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x570e20
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d7050]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [0x5d7070]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x5526d9
call fcn.0043d9e0
mov esi, eax
jmp 0x5527bf
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5526f5
call fcn.0043d9e0
jmp 0x5527b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x55270e
call fcn.0043d9e0
jmp 0x5527b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x552744
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x552732
lea eax, [ebp]
call fcn.00552810
lea esi, [ebp - 0x1c]
call fcn.004990c0
mov eax, 0x8007000e
jmp 0x5527d2
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00552820
mov dword [ebp - 4], 1
jmp 0x55276c
mov esi, dword [ebp]
test esi, esi
jne 0x55277a
mov esi, 0x8007000e
jmp 0x5527b8
call dword [0x5d7070]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x55279b
call fcn.0043d9e0
jmp 0x5527b6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00552860
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x5527d0
lea eax, [ebp]
call fcn.00552810
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00569ed6
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x553b20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x553b8e
test ecx, ecx
je 0x553b80
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x553b9c
test ecx, ecx
je 0x553c41
push ecx
jmp 0x553c3b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x553c0e
jmp 0x553bd0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00553b20
mov edi, eax
test edi, edi
jne 0x553c5d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x553bd0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x553c25
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x553c41
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00569ed6
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x553c6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x553c43

Function at 0x554500
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x554550
mov ax, word [esp]
cmp al, 2
jne 0x55454a
cmp ah, al
jne 0x55454a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00569ed6
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00569ed6
add esp, 0x194
ret
Function at 0x55e310
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x55e342
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x55e4a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
push ebp
mov ebp, dword [esp + 8]
je 0x55e4c1
mov edx, dword [esi + 0xe4]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x55e4f7
cmp eax, 2
jg 0x55e4f7
mov ecx, dword [esi + 0xe0]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5841e8]
push 2
push edx
call edi
mov eax, dword [esi + 0xe0]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x55e730
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55e775
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x55e75b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00568dc0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0055e690
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x55ede0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x55ee24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00568dc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0055e600
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0055e600
add esp, 8
pop esi
pop ecx
ret
Function at 0x55f270
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x55f2d6
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x55f2d6
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x55f29c
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x55f2cc
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x55f2d2
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x560d50
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x5d7010]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x560d82
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.005557a0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x5d700c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x560dc9
push esi
call dword [0x5d7004]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x560e06
push ebp
jmp 0x560e59
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x560e54
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x560e31
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x560e59
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x560e46
mov edx, dword [esp + 0xc]
push edx
jmp 0x560e59
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x560e72
mov eax, dword [esp + 0xc]
push eax
call fcn.00560c70
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x560ba0
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x560eb3
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.00560c70
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x560ef0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x560f1d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x560f1d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x560f79
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x560fcf
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x560f99
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x561080
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x560feb
push ebp
mov esi, ebp
call fcn.00568450
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.0055e690
add esp, 0x10
jmp 0x561080
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x560f89
cmp byte [edi + 0x2c8], 0
je 0x561051
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x56102b
call fcn.00568dc0
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.0055e690
add esp, 0x18
mov esi, 5
jmp 0x561080
call fcn.00568dc0
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.0055e690
add esp, 0x18
mov esi, 6
jmp 0x561080
cmp ebp, 0xffffffff
je 0x561062
cmp dword [edi + 0x2cc], 0x2afc
jne 0x56107b
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.0055e690
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.00560c70
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x5610a0
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x561150
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.00568fe0
add esp, 0xc
test eax, eax
jle 0x561194
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.005609c0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00560d50
add esp, 8
test al, al
je 0x5611b8
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00568dc0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0055e600
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x561205
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00568dc0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0055e600
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00560890
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x564420
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x564460
cmp ebp, ebx
jne 0x564460
mov eax, dword [esp + 0x334]
call fcn.00564400
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x56447b
mov esi, edi
call fcn.00565be0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x5644af
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x5644f6
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x5644de
cmp dword [esp + eax*4 + 0x24], ebp
je 0x5644de
add eax, 1
cmp eax, ecx
jb 0x5644d1
cmp eax, ecx
jne 0x5644f0
cmp ecx, 0x40
jae 0x5644f0
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x5644f6
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x564541
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x56454b
jne 0x56454b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x5645b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x56457e
cmp eax, 0x2714
jne 0x5645b9
test edi, edi
jle 0x564510
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00565be0
push edx
push eax
call fcn.00565c10
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x564510
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x5645c7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x5645d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x56460d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5645fb
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x56460d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x564640
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x56462e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x564640
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x565070
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00565be0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00565c10
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x565125
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00564420
add esp, 0xc
test eax, eax
jle 0x565125
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0055e310
add esp, 0x10
test eax, eax
jne 0x565128
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x565130
test eax, eax
je 0x565125
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.00565be0
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00565c10
add esp, 0x10
cmp eax, ebx
jle 0x5650c0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x566870
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x56687f
jmp dword [ecx*4 + 0x5668d4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x566a60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x566ac6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x566ac6
lea edx, [esp]
push edx
call dword [0x5d700c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00569ed6
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00569ed6
add esp, 0x108
ret
jmp 0x566a60
Function at 0x566ae0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x566ac6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x566ac6
lea edx, [esp]
push edx
call dword [0x5d700c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00569ed6
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00569ed6
add esp, 0x108
ret
jmp 0x566a60

Function at 0x5695c0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x569ed6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d7050]
jne 0x569ee0
repz ret
jmp fcn.0056a7db

Function at 0x56b3e5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5d7050]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0056b324
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x56b434
cmp dword [ebp - 0x1c], 5
jb 0x56b44c
jmp 0x56b448
cmp dword [ebp - 0x10], 1
jne 0x56b44c
cmp dword [ebp - 0x1c], 4
ja 0x56b448
jne 0x56b44c
cmp dword [ebp - 0x18], 0
jbe 0x56b44c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x586b7c
call fcn.00418200
test eax, eax
jge 0x56b46d
mov byte [0x619854], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00569ed6
add ebp, 0x78
leave
ret

Function at 0x56b61f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5e73f0], 0
push esi
jne 0x56b592
call fcn.0056b4bd
test eax, eax
je 0x56b5d5
mov eax, dword [0x5e73f0]
cmp eax, 1
jne 0x56b5b3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x56b5d5
pop esi
ret
push eax
call dword [0x5e73f8]
test eax, eax
jne 0x56b61d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x56b5d9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5e73f0]
call dword [0x5e73f8]
mov edi, eax
test edi, edi
je 0x56b600
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x56b61c
lea edi, [esi + 0xff0]
push esi
push dword [0x5e73f0]
call dword [0x5e73f4]
add esi, 0x10
cmp esi, edi
jb 0x56b606
mov eax, esi
pop edi
pop esi
ret
jmp 0x56b57f