joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419fc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x564020]
jne 0x419fce
repz ret
jmp fcn.0041a436

Function at 0x41ac50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x56d3c0]
mov dword [ebp - 4], eax
jmp 0x41ac69
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x41ac86
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x41ac60
mov esp, ebp
pop ebp
ret

Function at 0x41ac90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x56d3d0], eax
je 0x41acae
mov eax, 0x10dd
jmp 0x41ad8f
mov eax, dword [0x56d3e0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ad2c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x41ad0a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x41ad0a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.0041ae00
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x41acb6
mov dword [0x56d3e0], 0
call fcn.0041ada0
mov ecx, dword [0x56d3dc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x41ad79
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x41ad44
mov dword [0x56d3dc], 0
mov dword [0x56d3d0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41b300
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x41b315
xor eax, eax
jmp 0x41b38a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x41b342
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x41b385
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x41b383
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x41b37f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x41b383
xor eax, eax
jmp 0x41b38a
jmp 0x41b339
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41bc50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0041bd20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x41bd0c
cmp dword [ebp - 4], 0x50000000
jb 0x41bc8c
cmp dword [ebp - 4], 0x80000000
ja 0x41bc8c
mov dword [ebp - 4], 0x80010000
jmp 0x41bc65
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41bcb2
jmp 0x41bd0c
cmp dword [ebp - 0x10], 0x10000
jne 0x41bcf5
cmp dword [ebp - 0x14], 0x10000
jb 0x41bcf5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41bce8
mov eax, dword [ebp - 0x24]
jmp 0x41bd0e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x41bd07
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.0041bd20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x41bc65
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41bd50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0041be20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x41be14
cmp dword [ebp - 4], 0x50000000
jb 0x41bd91
cmp dword [ebp - 4], 0x80000000
ja 0x41bd91
mov dword [ebp - 4], 0x4fff0000
jmp 0x41bd6a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41bdb7
jmp 0x41be14
cmp dword [ebp - 0x10], 0x10000
jne 0x41bdfa
cmp dword [ebp - 0x14], 0x10000
jb 0x41bdfa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41bded
mov eax, dword [ebp - 0x24]
jmp 0x41be16
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x41be0f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.0041be20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x41bd6a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41be50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x56d3d0], eax
je 0x41be75
mov eax, 0x10dd
jmp 0x41c00d
cmp dword [0x56d3d4], 0
je 0x41be88
mov eax, dword [0x56d3d4]
jmp 0x41c00d
cmp dword [ebp + 8], 0
jne 0x41be98
mov eax, 6
jmp 0x41c00d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41bec1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x56d3d4], ecx
mov edx, dword [ebp + 8]
mov dword [0x56d3d8], edx
mov eax, dword [ebp - 0xc]
jmp 0x41c00d
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41bf1a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x56d3d4], ecx
cmp dword [ebp - 0x18], 0
je 0x41bf09
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x56d3d8], ecx
mov eax, dword [ebp - 0xc]
jmp 0x41c00d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041a990
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041a990
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x41bf5a
cmp dword [ebp - 8], 0x1e
jbe 0x41bf76
mov dword [ebp - 0xc], 9
cmp dword [0x56d3c8], 0
je 0x41bf71
jmp 0x41beea
jmp 0x41bee1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x41bf9d
mov dword [ebp - 0xc], 9
cmp dword [0x56d3c8], 0
je 0x41bf98
jmp 0x41beea
jmp 0x41bee1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41bfca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x41bee1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x56d3e0]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x56d3e0], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41c830
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x564020]
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 0x41c882
mov eax, dword [esp]
cmp al, 2
jne 0x41c87c
shr eax, 8
cmp al, 2
jne 0x41c87c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00419fc4
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.00419fc4
add esp, 0x194
ret

Function at 0x427a90
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 0x427ac2
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 0x427c10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
push ebp
mov ebp, dword [esp + 8]
test ecx, ecx
je 0x427c31
mov edx, dword [esi + 0xf4]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x427c67
cmp eax, 2
jg 0x427c67
mov ecx, dword [esi + 0xf0]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x51169c]
push 2
push edx
call edi
mov eax, dword [esi + 0xf0]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x427f70
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 0x427fed
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x427fc4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0042bd80
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00427df0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x857c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4287c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x564020]
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 0x4288fb
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 0x42883c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0042bd80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00427df0
add esp, 0x18
jmp 0x428904
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 0x42887c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0042bd80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00427df0
add esp, 0x18
jmp 0x428904
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00428780
test eax, eax
jne 0x4288ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0042bd80
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00427df0
add esp, 0x18
jmp 0x428904
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00428780
test eax, eax
jne 0x4288fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0042bd80
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00427df0
add esp, 0x18
jmp 0x428904
push ebp
call fcn.00428720
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419fc4
add esp, 0x10c
ret

Function at 0x428920
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 0x428963
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042bd80
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00427d60
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00427d60
add esp, 8
pop esi
pop ecx
ret

Function at 0x428980
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 0x4289c9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4289e1
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 0x4289f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x540]
cmp eax, 0xffffffff
je 0x428a54
mov ecx, dword [ecx + 0x534]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x428a54
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x428a1c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x428a3e
push eax
call fcn.0041d9a0
add esp, 4
test eax, eax
jne 0x428a50
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 0x428a35
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x429ba0
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 0x429d51
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x429d2f
push esi
jmp 0x429bf0
cmp dword [edi + 4], 2
jne 0x429ca8
cmp dword [edi + 0x18], ebx
je 0x429ca8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x429ca8
cmp eax, 0x10
jb 0x429ca8
push 0x20
call dword [0x564038]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x429cb5
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 [0x564038]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x429cbf
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 0x429c95
push eax
call dword [0x564044]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x429cd3
cmp dword [esp + 0x10], ebx
jne 0x429c9f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x429ca6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x429bf0
jmp 0x429cef
mov dword [esp + 0x14], 8
jmp 0x429cef
push esi
mov dword [esp + 0x18], 8
call dword [0x56403c]
add esp, 4
jmp 0x429cef
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x56403c]
push esi
call dword [0x56403c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x429cff
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x429d29
mov eax, dword [esp + 0xc]
push eax
call fcn.00429b50
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 0x429d42
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 0x42b370
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 0x42b394
cmp eax, 0xffffffff
jne 0x42b396
xor eax, eax
ret
Function at 0x42cbc0
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5115e4
push ecx
call fcn.00427d60
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004381e0
test eax, eax
jne 0x439050
mov eax, esi
jmp fcn.00438680
ret
Function at 0x439460
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x564020]
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 0x4394ef
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x43952a
push str.Received_too_short_packet
push ebx
call fcn.00427df0
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.00419fc4
add esp, 0x88
ret
mov eax, edi
call fcn.00438380
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x439543
jmp dword [eax*4 + 0x43962c]
cmp edx, 4
jle case.0x439543.4
mov eax, edi
call fcn.00438390
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x439543.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004280d0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x439596
mov ecx, 5
mov eax, esi
call fcn.004393e0
mov eax, edi
jmp 0x439511
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.00430130
jmp 0x439602
mov eax, edi
call fcn.00438390
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x5115e4
push ebx
mov dword [esi + 8], edx
call fcn.00427d60
jmp 0x439602
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00438420
add esp, 0xc
test eax, eax
je case.0x439543.4
jmp 0x439511
push str.Internal_error:_Unexpected_packet
push 0x511444
push ebx
call fcn.00427df0
add esp, 0xc
push ebp
call fcn.004301f0
add esp, 4
test eax, eax
je 0x43950f
mov ecx, 5
mov eax, esi
call fcn.004393e0
mov eax, 0x2a
jmp 0x439511

Function at 0x43a950
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 0x43a994
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00427df0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0043a850
add esp, 4
pop esi
pop ecx
ret
Function at 0x43bfb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x564020]
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.00428230
add esp, 0xc
test eax, eax
jl 0x43c019
mov ecx, 0x3e8
cmp eax, ecx
jge 0x43bff0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.00443f50
add esp, 0xc
cmp eax, 0xffffffff
je 0x43c0b4
test eax, eax
jne 0x43c03e
push 1
push eax
push edi
call fcn.00428230
add esp, 0xc
test eax, eax
jge 0x43bfe5
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.00427df0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00419fc4
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 0x43c06e
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.00428a60
add esp, 8
cmp ebp, 0xffffffff
jne 0x43c084
push str.Error_accept__ing_server_connect
jmp 0x43c0b9
push str.Connection_accepted_from_server_n
push edi
call fcn.00427d60
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.00446f50
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00419fc4
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.00427df0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.00419fc4
add esp, 0x18
ret