joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504668
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x38], 0
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0xc]
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x4857a6
cmp ebp, esi
jbe 0x48577b
call fcn.004c98a6
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
push esi
push eax
lea eax, [esp + 0x48]
push eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebx, ecx
push ebx
push edi
call fcn.004864f0
jmp 0x4857f3
jae 0x4857f3
cmp ebp, esi
jbe 0x4857b1
call fcn.004c98a6
mov ebp, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x20], edx
cmp ebp, dword [edi + 0x10]
jbe 0x4857c4
call fcn.004c98a6
mov eax, dword [edi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ebp
call fcn.004868c0
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push esi
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00485840
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x485806
push eax
call fcn.004c85c5
add esp, 4
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.004c85c5
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18

Function at 0x488110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x488125
mov esi, dword [eax]
test esi, esi
jne 0x488125
xor eax, eax
pop esi
ret 8
push edi
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x488141
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x488148
pop edi
xor eax, eax
pop esi
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret 8
Function at 0x4887e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501190
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x1c]
call fcn.00441d00
mov dword [esp + 0x14], vtable.UserManager::t_lockerProc.0
mov esi, dword [ebp + 8]
push 0x53c6a8
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00441d50
test al, al
je 0x488969
push 0x64
push 0
lea ecx, [esp + 0x24]
call fcn.00441d00
mov dword [esp + 0x1c], vtable.UserManager::t_locker.0
push 0x53c8d8
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.00441d50
test al, al
je 0x48895b
push 0
push esi
lea ecx, [edi + 0x154]
call fcn.00487c40
test al, al
je 0x48895b
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.00487c40
test al, al
je 0x48895b
mov ebx, dword [ebp + 0xc]
push 0x51933c
mov ecx, ebx
call fcn.00438d20
cmp byte [edi + 0x151], 0
jne 0x4888cd
push 0x50b688
mov ecx, esi
call fcn.00437ec0
mov ecx, eax
jmp 0x488956
mov eax, dword [ebp + 0x10]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0048aef0
test al, al
je 0x488937
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x488937
call fcn.0048a720
push eax
mov ecx, ebx
call fcn.00438d20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00441d20
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00441d20
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x50b674
mov ecx, esi
call fcn.00437ec0
mov ecx, eax
call fcn.00438830
mov ecx, ebx
mov esi, eax
call fcn.00435ed0
push eax
mov ecx, esi
call fcn.00438830
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00441d20
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00441d20
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x489ad0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5018a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x2c]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
mov dword [esi + 4], ecx
push edi
mov ecx, 0x53c6a8
mov byte [esi], al
call fcn.00449c00
test al, al
jne 0x489b40
push 0x50b874
push edi
call fcn.00437f70
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push str.Local_sgime_user_lock
push edi
mov ecx, 0x53c8d8
call fcn.00441e60
test al, al
je 0x489b1d
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00441d00
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53c8d8
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00441d50
test al, al
jne 0x489bbc
push 0x50b874
push edi
call fcn.00437f70
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
cmp byte [esi + 0xa78], 0
jne 0x489c40
call fcn.0043d850
mov ecx, eax
call fcn.0043bbe0
test al, al
jne 0x489c0e
push edi
call fcn.0043d850
mov ecx, eax
call fcn.0043bc10
test al, al
jne 0x489c0e
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov ecx, esi
call fcn.00488bf0
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00489730
test al, al
je 0x489be6
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.00489520
test al, al
je 0x489be6
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x489c70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5018a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov cl, byte [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
mov byte [esi + 8], cl
push edi
mov ecx, 0x53c6a8
mov dword [esi + 0xc], eax
call fcn.00449c00
test al, al
jne 0x489ce1
push 0x50b874
push edi
call fcn.00437f70
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push str.Local_sgime_user_lock
push edi
mov ecx, 0x53c8d8
call fcn.00441e60
test al, al
je 0x489cbe
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00441d00
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53c8d8
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00441d50
test al, al
jne 0x489d5d
push 0x50b874
push edi
call fcn.00437f70
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
cmp byte [esi + 0xa78], 0
jne 0x489de1
call fcn.0043d850
mov ecx, eax
call fcn.0043bbe0
test al, al
jne 0x489daf
push edi
call fcn.0043d850
mov ecx, eax
call fcn.0043bc10
test al, al
jne 0x489daf
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov ecx, esi
call fcn.00488bf0
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00489730
test al, al
je 0x489d87
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.00489520
test al, al
je 0x489d87
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00441d20
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x489f70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x501560
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.00441d00
mov dword [esp + 0x18], vtable.UserManager::t_lockerProc.0
mov esi, dword [esp + 0x30]
push 0x53c6a8
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00441d50
test al, al
je 0x48a007
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00441d00
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53c8d8
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00441d50
test al, al
jne 0x48a02f
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00441d20
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00441d20
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0
push esi
lea ecx, [edi + 0x154]
call fcn.00487c40
test al, al
je 0x489ff9
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.00487c40
test al, al
je 0x489ff9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.00489e10
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x28], 0
call fcn.00441d20
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00441d20
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4a7ac0
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 0x4a7af2
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 0x4a7c40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x4a7c5b
mov edx, dword [esi + 0xfc]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4a7c8f
cmp eax, 2
jg 0x4a7c8f
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5105e8]
push 2
push edx
call fcn.004ccb5d
mov eax, dword [esi + 0xf8]
push eax
push 1
push edi
push ebx
call fcn.004ccb5d
add esp, 0x20
xor eax, eax
ret

Function at 0x4a7fa0
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
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4a800f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4a7fef
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.004bd3a0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004a7e20
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4a86b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x134], 0
mov ebx, dword [ebp]
jne 0x4a87c1
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4a871f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004bd3a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4a87b6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a8753
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004bd3a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4a87b6
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.004a8660
test eax, eax
jne 0x4a8784
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004bd3a0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4a87b6
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.004a8660
test eax, eax
jne 0x4a87bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004bd3a0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a7e20
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004c60f4
add esp, 0x108
ret

Function at 0x4a87e0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
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 0x4a8823
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004bd3a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a7d90
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a7d90
add esp, 8
pop esi
pop ecx
ret

Function at 0x4a8840
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 0x4a8889
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4a88a1
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 0x4aa1f0
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 0x4aa294
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4aa265
cmp word [ecx + 0xa], 4
jne 0x4aa265
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4aa265
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.004aa180
mov dword [esi], eax
test eax, eax
je 0x4aa288
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4aa240
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004cf31d
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.0x4aa2a4.11001
jmp dword [eax*4 + 0x4aa2c8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4aab00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x53cb14], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4aa560
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4aa850
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004aa510
je 0x4aab72
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x53735c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004c60f4
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4aac6d
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004c9987
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004c99ef
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 0x4aabed
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4aac34
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004c9987
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004c99ef
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4aac69
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4aac9d
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 0x4aac9d
inc edi
cmp edi, 3
jl 0x4aac36
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x53735c], edx
mov dword [0x537364], eax
mov dword [fcn.004aa510], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x53735c]
xor ecx, esp
mov dword [0x53cb14], 1
call fcn.004c60f4
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4aac69
Function at 0x4ab070
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x537354]
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x330], esi
cmp esi, eax
je 0x4ab12b
mov dword [edi + 0x320], ebx
mov dword [edi + 0x328], eax
mov dword [edi + 0x32c], eax
mov dword [edi + 0x324], eax
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
lea ebp, [esi + 0x10]
push ebx
mov eax, ebp
mov dword [esi + 4], 0xffffffff
call fcn.004aaef0
add esp, 8
test eax, eax
je 0x4ab12b
mov eax, dword [edi + 0x31c]
push eax
call fcn.004a6ed0
push ebx
call dword [0x537350]
add esp, 8
mov dword [edi + 0x31c], eax
test eax, eax
je 0x4ab12b
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4ab12b
push ebp
push 0x4aaf80
call fcn.004bdd30
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4ab14d
call fcn.004c7577
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x31c
push edi
call fcn.004ab010
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4af140
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5105e4
push ecx
call fcn.004a7d90
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ae310
test eax, eax
jne 0x4af170
mov eax, esi
jmp fcn.004ae7a0
ret
Function at 0x4af580
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5375a0]
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 + 0x340]
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 0x4af60f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004cd2d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4af64a
push str.Received_too_short_packet
push ebx
call fcn.004a7e20
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.004c60f4
add esp, 0x88
ret
mov eax, edi
call fcn.004ae4b0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4af663
jmp dword [eax*4 + 0x4af74c]
cmp edx, 4
jle case.0x4af663.4
mov eax, edi
call fcn.004ae4c0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4af663.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004a8060
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4af6b6
mov ecx, 5
mov eax, esi
call fcn.004af500
mov eax, edi
jmp 0x4af631
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.004bb340
jmp 0x4af722
mov eax, edi
call fcn.004ae4c0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x5105e4
push ebx
mov dword [esi + 8], edx
call fcn.004a7d90
jmp 0x4af722
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004ae550
add esp, 0xc
test eax, eax
je case.0x4af663.4
jmp 0x4af631
push str.Internal_error:_Unexpected_packet
push 0x526b38
push ebx
call fcn.004a7e20
add esp, 0xc
push ebp
call fcn.004bb400
add esp, 4
test eax, eax
je 0x4af62f
mov ecx, 5
mov eax, esi
call fcn.004af500
mov eax, 0x2a
jmp 0x4af631

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

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
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 0x4b13f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004a7e20
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004b12b0
add esp, 4
pop esi
pop ecx
ret