joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6389
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a63c6
cmp dword [ebp + 0x14], edi
je 0x4a63c6
cmp ecx, edi
jne 0x4a63cd
call fcn.004a62e7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049eca4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a63e1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a6402
cmp ebx, 0xffffffff
je 0x4a63f1
push ebx
push edi
push ecx
call fcn.0049e690
add esp, 0xc
cmp esi, edi
je 0x4a63ae
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a63ae
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a641e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a6425
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a6516
test word [esi + 0xc], 0x10c
je 0x4a6479
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6479
jl 0x4a6577
cmp ebx, eax
mov edi, ebx
jb 0x4a644a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a651e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049e7b2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a650e
cmp ebx, dword [ebp - 0xc]
jb 0x4a64e6
cmp dword [ebp - 0xc], 0
je 0x4a64a3
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a6498
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a649f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a64ae
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a64ae
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a654a
push eax
push dword [ebp - 8]
push esi
call fcn.004b4bd7
pop ecx
push eax
call fcn.004b7b3d
add esp, 0xc
test eax, eax
je 0x4a6589
cmp eax, 0xffffffff
je 0x4a6577
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a650e
push esi
call fcn.004b6e05
cmp eax, 0xffffffff
pop ecx
je 0x4a657b
cmp dword [ebp - 4], 0
je 0x4a654a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a642d
mov eax, dword [ebp + 0x14]
jmp 0x4a63c8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a6535
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049e690
add esp, 0xc
call fcn.004a62e7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a63be
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a6560
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049e690
add esp, 0xc
call fcn.004a62e7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a63be
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a63c8
or dword [esi + 0xc], 0x10
jmp 0x4a657b
Function at 0x4a85b7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5f46b0]
je 0x4a85d2
inc edi
cmp edi, 0x17
jb 0x4a85c3
cmp edi, 0x17
jae 0x4a8752
push ebp
push 3
call fcn.004b95e6
cmp eax, 1
pop ecx
je 0x4a871e
push 3
call fcn.004b95e6
test eax, eax
pop ecx
jne 0x4a8606
cmp dword [0x5f44ac], 1
je 0x4a871e
cmp ebx, 0xfc
je 0x4a8751
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x603680
push ebp
call fcn.004ab54a
add esp, 0xc
test eax, eax
je 0x4a863c
push esi
push esi
push esi
push esi
push esi
call fcn.0049eba8
add esp, 0x14
push 0x104
mov esi, 0x603699
push esi
push 0
mov byte [0x60379d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a8680
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004ab54a
add esp, 0xc
test eax, eax
je 0x4a8680
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049eba8
add esp, 0x14
push esi
call fcn.0049e390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a86c5
push esi
call fcn.0049e390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x603994
push 0x5a01dc
sub ecx, eax
push ecx
push eax
call fcn.004b2d82
add esp, 0x14
test eax, eax
je 0x4a86c5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049eba8
add esp, 0x14
jmp 0x4a86c7
xor esi, esi
push 0x5a01d8
push ebx
push ebp
call fcn.004b2d11
add esp, 0xc
test eax, eax
je 0x4a86e7
push esi
push esi
push esi
push esi
push esi
call fcn.0049eba8
add esp, 0x14
push dword [edi*8 + 0x5f46b4]
push ebx
push ebp
call fcn.004b2d11
add esp, 0xc
test eax, eax
je 0x4a8709
push esi
push esi
push esi
push esi
push esi
call fcn.0049eba8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b9429
add esp, 0xc
jmp 0x4a8751
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a8751
cmp ebp, 0xffffffff
je 0x4a8751
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5f46b4]
push dword [esi]
call fcn.0049e390
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b9429
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a9167
xor ebx, ebx
cmp dword [0x60418c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b94ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b95df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a1644
push edi
call esi
cmp eax, ebx
je 0x4b95df
push eax
call fcn.004a90f9
mov dword [esp], 0x5a1634
push edi
mov dword [0x60418c], eax
call esi
push eax
call fcn.004a90f9
mov dword [esp], 0x5a1620
push edi
mov dword [0x604190], eax
call esi
push eax
call fcn.004a90f9
mov dword [0x604194], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a7a1a
test eax, eax
pop ecx
pop ecx
je 0x4b94cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049eba8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b94ff
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a90f9
cmp eax, ebx
pop ecx
mov dword [0x60419c], eax
je 0x4b94ff
push 0x5a15ec
push edi
call esi
push eax
call fcn.004a90f9
pop ecx
mov dword [0x604198], eax
mov eax, dword [0x604198]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b9584
cmp dword [0x60419c], ecx
je 0x4b9584
push eax
call fcn.004a9170
push dword [0x60419c]
mov esi, eax
call fcn.004a9170
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b9584
cmp edi, ebx
je 0x4b9584
call esi
cmp eax, ebx
je 0x4b9551
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b9551
test byte [ebp - 0x18], 1
jne 0x4b9584
lea eax, [ebp - 0x10]
push eax
call fcn.004a7a51
test eax, eax
pop ecx
je 0x4b956c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049eba8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b957b
or dword [ebp + 0x10], 0x200000
jmp 0x4b95bf
or dword [ebp + 0x10], 0x40000
jmp 0x4b95bf
mov eax, dword [0x604190]
cmp eax, dword [ebp - 8]
je 0x4b95bf
push eax
call fcn.004a9170
cmp eax, ebx
pop ecx
je 0x4b95bf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b95bf
mov eax, dword [0x604194]
cmp eax, dword [ebp - 8]
je 0x4b95bf
push eax
call fcn.004a9170
cmp eax, ebx
pop ecx
je 0x4b95bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x60418c]
call fcn.004a9170
cmp eax, ebx
pop ecx
je 0x4b95df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b95e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c0740
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5f44b0]
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 0x4c0792
mov eax, dword [esp]
cmp al, 2
jne 0x4c078c
shr eax, 8
cmp al, 2
jne 0x4c078c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0049e381
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.0049e381
add esp, 0x194
ret

Function at 0x4c1b90
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4c1bb2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c1ba6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4c1be2
cmp dword [esi + 8], 0
jne 0x4c1bd5
mov ecx, dword [eax + 8]
push 0x59ba60
push ecx
call fcn.004a4d76
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4c1bd5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004a6625
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c1c04
mov eax, dword [esi + 8]
test eax, eax
je 0x4c1bfe
push eax
call fcn.004a3b19
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 0x4cd240
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 0x4cd272
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 0x4cd3c0
Capabilities:
Write file on windows

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

Function at 0x4cd720
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4cd79d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4cd774
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004d1a30
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004cd5a0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cdf70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5f44b0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1bc], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x4ce0ab
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 0x4cdfec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004d1a30
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004cd5a0
add esp, 0x18
jmp 0x4ce0b4
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 0x4ce02c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004d1a30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004cd5a0
add esp, 0x18
jmp 0x4ce0b4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004cdf30
test eax, eax
jne 0x4ce06a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004d1a30
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004cd5a0
add esp, 0x18
jmp 0x4ce0b4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004cdf30
test eax, eax
jne 0x4ce0ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004d1a30
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004cd5a0
add esp, 0x18
jmp 0x4ce0b4
push ebp
call fcn.004cded0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e381
add esp, 0x10c
ret

Function at 0x4ce0d0
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 0x4ce113
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d1a30
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004cd510
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004cd510
add esp, 8
pop esi
pop ecx
ret

Function at 0x4ce130
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 0x4ce179
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4ce191
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 0x4ce1a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x4ce204
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4ce204
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x4ce1cc
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4ce1ee
push eax
call fcn.004c3220
add esp, 4
test eax, eax
jne 0x4ce200
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4ce1e5
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x4cff60
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
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4d0004
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4cffd5
cmp word [ecx + 0xa], 4
jne 0x4cffd5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4cffd5
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.004cfef0
mov dword [esi], eax
test eax, eax
je 0x4cfff8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4cffb0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004b2d82
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.0x4d0014.11001
jmp dword [eax*4 + 0x4d0038]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4d0870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5f44b0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x60443c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4d02d0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4d05c0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004d0280
je 0x4d08e2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x5f5994]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0049e381
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d09dd
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004ab54a
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004b2d11
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 0x4d095d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4d09a4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004ab54a
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004b2d11
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4d09d9
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4d0a0d
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4d0a0d
inc edi
cmp edi, 3
jl 0x4d09a6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x5f5994], edx
mov dword [0x5f599c], eax
mov dword [fcn.004d0280], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x5f5994]
xor ecx, esp
mov dword [0x60443c], 1
call fcn.0049e381
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4d09d9

Function at 0x4d0f80
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.004a6bfd
add esp, 0x18
test eax, eax
je 0x4d0fa3
cmp eax, 0xffffffff
jne 0x4d0fa5
xor eax, eax
ret

Function at 0x4d4350
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4d435f
jmp dword [ecx*4 + 0x4d43b4]
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 0x4dcfc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5a37a0
push ecx
call fcn.004cd510
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004dc1a0
test eax, eax
jne 0x4dcff0
mov eax, esi
jmp fcn.004dc630
ret
Function at 0x4dd400
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5f44b0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3f0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4dd48f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004a3630
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4dd4ca
push str.Received_too_short_packet
push ebx
call fcn.004cd5a0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e381
add esp, 0x88
ret
mov eax, edi
call fcn.004dc340
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4dd4e3
jmp dword [eax*4 + 0x4dd5cc]
cmp edx, 4
jle case.0x4dd4e3.4
mov eax, edi
call fcn.004dc350
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4dd4e3.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004cd880
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4dd536
mov ecx, 5
mov eax, esi
call fcn.004dd380
mov eax, edi
jmp 0x4dd4b1
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.004d78b0
jmp 0x4dd5a2
mov eax, edi
call fcn.004dc350
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x5a37a0
push ebx
mov dword [esi + 8], edx
call fcn.004cd510
jmp 0x4dd5a2
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004dc3e0
add esp, 0xc
test eax, eax
je case.0x4dd4e3.4
jmp 0x4dd4b1
push str.Internal_error:_Unexpected_packet
push 0x59b92c
push ebx
call fcn.004cd5a0
add esp, 0xc
push ebp
call fcn.004d7970
add esp, 4
test eax, eax
je 0x4dd4af
mov ecx, 5
mov eax, esi
call fcn.004dd380
mov eax, 0x2a
jmp 0x4dd4b1

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

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
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 0x4de904
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004cd5a0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004de7c0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4dff00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5f44b0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
push edi
mov edi, dword [esi]
push 1
push 0
push edi
or ebp, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004cd9e0
add esp, 0xc
test eax, eax
jl 0x4dff69
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4dff40
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.004e7e50
add esp, 0xc
cmp eax, 0xffffffff
je 0x4e0004
test eax, eax
jne 0x4dff8e
push 1
push eax
push edi
call fcn.004cd9e0
add esp, 0xc
test eax, eax
jge 0x4dff35
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.004cd5a0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049e381
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4dffbe
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 ebp, eax
push ebx
push esi
call fcn.004ce210
add esp, 8
cmp ebp, 0xffffffff
jne 0x4dffd4
push str.Error_accept__ing_server_connect
jmp 0x4e0009
push str.Connection_accepted_from_server_n
push edi
call fcn.004cd510
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.004eaf00
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049e381
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.004cd5a0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.0049e381
add esp, 0x18
ret