joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7b23b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edi, edi
jne 0x7b2415
cmp dword [ebp + 0x20], 0
jne 0x7b23e9
push 1
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x20]
push eax
call fcn.007b23b0
add esp, 0x1c
jmp 0x7c2f7b
lea edx, [ebp + 0x20]
sub edx, ebx
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0
jle 0x7b240a
mov eax, dword [ebp - 0x90]
neg eax
jmp 0x7c2f7b
mov eax, dword [ebp - 0x90]
jmp 0x7c2f7b
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
Function at 0x84a0e0
Capabilities:
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409e10
xor eax, eax
push ebp
push 0x84a1b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00423840
test al, al
je 0x84a192
mov ebx, 0x84a1c0
xor eax, eax
push ebp
push 0x84a188
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a6c4
mov eax, dword [ebp - 0x10]
call fcn.0040a634
push eax
call fcn.00688b78
add esp, 8
test eax, eax
jne 0x84a17e
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x849790
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call fcn.00688b88
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call fcn.00688ba0
pop ecx
mov eax, dword [ebp - 8]
push eax
call fcn.00688b80
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x84a192
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x84a1b7
lea eax, [ebp - 0x10]
call fcn.00409d50
lea eax, [ebp - 4]
call fcn.00409d2c
ret
Function at 0x409450
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x520d08]
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 0x4094a2
mov eax, dword [esp]
cmp al, 2
jne 0x40949c
shr eax, 8
cmp al, 2
jne 0x40949c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d2b58
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.004d2b58
add esp, 0x194
ret

Function at 0x4096a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
cmp ebx, ebp
jne 0x4096c0
lea eax, [ebp + 0x2b]
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0x40], ebp
je 0x4096de
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.00415df0
add esp, 8
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [ebx + 0x44]
cmp edi, ebp
jne 0x409707
push 3
push 1
call fcn.004134d0
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x409704
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x454]
push esi
push eax
push 6
push edi
call sym.pcttool.exe_curl_multi_setopt
push ebx
push edi
call sym.pcttool.exe_curl_multi_add_handle
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x409747
push edi
call sym.pcttool.exe_curl_multi_cleanup
add esp, 4
mov eax, esi
sub eax, 3
neg eax
pop esi
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop ebp
add eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0x40], edi
jmp 0x409754
mov ebx, dword [esp + 0x28]
test esi, esi
jne 0x409830
call fcn.00415940
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov ebp, edx
call sym.pcttool.exe_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409750
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x409824
cmp eax, esi
jne 0x4097df
call fcn.00415940
push ebp
push ebx
push edx
push eax
call fcn.00415970
add esp, 0x10
cmp eax, 0xa
jg 0x4097df
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jle 0x4097e3
cmp eax, 0xa
jge 0x4097cf
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.0040b290
add esp, 4
jmp 0x4097e3
mov eax, 0x3e8
push eax
call fcn.0040b290
add esp, 4
jmp 0x4097e3
mov dword [esp + 0x10], esi
lea edx, [esp + 0x1c]
push edx
push edi
call sym.pcttool.exe_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne 0x409750
cmp dword [esp + 0x1c], eax
jne 0x409750
lea eax, [esp + 0x20]
push eax
push edi
call sym.pcttool.exe_curl_multi_info_read
add esp, 8
test eax, eax
je 0x409750
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
jmp 0x40982c
mov dword [esp + 0x14], 0x38
mov ebx, dword [esp + 0x28]
push ebx
push edi
call sym.pcttool.exe_curl_multi_remove_handle
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40aab0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x40aad2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40aac6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x40ab04
cmp dword [esi + 8], 0
jne 0x40aaf6
mov ecx, dword [eax + 8]
push 0x4d74c0
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x40aaf6
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40ab27
mov eax, dword [esi + 8]
test eax, eax
je 0x40ab21
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
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 0x415aa0
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 0x415ad2
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 0x415c10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a0]
push ebp
mov ebp, dword [esp + 8]
test ecx, ecx
je 0x415c31
mov edx, dword [esi + 0x12c]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x415c67
cmp eax, 2
jg 0x415c67
mov ecx, dword [esi + 0x128]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d7e98]
push 2
push edx
call edi
mov eax, dword [esi + 0x128]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x415e90
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 + 0x134]
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x415f0d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x415ee4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0041b1c0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00415df0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85cc], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x417bb0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x448], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x417bee
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00415d60
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x44c]
push edx
mov dword [esp + 0xc], 1
call fcn.00425cd0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x450]
push eax
call fcn.00425cd0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x417c67
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.00415d60
add esp, 0x10
add esp, 0x14
ret
Function at 0x418270
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1c8], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x4183ab
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 0x4182ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041b1c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00415df0
add esp, 0x18
jmp 0x4183b4
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 0x41832c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041b1c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00415df0
add esp, 0x18
jmp 0x4183b4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00418230
test eax, eax
jne 0x41836a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041b1c0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00415df0
add esp, 0x18
jmp 0x4183b4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00418230
test eax, eax
jne 0x4183ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041b1c0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00415df0
add esp, 0x18
jmp 0x4183b4
push ebp
call fcn.004181d0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d2b58
add esp, 0x10c
ret

Function at 0x4183d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
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 0x418413
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041b1c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00415d60
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00415d60
add esp, 8
pop esi
pop ecx
ret
Function at 0x418430
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x525a50], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x4184bf
push 0x94
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
mov dword [0x525a50], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4184bf
cmp dword [esp + 0x10], 6
jb 0x4184bf
mov dword [0x525a50], 2
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004d2b58
add esp, 0xa4
ret
cmp dword [0x525a50], 2
je 0x418512
push esi
mov esi, dword [esp + 0xac]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4184f9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x418511
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004d2b58
add esp, 0xa4
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x41859d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x41859d
push 0x418530
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.00424170
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x4185a6
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4185b0
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
je 0x4185d5
push esi
call fcn.0040c590
add esp, 4
test eax, eax
jne 0x4185e9
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x41859d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x418bd0
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
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + ebx*4 + 0x134]
mov ebp, dword [edi]
mov dword [eax], 0
cmp dword [edi + ebx*4 + 0x1e8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
je 0x418c18
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
call fcn.00415940
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x28], edx
call fcn.00417c70
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jge 0x418c58
push str.Connection_time_out
push ebp
call fcn.00415df0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x10
ret
mov eax, esi
call fcn.00417d30
cmp eax, 1
jne 0x418ca2
mov ecx, dword [edi + 0x22c]
mov edx, dword [edi + 0x228]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + 0x234]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00415970
add esp, 0x10
cmp eax, ebx
jl 0x418c0e
push ebx
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.00415d60
add esp, 0xc
jmp 0x418d5e
test eax, eax
jne 0x418d0e
push esi
lea esi, [esp + 0x28]
call fcn.00418160
add esp, 4
test eax, eax
je 0x418d49
push edi
call fcn.0040dac0
add esp, 4
test eax, eax
jne 0x418dbd
mov edx, dword [esp + 0x2c]
mov dword [edi + ebx*4 + 0x1e8], 1
mov dword [edx], 1
test ebx, ebx
jne 0x418cf0
push 2
push ebp
call fcn.0041e3d0
add esp, 8
push edi
call fcn.0040dc00
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.00418270
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp eax, 2
jne 0x418d39
push esi
lea esi, [esp + 0x28]
call fcn.00418160
mov esi, dword [esp + 0x28]
push esi
push edi
call fcn.0041b1c0
push eax
push 0x4d808c
push ebp
call fcn.00415d60
add esp, 0x18
jmp 0x418d4d
push str.Connection_failed_n
push ebp
call fcn.00415d60
add esp, 8
jmp 0x418d5e
mov esi, dword [esp + 0x24]
test esi, esi
je 0x418d5e
push esi
mov dword [ebp + 0x85cc], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x10]
je 0x418d70
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [edi + 0x234], eax
mov eax, dword [esp + 0x28]
mov esi, edi
call fcn.00418b40
mov esi, eax
test esi, esi
je 0x418dbb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x85cc], eax
call fcn.0041b1c0
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x80]
push edx
push eax
push str.Failed_connect_to__s:_ld___s
push ebp
call fcn.00415df0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41a1d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x41a381
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x41a35f
push esi
jmp 0x41a220
cmp dword [edi + 4], 2
jne 0x41a2d8
cmp dword [edi + 0x18], ebx
je 0x41a2d8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x41a2d8
cmp eax, 0x10
jb 0x41a2d8
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a2e5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x41a2ef
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x41a2c5
push eax
call dword [0x51d00c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x41a303
cmp dword [esp + 0x10], ebx
jne 0x41a2cf
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x41a2d6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x41a220
jmp 0x41a31f
mov dword [esp + 0x14], 8
jmp 0x41a31f
push esi
mov dword [esp + 0x18], 8
call dword [0x51d004]
add esp, 4
jmp 0x41a31f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x51d004]
push esi
call dword [0x51d004]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x41a32f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x41a359
mov eax, dword [esp + 0xc]
push eax
call fcn.0041a180
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x41a372
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x41a6c0
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 dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x41a6e4
cmp eax, 0xffffffff
jne 0x41a6e6
xor eax, eax
ret
Function at 0x41b390
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x425966
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x425966
lea edx, [esp]
push edx
call dword [0x51d00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d2b58
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004d2b58
add esp, 0x108
ret
jmp 0x425900

Function at 0x425980
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x425966
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x425966
lea edx, [esp]
push edx
call dword [0x51d00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d2b58
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004d2b58
add esp, 0x108
ret
jmp 0x425900
Function at 0x42a610
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x42a643
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x42a641
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x42a830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004d2ea0
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x42a877
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004d2b58
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.MSVCR90.dll__stat64i32]
add esp, 8
test eax, eax
jl 0x42a860
mov eax, 8
call fcn.004d2ea0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.0042a6a0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x42a860
push 0x4d74c0
push esi
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x42a975
test dword [esp + 0x4e], 0x2000
je 0x42a8f6
cmp ebx, 0xffffffff
jne 0x42a8e0
mov ebx, 0x800
push 0
push 4
push 0
push edi
call dword [sym.imp.MSVCR90.dll_setvbuf]
add esp, 0x10
jmp 0x42a8f6
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x42a904
cmp ebx, 0x400
mov esi, ebx
jl 0x42a909
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x42a958
fild dword [esp + 0x44]
mov eax, 8
call fcn.004d2ea0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.0042a6a0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x42a8f2
sub ebx, esi
test ebx, ebx
jg 0x42a8f2
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00439ef0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2b58
mov esp, ebp
pop ebp
ret