joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401790
Capabilities:
Create thread

Disassembly:
mov al, byte [0x482aaa]
test al, al
push ebx
push esi
push edi
je 0x4017a2
mov al, 1
pop edi
pop esi
pop ebx
ret
xor edi, edi
push edi
call sym.V1.0.exe_curl_global_init
add esp, 4
push str.temp
call fcn.0044bd7f
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp dword [0x482a88], edi
jne 0x401810
push 0x482a88
push edi
push edi
push 0x401b90
push edi
push edi
call esi
cmp eax, edi
mov dword [0x482a8c], eax
jne 0x4017fc
mov esi, 0x472c8c
mov edi, 0x472ca4
call fcn.004095e0
xor al, al
pop edi
pop esi
pop ebx
ret
push eax
call ebx
push 0x3e8
mov dword [0x482a8c], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x482aa4], edi
jne 0x40184f
push 0x482aa4
push edi
push edi
push 0x401cb0
push edi
push edi
call esi
cmp eax, edi
mov dword [0x482aa0], eax
jne 0x401846
mov esi, 0x472cac
mov edi, 0x472ca4
call fcn.004095e0
xor al, al
pop edi
pop esi
pop ebx
ret
push eax
call ebx
mov dword [0x482aa0], edi
cmp dword [0x482a98], edi
jne 0x40188e
push 0x482a98
push edi
push edi
push 0x401f50
push edi
push edi
call esi
cmp eax, edi
mov dword [0x482a94], eax
jne 0x401885
mov esi, 0x472cc0
mov edi, 0x472ca4
call fcn.004095e0
xor al, al
pop edi
pop esi
pop ebx
ret
push eax
call ebx
mov dword [0x482a94], edi
pop edi
mov al, 1
pop esi
mov byte [0x482aaa], al
pop ebx
ret

Function at 0x4019e0
Capabilities:
Create thread

Disassembly:
cmp dword [0x482ab0], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
jne 0x401a31
push 0x482ab0
push 0
push 0
push 0x402640
push 0
push 0
call edi
test eax, eax
mov dword [0x482aac], eax
jne 0x401a24
mov esi, 0x472cd8
call fcn.00409550
mov eax, dword [0x482aac]
push eax
call ebp
mov dword [0x482aac], 0
cmp dword [0x482ab8], 0
jne 0x401a78
push 0x482ab8
push 0
push 0
push 0x402740
push 0
push 0
call edi
test eax, eax
mov dword [0x482ab4], eax
jne 0x401a6b
mov esi, 0x472cec
mov edi, 0x472ca4
call fcn.004095e0
mov eax, dword [0x482ab4]
push eax
call ebp
mov dword [0x482ab4], 0
pop edi
pop esi
pop ebp
ret
Function at 0x402890
Capabilities:
Delete file

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x60]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x48]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x44]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x40]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402919
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x38]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402975
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
pop esi
ret

Function at 0x402c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402c29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402c60
lea ebx, [ebx]
cmp esi, eax
jae 0x402c64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402c50
cmp esi, eax
jb 0x402c6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x409bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x208
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov ebp, eax
call sym.V1.0.exe_curl_easy_reset
add esp, 4
push edi
push 0x2712
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push 0x409920
push 0x4e2b
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push ebx
push 0x2711
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push 0xc
push 0x4e
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push 0xc
push 0xd
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push 1
push 0x63
push esi
call sym.V1.0.exe_curl_easy_setopt
add esp, 0xc
push esi
call sym.V1.0.exe_curl_easy_perform
add esp, 4
push esi
mov ebx, eax
call sym.V1.0.exe_curl_easy_reset
add esp, 4
cmp ebx, 0x1c
jne 0x409cb7
push 0x1ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.0044e160
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, esi
sub ecx, ebp
cmp ecx, 0x3e8
jae 0x409c90
push 0
push 0
push 0x4734dc
call fcn.004326dc
push esi
push ebp
push str._d__d
lea edx, [esp + 0x1c]
push 0x200
push edx
call fcn.0044bd2e
add esp, 0x14
lea esi, [esp + 0x10]
mov edi, 0x4734f8
call fcn.004095e0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044ba98
add esp, 0x208
ret
Function at 0x40dc60
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x47e494]
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 0x40dcb0
mov ax, word [esp]
cmp al, 2
jne 0x40dcaa
cmp ah, al
jne 0x40dcaa
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044ba98
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.0044ba98
add esp, 0x194
ret
Function at 0x419b70
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 0x419ba2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x419cf0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x419d0b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x419d3f
cmp eax, 2
jg 0x419d3f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x46a754]
push 2
push edx
call fcn.0044d400
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0044d400
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x41a0cd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x41a0a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0040f200
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00419ed0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x858c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41a310
Capabilities:
Set socket configuration

Disassembly:
push ecx
xor eax, eax
cmp dword [edi + 0x408], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41a348
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00419e40
add esp, 0xc
pop ecx
ret
Function at 0x41a960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1a4], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x41aa9b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41a9dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0040f200
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00419ed0
add esp, 0x18
jmp 0x41aaa4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41aa1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0040f200
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00419ed0
add esp, 0x18
jmp 0x41aaa4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0041a920
test eax, eax
jne 0x41aa5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0040f200
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00419ed0
add esp, 0x18
jmp 0x41aaa4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0041a920
test eax, eax
jne 0x41aa9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0040f200
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00419ed0
add esp, 0x18
jmp 0x41aaa4
push ebp
call fcn.0041a8c0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ba98
add esp, 0x10c
ret

Function at 0x41aac0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
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 0x41ab03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0040f200
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00419e40
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00419e40
add esp, 8
pop esi
pop ecx
ret

Function at 0x41ab20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x41ab69
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x41ab81
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x41ab90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x550]
cmp eax, 0xffffffff
je 0x41abe9
mov ecx, dword [ecx + 0x544]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x41abe9
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x41abbc
mov dword [ecx], eax
cmp dword [eax + 0x150], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x41abe0
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41abe5
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x41b260
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [ebp + ebx*4 + 0x130]
mov dword [eax], 0
cmp dword [ebp + ebx*4 + 0x1c4], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], 0
je 0x41b2a9
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
call fcn.00420170
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x28], edx
call fcn.0041a350
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jge 0x41b2e9
push str.Connection_time_out
push esi
call fcn.00419ed0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x10
ret
push ebp
xor eax, eax
call fcn.0041a410
add esp, 4
cmp eax, 1
jne 0x41b33b
mov ecx, dword [ebp + 0x208]
mov edx, dword [ebp + 0x204]
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x210]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.004201a0
add esp, 0x10
cmp eax, edi
jl 0x41b29f
push edi
push str.After__ldms_connect_time__move_on__n
push esi
call fcn.00419e40
add esp, 0xc
jmp 0x41b3ff
test eax, eax
jne 0x41b3a7
push edi
lea esi, [esp + 0x28]
call fcn.0041a850
add esp, 4
test eax, eax
je 0x41b3e6
push ebp
call fcn.00410a10
add esp, 4
test eax, eax
jne 0x41b462
test ebx, ebx
mov edx, dword [esp + 0x2c]
mov dword [ebp + ebx*4 + 0x1c4], 1
mov dword [edx], 1
jne 0x41b38d
mov eax, dword [esp + 0x10]
push 2
push eax
call fcn.00429540
add esp, 8
push ebp
call fcn.00410b40
push edi
push ebp
call fcn.0041a960
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp eax, 2
jne 0x41b3d6
push edi
lea esi, [esp + 0x28]
call fcn.0041a850
mov esi, dword [esp + 0x28]
push esi
push ebp
call fcn.0040f200
mov ecx, dword [esp + 0x1c]
push eax
push 0x46a698
push ecx
call fcn.00419e40
add esp, 0x18
jmp 0x41b3ea
push str.Connection_failed_n
push esi
call fcn.00419e40
add esp, 8
jmp 0x41b3ff
mov esi, dword [esp + 0x24]
test esi, esi
je 0x41b3ff
mov edx, dword [esp + 0x10]
push esi
mov dword [edx + 0x858c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x3c]
cmp dword [eax + 0x1c], 0
mov eax, dword [esp + 0x14]
je 0x41b411
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [ebp + 0x210], eax
mov eax, dword [esp + 0x28]
mov esi, ebp
call fcn.0041b1c0
mov esi, eax
test esi, esi
je 0x41b460
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x10]
push eax
push ebp
mov dword [edi + 0x858c], eax
call fcn.0040f200
mov ecx, dword [ebp + 0x98]
mov edx, dword [ebp + 0x80]
push eax
push ecx
push edx
push str.Failed_connect_to__s:_ld___s
push edi
call fcn.00419ed0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41ca00
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x41caa4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x41ca75
cmp word [ecx + 0xa], 4
jne 0x41ca75
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41ca75
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0041c990
test eax, eax
mov dword [esi], eax
je 0x41ca98
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x41ca50
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0044d03d
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x41cab4.11001
jmp dword [eax*4 + 0x41cad8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x41d310
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x47fec8], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x41cd60
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x41d050
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0041cd10
je 0x41d382
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x47d020]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0044ba98
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41d47f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0044be51
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00450364
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41d3fd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x41d444
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0044be51
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00450364
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x41d47b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x41d4af
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x41d4af
add edi, 1
cmp edi, 3
jl 0x41d446
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x47d020], edx
mov dword [0x47d028], eax
mov dword [fcn.0041cd10], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x47d020]
xor ecx, esp
mov dword [0x47fec8], 1
call fcn.0044ba98
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x41d47b

Function at 0x41da10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004504cf
add esp, 0x18
test eax, eax
je 0x41da33
cmp eax, 0xffffffff
jne 0x41da35
xor eax, eax
ret
Function at 0x42a9e0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x42a9ef
jmp dword [ecx*4 + 0x42aa44]
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 0x42abd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004507ac
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x42ac35
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x42ac35
lea edx, [esp]
push edx
call dword [0x47d00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044ba98
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044ba98
add esp, 0x108
ret
jmp 0x42abd0

Function at 0x42ac50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004507ac
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x42ac35
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x42ac35
lea edx, [esp]
push edx
call dword [0x47d00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044ba98
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044ba98
add esp, 0x108
ret
jmp 0x42abd0

Function at 0x42e040
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
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 0x42f930
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x42f952
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x42f946
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x42f982
cmp dword [esi + 8], 0
jne 0x42f975
mov ecx, dword [eax + 8]
push 0x47345c
push ecx
call fcn.0044c6b1
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x42f975
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0044f0b8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42f9a4
mov eax, dword [esi + 8]
test eax, eax
je 0x42f99e
push eax
call fcn.0044c85f
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x430f5a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x47e494]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x430f9a
push 0x46d698
push 4
push eax
call fcn.0044be51
push eax
call fcn.0040b200
add esp, 0x10
jmp 0x430fac
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x43101a
push edi
call fcn.0044ec9a
mov edi, dword [eax]
call fcn.0044ec9a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0044bd4a
add esp, 0x18
mov ebx, eax
call fcn.0044ec9a
cmp dword [eax], 0
je 0x430ffa
call fcn.0044ec9a
push dword [eax]
call fcn.00430eee
pop ecx
jmp 0x431001
call fcn.0044ec9a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x43101a
cmp ebx, esi
jae 0x43101a
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x43101c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ba98
leave
ret