joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d91f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x78f694]
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 0x5d9242
mov eax, dword [esp]
cmp al, 2
jne 0x5d923c
shr eax, 8
cmp al, 2
jne 0x5d923c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062cbd3
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.0062cbd3
add esp, 0x194
ret

Function at 0x5d9360
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 0x5d9380
lea eax, [ebp + 0x2b]
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 8], ebp
je 0x5d939e
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.005e5030
add esp, 8
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [ebx + 0xc]
cmp edi, ebp
jne 0x5d93c7
push 3
push 1
call fcn.005e2a30
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x5d93c4
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x41c]
push esi
push eax
push 6
push edi
call fcn.005e2f20
push ebx
push edi
call fcn.005e34f0
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x5d9407
push edi
call fcn.005e2ca0
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 + 8], edi
jmp 0x5d9414
mov ebx, dword [esp + 0x28]
test esi, esi
jne 0x5d94e0
call fcn.005e4b80
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov ebp, edx
call fcn.005e36c0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5d9410
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x5d94d4
cmp eax, esi
jne 0x5d948f
call fcn.005e4b80
push ebp
push ebx
push edx
push eax
call fcn.005e4bb0
add esp, 0x10
cmp eax, 0xa
jg 0x5d948f
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jle 0x5d9493
imul eax, eax, 0x32
cmp eax, 0x3e8
jle 0x5d9484
mov eax, 0x3e8
push eax
call fcn.005db4b0
add esp, 4
jmp 0x5d9493
mov dword [esp + 0x10], esi
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.005e4a40
mov esi, eax
add esp, 8
test esi, esi
jne 0x5d9410
cmp dword [esp + 0x1c], eax
jne 0x5d9410
lea eax, [esp + 0x20]
push eax
push edi
call fcn.005e2db0
add esp, 8
test eax, eax
je 0x5d9410
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
jmp 0x5d94dc
mov dword [esp + 0x14], 0x38
mov ebx, dword [esp + 0x28]
push ebx
push edi
call fcn.005e3b30
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5e4ce0
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 0x5e4d12
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 0x5e4e50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x5e4e6b
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 0x5e4e9f
cmp eax, 2
jg 0x5e4e9f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x729490]
push 2
push edx
call fcn.0062e901
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0062e901
add esp, 0x20
xor eax, eax
ret

Function at 0x5e51b0
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 0x5e522d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x5e5204
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.005db390
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.005e5030
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8594], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5e68d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x410], 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 0x5e690e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005e4fa0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x414]
push edx
mov dword [esp + 0xc], 1
call fcn.005ffa50
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x418]
push eax
call fcn.005ffa50
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 0x5e6987
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.005e4fa0
add esp, 0x10
add esp, 0x14
ret
Function at 0x5e6f90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1a8], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x5e70cb
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 0x5e700c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.005db390
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.005e5030
add esp, 0x18
jmp 0x5e70d4
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 0x5e704c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.005db390
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.005e5030
add esp, 0x18
jmp 0x5e70d4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.005e6f50
test eax, eax
jne 0x5e708a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.005db390
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.005e5030
add esp, 0x18
jmp 0x5e70d4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.005e6f50
test eax, eax
jne 0x5e70cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.005db390
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.005e5030
add esp, 0x18
jmp 0x5e70d4
push ebp
call fcn.005e6ef0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062cbd3
add esp, 0x10c
ret

Function at 0x5e70f0
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 0x5e7133
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005db390
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005e4fa0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.005e4fa0
add esp, 8
pop esi
pop ecx
ret
Function at 0x5e7150
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x797598], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x5e71df
push 0x94
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00630180
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
mov dword [0x797598], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5e71df
cmp dword [esp + 0x10], 6
jb 0x5e71df
mov dword [0x797598], 2
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0062cbd3
add esp, 0xa4
ret
cmp dword [0x797598], 2
je 0x5e7232
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 0x5e7219
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x5e7231
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.0062cbd3
add esp, 0xa4
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x558]
test esi, esi
je 0x5e72bd
mov eax, dword [edi + 0xc]
test eax, eax
je 0x5e72bd
push 0x5e7250
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.005fd210
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x5e72c6
mov dword [edi + 0x558], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5e72d0
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x5e72bd
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x5e72bd
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x5e78d0
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 + 0x1c8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
je 0x5e7918
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
call fcn.005e4b80
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x28], edx
call fcn.005e6990
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jge 0x5e7958
push str.Connection_time_out
push ebp
call fcn.005e5030
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x10
ret
mov eax, esi
call fcn.005e6a50
cmp eax, 1
jne 0x5e79a2
mov ecx, dword [edi + 0x20c]
mov edx, dword [edi + 0x208]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + 0x214]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.005e4bb0
add esp, 0x10
cmp eax, ebx
jl 0x5e790e
push ebx
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.005e4fa0
add esp, 0xc
jmp 0x5e7a5e
test eax, eax
jne 0x5e7a0e
push esi
lea esi, [esp + 0x28]
call fcn.005e6e80
add esp, 4
test eax, eax
je 0x5e7a49
push edi
call fcn.005dd280
add esp, 4
test eax, eax
jne 0x5e7abd
mov edx, dword [esp + 0x2c]
mov dword [edi + ebx*4 + 0x1c8], 1
mov dword [edx], 1
test ebx, ebx
jne 0x5e79f0
push 2
push ebp
call fcn.005fe220
add esp, 8
push edi
call fcn.005dd3c0
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.005e6f90
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp eax, 2
jne 0x5e7a39
push esi
lea esi, [esp + 0x28]
call fcn.005e6e80
mov esi, dword [esp + 0x28]
push esi
push edi
call fcn.005db390
push eax
push 0x759678
push ebp
call fcn.005e4fa0
add esp, 0x18
jmp 0x5e7a4d
push str.Connection_failed_n
push ebp
call fcn.005e4fa0
add esp, 8
jmp 0x5e7a5e
mov esi, dword [esp + 0x24]
test esi, esi
je 0x5e7a5e
push esi
mov dword [ebp + 0x8594], 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 0x5e7a70
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [edi + 0x214], eax
mov eax, dword [esp + 0x28]
mov esi, edi
call fcn.005e7840
mov esi, eax
test esi, esi
je 0x5e7abb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x8594], eax
call fcn.005db390
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.005e5030
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5e8dc0
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 0x5e8f71
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x5e8f4f
push esi
jmp 0x5e8e10
cmp dword [edi + 4], 2
jne 0x5e8ec8
cmp dword [edi + 0x18], ebx
je 0x5e8ec8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x5e8ec8
cmp eax, 0x10
jb 0x5e8ec8
push 0x20
call dword [0x78e218]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5e8ed5
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 [0x78e218]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x5e8edf
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 0x5e8eb5
push eax
call dword [0x78e224]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x5e8ef3
cmp dword [esp + 0x10], ebx
jne 0x5e8ebf
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x5e8ec6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x5e8e10
jmp 0x5e8f0f
mov dword [esp + 0x14], 8
jmp 0x5e8f0f
push esi
mov dword [esp + 0x18], 8
call dword [0x78e21c]
add esp, 4
jmp 0x5e8f0f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x78e21c]
push esi
call dword [0x78e21c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x5e8f1f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x5e8f49
mov eax, dword [esp + 0xc]
push eax
call fcn.005e8d70
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 0x5e8f62
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 0x5e92b0
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.0062d507
add esp, 0x18
test eax, eax
je 0x5e92d3
cmp eax, 0xffffffff
jne 0x5e92d5
xor eax, eax
ret
Function at 0x5f0680
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x759678
push ecx
call fcn.005e4fa0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.005ef830
test eax, eax
jne 0x5f06b0
mov eax, esi
jmp fcn.005efcc0
ret
Function at 0x5f26a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x134]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x5f26e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005e5030
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.005f25a0
add esp, 4
pop esi
pop ecx
ret
Function at 0x5f3400
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x8684]
mov dword [esp + 4], eax
jne 0x5f356a
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x5f3439
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f3446
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f3453
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f3487
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f3497
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f34a3
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f34af
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f34bc
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x5f34c9
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebx + 0x1eb4], eax
mov dword [ebp], edi
call fcn.005f2a30
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x134]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x5f3529
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.005e5030
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.005f3290
mov eax, dword [edi + 0x134]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jge 0x5f3567
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.005e5030
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5f3fa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x138]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5f3ff4
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.005e7300
add esp, 8
cmp edi, 0xffffffff
jne 0x5f4028
push str.Error_accept__ing_server_connect
push ebp
call fcn.005e5030
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.005e4fa0
push 1
push edi
mov dword [esi + 0x138], edi
call fcn.00602a80
mov dword [esi + 0x140], 1
mov eax, dword [ebp + 0x16c]
add esp, 0x10
test eax, eax
je 0x5f4096
mov ecx, dword [ebp + 0x170]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x5f4096
push edi
push esi
call fcn.005e7300
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x138], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0062cbd3
add esp, 0x18
ret
Function at 0x5f76d0
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x5f7706
push str.Couldnt_set_desired_mode
push ebx
call fcn.005e5030
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x5f771d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.005e4fa0
add esp, 0xc
cmp ebp, 0x13
jne 0x5f7731
push edi
call fcn.005f7660
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x5f7745
push edi
call fcn.005f49e0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x5f7757
mov ecx, edi
call fcn.005f76b0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x5f7765
mov ecx, edi
call fcn.005f76c0
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x5ff650
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00630a1c
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x5ff8a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x5ff8a5
lea edx, [esp]
push edx
call dword [0x78e224]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0062cbd3
add esp, 0x108
ret
jmp 0x5ff840

Function at 0x5ff8c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00630a1c
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x5ff8a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x5ff8a5
lea edx, [esp]
push edx
call dword [0x78e224]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0062cbd3
add esp, 0x108
ret
jmp 0x5ff840