joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453e10
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x118
mov eax, dword [0x50ba00]
mov dword [esp + 0x114], eax
push esi
lea eax, [esp + 0x94]
push edi
xor edi, edi
mov dword [esp + 0x94], eax
cmp dword [esp + 0x12c], edi
mov dword [esp + 8], edi
mov dword [esp + 0x118], edi
mov word [esp + 0x98], di
mov esi, 0x4ea404
jne 0x453e5a
mov esi, 0x4ea41c
mov ecx, dword [esp + 0x128]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00453d20
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0xa4]
push 0x4dba7c
push ecx
call fcn.00401720
mov edx, dword [esp + 0xac]
add esp, 0x18
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x453ea6
mov eax, dword [esp + 0x94]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x453ebb
push eax
call fcn.00482838
add esp, 4
mov esi, dword [esp + 0x124]
mov edx, dword [esp + 0x94]
lea eax, [esi + 4]
push 0xffffffffffffffff
push edx
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 0x84], edi
mov word [eax], di
call fcn.00401550
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x98]
cmp eax, ecx
je 0x453efc
push eax
call fcn.00482838
add esp, 4
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
call fcn.00482423
add esp, 0x118
ret

Function at 0x453f20
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x90
mov ecx, dword [0x50b020]
mov eax, dword [0x50ba00]
push esi
push edi
push 0x4ea3dc
push ecx
mov dword [esp + 0x9c], eax
xor edi, edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push 0x4dba7c
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa0], edi
mov word [esp + 0x20], di
call fcn.00401720
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x453f87
mov ecx, dword [esp + 0xc]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0xc]
lea eax, [esi + 4]
push 0xffffffffffffffff
push edx
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 0x84], edi
mov word [eax], di
call fcn.00401550
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x453fbf
push eax
call fcn.00482838
add esp, 4
mov ecx, dword [esp + 0x94]
pop edi
mov eax, esi
pop esi
call fcn.00482423
add esp, 0x90
ret
Function at 0x454260
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d8bb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x50ba00]
push ebp
mov ebp, dword [esp + 0x44c]
push ebp
mov dword [esp + 0x43c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45441c
push ebx
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x338]
xor ebx, ebx
push ebp
lea ecx, [esp + 0x338]
mov dword [esp + 0x338], eax
mov dword [esp + 0x3bc], ebx
mov word [esp + 0x33c], bx
call fcn.00401550
lea ecx, [esp + 0x3bc]
mov dword [esp + 0x44c], ebx
mov dword [esp + 0x3b8], ecx
mov dword [esp + 0x43c], ebx
mov word [esp + 0x3bc], bx
mov edx, dword [esp + 0x330]
push 0x5c
push edx
mov byte [esp + 0x454], 1
call fcn.00482687
add esp, 8
cmp eax, ebx
je 0x454356
sub eax, dword [esp + 0x330]
sar eax, 1
cmp eax, 0xffffffff
je 0x454356
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x338]
call fcn.0044ed40
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x3c0]
call fcn.00401550
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x454356
push eax
call fcn.00482838
add esp, 4
mov esi, dword [esp + 0x458]
push edi
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x334]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3bc]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
cmp word [eax], bx
pop edi
je 0x45439f
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4543ce
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xdc]
push str.RunExe._ShellExecuteEx_Error__u_._App__s_._CmdLine__s_
push edx
call fcn.004c9ff0
add esp, 0x14
jmp 0x4543e4
cmp dword [esp + 0x45c], ebx
je 0x4543e4
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3b8]
lea ecx, [esp + 0x3bc]
cmp eax, ecx
je 0x4543ff
push eax
call fcn.00482838
add esp, 4
mov eax, dword [esp + 0x330]
lea edx, [esp + 0x334]
cmp eax, edx
je 0x45441a
push eax
call fcn.00482838
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x438]
pop ebp
call fcn.00482423
add esp, 0x444
ret
Function at 0x454440
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d8bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x50ba00]
push esi
mov esi, dword [esp + 0x33c]
push esi
mov dword [esp + 0x32c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454524
lea eax, [esp + 0x2a0]
push edi
push eax
call fcn.00453f20
add esp, 4
xor edx, edx
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2a4]
mov dword [esp + 0x338], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x4e61d0
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
jne 0x4544fc
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x48]
push str.UnzipRobotApp._ShellExecuteEx_Error__u_._App__s_.
push eax
call fcn.004c9ff0
add esp, 0x10
jmp 0x454509
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2a0]
lea ecx, [esp + 0x2a4]
cmp eax, ecx
je 0x454524
push eax
call fcn.00482838
add esp, 4
mov ecx, dword [esp + 0x32c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x328]
pop esi
call fcn.00482423
add esp, 0x334
ret

Function at 0x454bb0
Capabilities:
Create process memory minidump

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
lea edx, [esp + 0xc]
push edx
push 0
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0xc
ret
Function at 0x454e90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x454eaf
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x454ecf
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x454f10
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x454efe
mov ecx, edx
cmp edi, esi
jb 0x454f08
add ecx, esi
cmp edi, ecx
jbe 0x454f1a
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x454ef0
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
pop ebp
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x454f40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x50ba00]
mov ecx, dword [esp + 0x80c]
mov dword [esp + 0x804], eax
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x519190]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
call fcn.00482423
add esp, 0x808
ret

Function at 0x455500
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45556d
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x455545
cmp eax, 2
jne 0x45555d
test esi, esi
mov eax, dword [esp + 0x14]
je 0x455567
test al, 1
jne 0x45555d
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x455567
pop edi
mov eax, 0xd
pop esi
ret 0xc
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x4556b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
call fcn.004cacb9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
push 1
mov edi, eax
call esi
push eax
push edi
lea eax, [esp + 0x10]
push str._dX_d
push eax
call fcn.00436db0
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00429e50
mov edi, dword [esp + 0x30]
add eax, 0x10
add esp, 0x14
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45573d
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x455760
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
mov eax, dword [0x50ba00]
mov dword [esp + 0x118], eax
push esi
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4557c9
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4557ab
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x4557be
push str.WinXP
jmp 0x4557ce
cmp eax, 6
jne 0x4557c9
cmp dword [esp + 0x10], 1
jne 0x4557c9
push str.Win7
jmp 0x4557ce
test eax, eax
jne 0x4557c9
push str.Win2000
jmp 0x4557ce
push 0x4dc6aa
mov esi, dword [esp + 0x128]
mov ecx, esi
call fcn.00410a00
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
call fcn.00482423
add esp, 0x11c
ret 4
Function at 0x455800
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x50ba00]
push ebx
push esi
push edi
mov ebx, ecx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], eax
call fcn.00410b80
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor edi, edi
push edi
push ecx
push reloc.gouzi.dll_Ordinal_2
mov dword [esp + 0x268], 1
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x45594f
mov esi, dword [esp + 0xc]
mov word [esp + 0x40], di
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x44]
push ecx
push str.ProcessorNameString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0x100
call fcn.00455500
test eax, eax
jne 0x4558ca
lea edx, [esp + 0x40]
push edx
lea eax, [ebx + 4]
push 0x4ddbd8
push eax
call fcn.00436db0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.MHz
mov edi, 4
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455901
cmp dword [esp + 0xc], edi
jne 0x455901
mov ecx, dword [esp + 0x18]
mov dword [ebx + 8], ecx
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x455910
push esi
call edi
xor esi, esi
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], edx
push eax
mov dword [esp + 0x40], edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0xc], ecx
je 0x45594f
push esi
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
call fcn.00482423
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4559a0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4d8cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
push 0x4dc6aa
mov ecx, ebp
call fcn.0040e0f0
push 0x4dc6aa
lea ecx, [esi + 4]
call fcn.0040e0f0
xor ebx, ebx
push str.IsWow64Process
push str.kernel32
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x455a13
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x20
mov dword [esi + 0x14], ecx
mov ecx, esi
call fcn.00455580
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004556b0
lea ecx, [esi + 0x1c]
push eax
mov dword [esp + 0x64], ebx
call fcn.0042b340
mov eax, dword [esp + 0x10]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x60], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455a6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
shrd ecx, edx, 0x14
mov dword [esi], ecx
mov ecx, esi
shr edx, 0x14
call fcn.00455800
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00455760
push eax
mov ecx, ebp
mov dword [esp + 0x64], 1
call fcn.0042b340
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x60], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
jg 0x455ad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret

Function at 0x455d00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x455d34
mov ax, word [esp]
cmp al, 2
jne 0x455d2e
cmp ah, al
jne 0x455d2e
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x461fe0
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.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x462012
call dword [sym.imp.WSOCK32.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 0x462650
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.WSOCK32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x4626d1
push ebp
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4626a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00456660
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004623b0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x857c], ebp
pop ebp
mov eax, edi
pop edi
pop esi
mov dword [ebx], 0x37
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x462910
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [edi + 0x3f8]
xor eax, eax
push 4
test ecx, ecx
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jge 0x46294a
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.004622f0
add esp, 0xc
pop ecx
ret
Function at 0x462f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov eax, dword [ebp + 0x1a4]
test eax, eax
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x46308c
mov esi, dword [esp + 0x120]
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.WSOCK32.dll_getpeername]
test eax, eax
je 0x462fb5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00456660
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004623b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x462ffb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00456660
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004623b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00462ef0
test eax, eax
jne 0x463042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00456660
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004623b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00462ef0
test eax, eax
jne 0x46308c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00456660
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004623b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push ebp
call fcn.00462e90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x4630a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x304]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jge 0x4630e3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
call fcn.00456660
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004622f0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004622f0
add esp, 8
pop esi
pop ecx
ret
Function at 0x463100
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.WSOCK32.dll_getsockopt]
test eax, eax
jne 0x463149
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x463161
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop esi
add esp, 0xc
ret

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x540]
cmp eax, 0xffffffff
je 0x4631c6
mov ecx, dword [ecx + 0x534]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x4631c6
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x463198
mov dword [ecx], eax
mov ecx, dword [eax + 0x150]
test ecx, ecx
push esi
mov esi, dword [eax + 0x130]
je 0x4631ae
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
je 0x4631a9
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x464f10
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov al, byte [edx]
push esi
xor esi, esi
test al, al
mov ecx, edx
je 0x464f3e
nop
cmp al, 0x2e
jne 0x464f25
inc esi
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x464f20
cmp esi, 3
jne 0x464f3e
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x464f44
xor eax, eax
pop esi
ret 8
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 8

Function at 0x464fd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x465076
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x465049
cmp word [ecx + 0xa], 4
jne 0x465049
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x465049
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call fcn.00464f60
test eax, eax
mov dword [esi], eax
je 0x46506a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x465020
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.004863d0
add esp, 0xc
pop edi
pop ebp
pop esi
mov byte [ebx + 0x400], 0
xor eax, eax
pop ebx
ret 0x18
pop edi
pop ebp
pop esi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x465086.11001
jmp dword [eax*4 + 0x4650ac]
pop esi
mov eax, 0x2af9
pop ebx
ret 0x18
pop esi
mov eax, 0x2afa
pop ebx
ret 0x18
pop esi
mov eax, 0x2afb
pop ebx
ret 0x18