joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bcaa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41bced
call fcn.00412af1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bced
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41bd08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041b861
test ebx, ebx
mov esi, eax
je 0x41bd06
test edi, edi
je 0x41bd06
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41d161
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45f3d0
call fcn.0042d236
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00412af1
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41d1ac
call fcn.00412af1
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41d1bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41d1ca
or eax, 0xffffffff
jmp 0x41d326
mov ecx, esi
call fcn.0041ccb3
mov dword [ebp - 0x14], eax
call fcn.004191ec
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41d248
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d248
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d248
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415400
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41d248
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41d248
mov ecx, ebx
call fcn.0041d5cc
test eax, eax
je 0x41d248
push 0
mov ecx, ebx
call fcn.0041d5e7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041ab8d
push dword [ebp - 0x14]
call fcn.00419144
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041cf69
xor edi, edi
cmp eax, edi
je 0x41d2a5
test byte [esi + 0x3c], 0x10
je 0x41d28f
push 4
pop edi
mov ecx, esi
call fcn.0041d4b3
test ax, 0x100
je 0x41d285
push 5
pop edi
push edi
mov ecx, esi
call fcn.00418cda
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41d2a5
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041d7ba
or dword [ebp - 4], 0xffffffff
jmp 0x41d2d0
cmp dword [ebp - 0x28], edi
je 0x41d2de
push 1
mov ecx, ebx
call fcn.0041d5e7
cmp dword [ebp - 0x2c], edi
je 0x41d2ee
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d307
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41d307
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041cced
cmp dword [esi + 0x58], edi
je 0x41d323
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042d2db
ret
Function at 0x41f650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x479408]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x41f690
push 0x464990
push 4
push eax
call fcn.0042da9d
push eax
call fcn.004026a0
add esp, 0x10
jmp 0x41f6a2
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41f710
push edi
call fcn.0042d931
mov edi, dword [eax]
call fcn.0042d931
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004298f4
add esp, 0x18
mov ebx, eax
call fcn.0042d931
cmp dword [eax], 0
je 0x41f6f0
call fcn.0042d931
push dword [eax]
call fcn.0040bfeb
pop ecx
jmp 0x41f6f7
call fcn.0042d931
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41f710
cmp ebx, esi
jae 0x41f710
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41f712
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a74
leave
ret
Function at 0x420e13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x420e59
call fcn.00412af1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420e59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x420e9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x420e85
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x420e85
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x420e99
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428a74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479408]
jne 0x428a7e
repz ret
jmp fcn.0042eef4
Function at 0x431a75
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 + 0x4796c0]
je 0x431a90
inc edi
cmp edi, 0x17
jb 0x431a81
cmp edi, 0x17
jae 0x431c10
push ebp
push 3
call fcn.0043b349
cmp eax, 1
pop ecx
je 0x431bdc
push 3
call fcn.0043b349
test eax, eax
pop ecx
jne 0x431ac4
cmp dword [0x4793f4], 1
je 0x431bdc
cmp ebx, 0xfc
je 0x431c0f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47d2c0
push ebp
call fcn.0042da9d
add esp, 0xc
test eax, eax
je 0x431afa
push esi
push esi
push esi
push esi
push esi
call fcn.0042adef
add esp, 0x14
push 0x104
mov esi, 0x47d2d9
push esi
push 0
mov byte [0x47d3dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x431b3e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042da9d
add esp, 0xc
test eax, eax
je 0x431b3e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042adef
add esp, 0x14
push esi
call fcn.0042d430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x431b83
push esi
call fcn.0042d430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47d5d4
push 0x465e84
sub ecx, eax
push ecx
push eax
call fcn.0042db02
add esp, 0x14
test eax, eax
je 0x431b83
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042adef
add esp, 0x14
jmp 0x431b85
xor esi, esi
push 0x465e80
push ebx
push ebp
call fcn.0042e046
add esp, 0xc
test eax, eax
je 0x431ba5
push esi
push esi
push esi
push esi
push esi
call fcn.0042adef
add esp, 0x14
push dword [edi*8 + 0x4796c4]
push ebx
push ebp
call fcn.0042e046
add esp, 0xc
test eax, eax
je 0x431bc7
push esi
push esi
push esi
push esi
push esi
call fcn.0042adef
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b18c
add esp, 0xc
jmp 0x431c0f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x431c0f
cmp ebp, 0xffffffff
je 0x431c0f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4796c4]
push dword [esi]
call fcn.0042d430
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 0x43b18c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00432954
xor ebx, ebx
cmp dword [0x47d878], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b262
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b342
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4668a0
push edi
call esi
cmp eax, ebx
je 0x43b342
push eax
call fcn.004328e6
mov dword [esp], 0x466890
push edi
mov dword [0x47d878], eax
call esi
push eax
call fcn.004328e6
mov dword [esp], 0x46687c
push edi
mov dword [0x47d87c], eax
call esi
push eax
call fcn.004328e6
mov dword [0x47d880], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042a0f0
test eax, eax
pop ecx
pop ecx
je 0x43b230
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042adef
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b262
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004328e6
cmp eax, ebx
pop ecx
mov dword [0x47d888], eax
je 0x43b262
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004328e6
pop ecx
mov dword [0x47d884], eax
mov eax, dword [0x47d884]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43b2e7
cmp dword [0x47d888], ecx
je 0x43b2e7
push eax
call fcn.0043295d
push dword [0x47d888]
mov esi, eax
call fcn.0043295d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43b2e7
cmp edi, ebx
je 0x43b2e7
call esi
cmp eax, ebx
je 0x43b2b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b2b4
test byte [ebp - 0x18], 1
jne 0x43b2e7
lea eax, [ebp - 0x10]
push eax
call fcn.0042a127
test eax, eax
pop ecx
je 0x43b2cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042adef
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43b2de
or dword [ebp + 0x10], 0x200000
jmp 0x43b322
or dword [ebp + 0x10], 0x40000
jmp 0x43b322
mov eax, dword [0x47d87c]
cmp eax, dword [ebp - 8]
je 0x43b322
push eax
call fcn.0043295d
cmp eax, ebx
pop ecx
je 0x43b322
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b322
mov eax, dword [0x47d880]
cmp eax, dword [ebp - 8]
je 0x43b322
push eax
call fcn.0043295d
cmp eax, ebx
pop ecx
je 0x43b322
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47d878]
call fcn.0043295d
cmp eax, ebx
pop ecx
je 0x43b342
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b344
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442a24
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x479408]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004429b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042d310
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x442a73
cmp dword [ebp - 0x1c], 5
jb 0x442a8b
jmp 0x442a87
cmp dword [ebp - 0x10], 1
jne 0x442a8b
cmp dword [ebp - 0x1c], 4
ja 0x442a87
jne 0x442a8b
cmp dword [ebp - 0x18], 0
jbe 0x442a8b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4682e4
call fcn.004428aa
test eax, eax
jge 0x442aac
mov byte [0x47db21], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00428a74
add ebp, 0x78
leave
ret

Function at 0x445940
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 0x445972
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x445ad0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x445aeb
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x445b1f
cmp eax, 2
jg 0x445b1f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x468668]
push 2
push edx
call fcn.0042a599
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.0042a599
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xc8]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445d95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x445d7b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.0045a220
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00445cb0
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x446520
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x28e]
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 0x446564
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0045a220
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00445c20
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00445c20
add esp, 8
pop esi
pop ecx
ret

Function at 0x446580
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 0x4465c9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4465e1
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 0x447f90
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
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x448034
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x448005
cmp word [ecx + 0xa], 4
jne 0x448005
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x448005
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.00447f20
test eax, eax
mov dword [esi], eax
je 0x448028
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x447fe0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0042db02
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.0x448044.11001
jmp dword [eax*4 + 0x448068]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4488a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x479408]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x47dafc], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4482f0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4485e0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004482a0
je 0x448912
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x47aa9c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00428a74
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x448a0f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0042da9d
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0042e046
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 0x44898d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4489d4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0042da9d
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0042e046
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x448a0b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x448a3f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x448a3f
add edi, 1
cmp edi, 3
jl 0x4489d6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x47aa9c], edx
mov dword [0x47aaa4], eax
mov dword [fcn.004482a0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x47aa9c]
xor ecx, esp
mov dword [0x47dafc], 1
call fcn.00428a74
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x448a0b
Function at 0x448e10
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x48
push 1
mov edi, eax
call dword [0x47aa94]
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x2cc], esi
je 0x448ecd
mov dword [edi + 0x2bc], ebp
mov byte [edi + 0x2c4], al
mov dword [edi + 0x2c8], eax
mov dword [edi + 0x2c0], eax
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esi], eax
lea ebx, [esi + 0x10]
push ebp
mov eax, ebx
mov dword [esi + 4], 0xffffffff
call fcn.00448c90
add esp, 8
test eax, eax
je 0x448ecd
mov eax, dword [edi + 0x2b8]
push eax
call fcn.00444da0
push ebp
call dword [0x47aa90]
add esp, 8
test eax, eax
mov dword [edi + 0x2b8], eax
je 0x448ecd
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x448ecd
push ebx
push 0x448d20
call fcn.0045abb0
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x448eef
call fcn.0042d931
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x2b8
push edi
call fcn.00448db0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
Function at 0x44c620
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x468664
push ecx
call fcn.00445c20
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0044b7e0
test eax, eax
jne 0x44c650
mov eax, esi
jmp fcn.0044bc80
ret
Function at 0x44ca70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x479408]
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 + 0x2dc]
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 0x44caff
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0042f100
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x44cb3a
push str.Received_too_short_packet
push ebx
call fcn.00445cb0
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.00428a74
add esp, 0x88
ret
mov eax, edi
call fcn.0044b970
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x44cb53
jmp dword [eax*4 + 0x44cc40]
cmp edx, 4
jle case.0x44cb53.4
mov eax, edi
call fcn.0044b980
movzx ecx, word [esi + 0x40]
movzx eax, ax
add ecx, 1
cmp ecx, eax
jne case.0x44cb53.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00445e40
mov edi, eax
add esp, 0x10
test edi, edi
je 0x44cbaa
mov ecx, 5
mov eax, esi
call fcn.0044c9f0
mov eax, edi
jmp 0x44cb21
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.004581b0
jmp 0x44cc16
mov eax, edi
call fcn.0044b980
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x468664
push ebx
mov dword [esi + 8], edx
call fcn.00445c20
jmp 0x44cc16
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.0044ba20
add esp, 0xc
test eax, eax
je case.0x44cb53.4
jmp 0x44cb21
push str.Internal_error:_Unexpected_packet
push 0x46dbcc
push ebx
call fcn.00445cb0
add esp, 0xc
push ebp
call fcn.00458270
add esp, 4
test eax, eax
je 0x44cb1f
mov ecx, 5
mov eax, esi
call fcn.0044c9f0
mov eax, 0x2a
jmp 0x44cb21

Function at 0x44e8c0
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 0x44e904
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00445cb0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0044e7b0
add esp, 4
pop esi
pop ecx
ret
Function at 0x44fec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x479408]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.00446080
add esp, 0xc
test eax, eax
jle 0x44ff29
mov ecx, 0x3e8
cmp eax, ecx
jge 0x44ff00
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.00456a60
add esp, 0xc
cmp eax, 0xffffffff
je 0x44ffc1
test eax, eax
jne 0x44ff4e
push 1
push eax
push esi
call fcn.00446080
add esp, 0xc
test eax, eax
jg 0x44fef5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00445cb0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00428a74
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44ff7e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x44ff91
push str.Error_accept__ing_server_connect
jmp 0x44ffc6
push str.Connection_accepted_from_server_n
push ebp
call fcn.00445c20
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.0045aaf0
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00428a74
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00445cb0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.00428a74
add esp, 0x18
ret