joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512ae0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x198
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x2c8]
push edi
mov edi, dword [eax]
lea esi, [esp + 0x10]
mov al, byte [edi]
test al, al
je 0x512b28
jmp 0x512b10
movsx eax, al
push eax
call fcn.004eddcb
lea edi, [edi + 1]
mov byte [esi], al
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x512b10
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x5690f8]
mov word [esi + 4], ax
mov al, byte [0x5690fa]
mov byte [esi + 6], al
lea eax, [esp + 0x10]
push eax
call fcn.004ef6ca
add esp, 4
mov byte [esp + 0x90], 0
test eax, eax
je 0x512b8d
push 0x104
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp + 0x90], 0
je 0x512b8d
lea eax, [esp + 0x90]
push eax
call dword [0x593c20]
add esp, 4
mov esi, eax
jmp 0x512b8f
xor esi, esi
test esi, esi
jne 0x512bd5
lea edx, [esp + 0x10]
mov ecx, str.http_proxy
call fcn.0052ad50
test eax, eax
jne 0x512bd5
mov esi, 0x80
lea edx, [esp + 0x10]
mov edi, edi
mov cl, byte [edx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x512bbc
sub cl, 0x20
mov byte [edx], cl
inc edx
test cl, cl
je 0x512bc6
dec esi
jne 0x512bb0
lea eax, [esp + 0x10]
push eax
call sym.update.exe_curl_getenv
add esp, 4
mov esi, eax
lea edi, [esp + 0x10]
test esi, esi
jne 0x512c05
mov edi, str.all_proxy
push edi
call sym.update.exe_curl_getenv
mov esi, eax
add esp, 4
test esi, esi
jne 0x512c05
mov edi, str.ALL_PROXY
push edi
call sym.update.exe_curl_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x512c16
push esi
push edi
push str.Uses_proxy_env_variable__s___s_n
push dword [ebx]
call fcn.0051a600
add esp, 0x10
mov ecx, dword [esp + 0x19c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebb9e
add esp, 0x198
ret
Function at 0x515b60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov eax, dword [0x59fa78]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0x10], 4
test eax, eax
jne 0x515bae
lea ecx, [eax + 3]
call fcn.0051ced0
test eax, eax
je 0x515ba2
mov dword [0x59fa78], 2
pop esi
add esp, 0x10
ret
mov dword [0x59fa78], 1
jmp 0x515bb3
cmp eax, 2
je 0x515bf4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x515bdc
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jg 0x515bf4
push 4
lea eax, [esp + 0x10]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0x10
ret

Function at 0x515c00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x90
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
mov esi, dword [ecx]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x515c6f
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.0052ebf0
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0051a600
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x90
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0051a600
mov ecx, dword [esp + 0x94]
add esp, 8
pop esi
xor ecx, esp
call fcn.004ebb9e
add esp, 0x90
ret
Function at 0x5161a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa84]
shr eax, 6
and eax, 1
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 8
mov edi, edx
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5161fd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0051a600
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x1c
ret
mov eax, dword [esi + 0xa44]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xa48]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x98000004
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x51626d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0051a600
add esp, 0x10
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.004ebb9e
add esp, 0x1c
ret
Function at 0x516520
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x194
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
mov ebx, ecx
push esi
cmp dword [ebx + 0x90], 2
push edi
mov esi, edx
je 0x5166cb
mov eax, dword [ebx + 0x2a4]
test al, 2
jne 0x5166c4
test eax, 0x1000000
jne 0x5166c4
mov ebp, dword [ebx]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5165b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ecx
lea edx, [esp + 0x11c]
mov ecx, esi
call fcn.0052ebf0
add esp, 4
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0051a7e0
add esp, 0x10
jmp 0x5166cb
push 0x80
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0x80
call fcn.004f2670
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x516613
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ecx
lea edx, [esp + 0x11c]
mov ecx, esi
call fcn.0052ebf0
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0051a7e0
add esp, 0x10
jmp 0x5166cb
lea eax, [ebx + 0x138]
lea esi, [ebx + 0x10a]
push eax
mov edx, esi
lea ecx, [esp + 0x9c]
call fcn.00515ca0
add esp, 4
test eax, eax
jne 0x516668
call fcn.004eeb81
mov esi, eax
call fcn.004eeb81
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x11c]
mov edi, eax
call fcn.0052ebf0
add esp, 4
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0051a7e0
add esp, 0x10
jmp 0x5166cb
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea edx, [ebx + 0x13c]
lea ecx, [esp + 0x1c]
movsw word es:[edi], word [esi]
call fcn.00515ca0
add esp, 4
test eax, eax
jne 0x5166c4
call fcn.004eeb81
mov esi, eax
call fcn.004eeb81
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x11c]
mov edi, eax
call fcn.0052ebf0
add esp, 4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0051a7e0
add esp, 0x10
jmp 0x5166cb
mov ecx, ebx
call fcn.00516280
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebb9e
add esp, 0x194
ret
Function at 0x517240
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x50
push 1
mov ebp, edx
mov edi, ecx
call dword [0x593c24]
mov esi, eax
add esp, 8
mov ebx, 0xc
mov dword [edi + 0x344], esi
test esi, esi
je 0x517332
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
and dword [edi + 0x348], 0xfffffffe
mov dword [edi + 0x338], ecx
push ecx
mov dword [edi + 0x340], 0
mov dword [edi + 0x33c], 0
mov edx, ebp
mov ecx, esi
mov dword [esi], 0
call fcn.005174f0
add esp, 8
test eax, eax
jne 0x5172c8
push esi
mov dword [edi + 0x344], eax
call dword [0x593c28]
add esp, 4
call fcn.004eeb81
pop edi
pop esi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
ret
push dword [edi + 0x334]
call dword [0x593c28]
push ebp
call dword [0x593c20]
add esp, 8
mov dword [edi + 0x334], eax
test eax, eax
je 0x517327
push 0
push 0
lea eax, [esi + 0x10]
push eax
push 0x5173e0
push 0
push 0
mov dword [esi + 0x14], 0
call fcn.004ef752
add esp, 0x18
test eax, eax
je 0x517311
cmp eax, 0xffffffff
jne 0x517313
xor eax, eax
mov dword [esi], eax
test eax, eax
jne 0x517340
mov dword [esi + 0x14], 1
call fcn.004eeb81
mov ebx, dword [eax]
lea ecx, [edi + 0x334]
call fcn.00517350
call fcn.004eeb81
pop edi
pop esi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x519ea0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x600], 0
je 0x519ef9
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x519eba
mov eax, dword [esi + 0x78]
test eax, eax
je 0x519ec4
mov dword [eax + 0xe0], 1
push dword [esi + 0x594]
mov eax, dword [esi + 0x600]
push dword [esp + 0x10]
push dword [esp + 0x10]
push edx
push esi
call eax
mov ecx, dword [esi + 0x7c]
add esp, 0x14
test ecx, ecx
jne 0x519eed
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x519f31
mov dword [ecx + 0xe0], 0
pop esi
ret
cmp edx, 2
ja 0x519f2f
push dword [esi + 0x590]
lea eax, [edx*2 + 0x544ec8]
push 1
add eax, edx
push 2
push eax
call fcn.004ec47b
push dword [esi + 0x590]
push 1
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004ec47b
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x51a300
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
mov ebx, ecx
lea esi, [edx + 0x1e]
mov eax, dword [ebx + 0x2c8]
mov ebp, dword [ebx + edx*4 + 0x1b8]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x51a3b5
cmp dword [ebx + edx*4 + 0x1d0], 0x51a4b0
jne 0x51a3b5
cmp dword [esi], 0
je 0x51a347
test edi, edi
je 0x51a3b5
push 0
push 0
push 0xffffffffffffffff
mov ecx, ebp
call fcn.005176f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x51a3b5
test al, 1
je 0x51a3b5
cmp dword [esi], 0
jne 0x51a39e
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x593c18]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x51a39e
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x51a3b5
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0x88
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + edx*4 + 0x1b8]
push edi
mov edi, dword [esp + 0xa4]
mov ecx, ebp
call fcn.0051a300
push 0
push dword [esp + 0xac]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x51a48b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x51a45a
mov dword [ebx], 0x51
xor eax, eax
jmp 0x51a48b
push ecx
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.0052ebf0
add esp, 4
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0051a7e0
mov eax, dword [ebp]
add esp, 0xc
mov dword [eax + 0xc9c], esi
mov dword [ebx], 0x37
mov eax, edi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebb9e
add esp, 0x88
ret
Function at 0x51cd90
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x51cda8
pop edi
pop esi
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x569c50
push str.iphlpapi.dll
mov ebx, eax
call fcn.004ef177
add esp, 8
test eax, eax
je 0x51cdf8
test ebx, ebx
je 0x51cde6
push 8
push 0
push str.iphlpapi.dll
call ebx
pop ebp
pop ebx
pop edi
mov esi, eax
pop esi
ret
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ebp
pop ebx
pop edi
mov esi, eax
pop esi
ret
test ebx, ebx
je 0x51ce1d
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x51ce1d
push 0x800
push 0
push str.iphlpapi.dll
call ebx
pop ebp
pop ebx
pop edi
mov esi, eax
pop esi
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x51cebf
lea ecx, [ebp + 0xd]
push ecx
call dword [0x593c18]
mov edi, eax
add esp, 4
test edi, edi
je 0x51ceb5
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51ceb5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51ce55
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x51ce70
sub edx, ecx
mov ecx, str.iphlpapi.dll
add edx, edi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x51ce82
test ebx, ebx
je 0x51ceac
push 8
push 0
push edi
call ebx
push edi
mov esi, eax
call dword [0x593c28]
add esp, 4
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x593c28]
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x51d000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x194], eax
test cl, 2
je 0x51d05d
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x51d046
mov eax, dword [esp]
cmp al, 2
jne 0x51d040
shr eax, 8
cmp al, 2
je 0x51d05d
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
call fcn.0051cd90
mov dword [0x59fa84], eax
test eax, eax
je 0x51d080
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51d080
mov dword [0x59fa88], eax
mov ecx, 3
call fcn.0051ced0
test eax, eax
je 0x51d0b7
push 0x5a3470
mov dword [0x5a346c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov dword [0x5a346c], 0
xor eax, eax
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
Function at 0x52c950
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
xor esi, esi
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
mov dword [eax], esi
jmp 0x52c980
mov ecx, dword [ecx]
xor eax, eax
mov edx, dword [ecx + 0x638]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov edi, 0x493e0
test edx, edx
jle 0x52c99c
lea eax, [ebx + 1]
mov ecx, dword [ecx + 0x63c]
test ecx, ecx
jle 0x52c9a9
or eax, 2
dec eax
je 0x52c9ba
dec eax
je 0x52c9b6
dec eax
jne 0x52c9c1
cmp edx, ecx
jl 0x52c9ba
mov eax, ecx
jmp 0x52c9bc
mov eax, edx
cdq
mov ebx, edx
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.0051f970
mov esi, eax
mov eax, dword [esp + 0x20]
sub esp, 0xc
mov ecx, dword [eax + 0xb30]
mov edx, esp
sub esp, 0x10
mov dword [edx], ecx
mov ecx, dword [eax + 0xb34]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0xb38]
mov eax, dword [eax + 0xb3c]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov eax, dword [esi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0051fa10
add esp, 0x20
sub edi, eax
sbb ebx, edx
mov eax, edi
or eax, ebx
je 0x52cac5
test ebx, ebx
jl 0x52cac5
jg 0x52ca3c
test edi, edi
jb 0x52cac5
push ebx
mov ebx, dword [esp + 0x28]
push edi
push 0xffffffffffffffff
mov ecx, ebx
call fcn.005176f0
add esp, 0xc
test eax, eax
jle 0x52caba
mov esi, dword [esp + 0x14]
push 0
push ebp
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x52ca7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x52ca99
mov ecx, dword [esp + 0x18]
jmp 0x52c980
cmp ebp, eax
je 0x52caa6
test eax, eax
je 0x52caba
mov ecx, dword [esp + 0x18]
add esi, eax
sub ebp, eax
add dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jmp 0x52c980
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x28
ret
Function at 0x52df30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ef6ca
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x52df95
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x52df95
lea eax, [esp]
push eax
call dword [0x593c20]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004ebb9e
add esp, 0x108
ret

Function at 0x52ef20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
xor ebp, ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x18]
mov dword [esp + 0xc], ebp
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x52f0b4
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x52f09e
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x52f02d
cmp dword [edi + 0x18], 0
je 0x52f02d
mov eax, dword [edi + 0x10]
test eax, eax
je 0x52f02d
cmp eax, 0x10
jb 0x52f02d
push 0x20
call dword [0x593c18]
mov esi, eax
add esp, 4
test esi, esi
je 0x52f093
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x593c18]
mov ebx, eax
add esp, 4
mov dword [esi + 0x18], ebx
test ebx, ebx
je 0x52f082
mov edx, dword [edi + 0x18]
mov ecx, dword [edx]
mov dword [ebx], ecx
mov ecx, dword [edx + 4]
mov dword [ebx + 4], ecx
mov eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x52f018
push eax
call dword [0x593c20]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x52f068
test ebp, ebp
jne 0x52f01e
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52f029
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x52ef60
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x52f04c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x52f09a
mov ecx, ebp
call fcn.0052f0c0
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [eax], ebp
pop edi
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x593c28]
push esi
call dword [0x593c28]
add esp, 8
jmp 0x52f03c
push esi
mov ebx, 8
call dword [0x593c28]
add esp, 4
jmp 0x52f03c
mov ebx, 8
jmp 0x52f03c
test ebp, ebp
jne 0x52f0aa
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x40b630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov dword [esp + 0xc], ecx
lea eax, [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, eax
add ecx, 4
mov dword [esp + 0x38], ecx
mov ecx, eax
add ecx, 0x1c
mov dword [esp + 0x3c], ecx
mov ecx, eax
add ecx, 0x38
mov dword [esp + 0x40], ecx
add eax, 0x60
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], 0x9ffdfaa5
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
sub eax, 0x9ffdfaa5
je 0x40b6e1
jmp 0x40b68c
mov eax, dword [esp + 8]
sub eax, 0xe29cd8e4
je 0x40b71f
jmp 0x40b6a0
mov eax, dword [esp + 8]
sub eax, 0xe521a82c
je 0x40b76e
jmp 0x40b6b4
mov eax, dword [esp + 8]
sub eax, 0x368f2bca
je 0x40b80e
jmp 0x40b6c8
mov eax, dword [esp + 8]
sub eax, 0x59eb8400
je 0x40b818
jmp 0x40b6dc
jmp 0x40b867
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, 0x78
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x1a4
vmovsd xmm0, qword [0x43c258]
vmovsd qword [esp + 0x20], xmm0
mov dword [esp + 0x1c], 0x1572
mov dword [esp + 0x14], 0xe29cd8e4
jmp 0x40b867
mov eax, dword [0x44557c]
mov ecx, dword [0x445578]
mov edx, eax
sub edx, 0x93a27df2
sub edx, 1
add edx, 0x93a27df2
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x59eb8400
mov ecx, 0xe521a82c
test dl, 1
cmovne eax, ecx
mov dword [esp + 0x14], eax
jmp 0x40b867
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x34]
lea eax, [0x43c9d0]
mov dword [esp], eax
call fcn.00422e40
sub esp, 4
mov ecx, dword [esp + 0x38]
call fcn.004231e0
mov ecx, dword [esp + 0x3c]
call fcn.004231e0
mov ecx, dword [esp + 0x40]
call fcn.004231e0
mov ecx, dword [esp + 0x44]
call fcn.004231e0
mov ecx, dword [esp + 0x48]
call fcn.004231e0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [0x44557c]
mov ecx, dword [0x445578]
mov edx, eax
add edx, 0x451ac047
sub edx, 1
sub edx, 0x451ac047
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x59eb8400
mov ecx, 0x368f2bca
test dl, 1
cmovne eax, ecx
mov dword [esp + 0x14], eax
jmp 0x40b867
mov eax, dword [esp + 0x4c]
mov esp, ebp
pop ebp
ret 0x9c
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x34]
lea eax, [0x43c9d0]
mov dword [esp], eax
call fcn.00422e40
sub esp, 4
mov ecx, dword [esp + 0x38]
call fcn.004231e0
mov ecx, dword [esp + 0x3c]
call fcn.004231e0
mov ecx, dword [esp + 0x40]
call fcn.004231e0
mov ecx, dword [esp + 0x44]
call fcn.004231e0
mov ecx, dword [esp + 0x48]
call fcn.004231e0
mov dword [esp + 0x14], 0xe521a82c
jmp 0x40b674