joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x1001b5d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001b633
lock dec dword [eax + 0xc]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x1001b5ce
lock dec dword [ecx]
mov ecx, dword [eax + 0x84]
test ecx, ecx
je 0x1001b5db
lock dec dword [ecx]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x1001b5e8
lock dec dword [ecx]
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x1001b5f5
lock dec dword [ecx]
push esi
push 6
lea ecx, [eax + 0x28]
pop esi
cmp dword [ecx - 8], 0x1002d3c0
je 0x1001b60e
mov edx, dword [ecx]
test edx, edx
je 0x1001b60e
lock dec dword [edx]
cmp dword [ecx - 0xc], 0
je 0x1001b61e
mov edx, dword [ecx - 4]
test edx, edx
je 0x1001b61e
lock dec dword [edx]
add ecx, 0x10
sub esi, 1
jne 0x1001b5fc
push dword [eax + 0x9c]
call fcn.1001b58b
pop ecx
pop esi
pop ebp
ret
Function at 0x4032c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a30cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f1014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.004e1860
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x403371
push eax
push esi
call fcn.004e1aef
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004e17ee
int3

Function at 0x404df0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x5f1014]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
neg eax
push eax
mov eax, dword [esp + 0x14]
neg eax
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x38]
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x400
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0057b850
add esp, 0xc
lea eax, [esp + 0x20]
push 0x400
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [edi + 0x38]
push 1
add eax, 2
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [edi + 0x44]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x24
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e389c
mov esp, ebp
pop ebp
ret 4
Function at 0x40c570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xf
mov byte [esi + 0x94], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 1
mov dword [esi + 0x90], 0
mov dword [esi + 0xb4], 0
movq xmm0, qword [str.iconfont.ttf]
movq qword [esi + 0xb8], xmm0
mov eax, dword [0x5d65c8]
mov dword [esi + 0xc0], eax
mov al, byte [0x5d65cc]
mov byte [esi + 0xc4], al
mov dword [esi + 0x1bc], 0x12
mov dword [esi + 0x1c0], 0
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0x5f3180
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c8], 0xa0641e
mov dword [esi + 0x1cc], 0xffffff
mov dword [esi + 0x1d0], 0xffffff
mov dword [esi + 0x1d4], 0
lea edx, [ecx + 1]
mov dword [esi + 0x1d8], 0
mov dword [esi + 0x1e4], 0x1c
mov dword [esi + 0x1f0], 1
mov dword [esi + 0x1e8], 0x646464
mov dword [esi + 0x1f4], 0xffffffff
mov dword [esi + 0x1dc], 0xffffffff
mov dword [esi + 0x1e0], 0xffffffff
mov dword [esi + 0x1ec], 0xffffffff
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 0
mov dword [esi + 0x200], 0x12
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0x3ca03c
mov dword [esi + 0x21c], 0x2832a0
mov dword [esi + 0x220], 0x1464c8
mov dword [esi + 0x20c], 0xe69646
mov dword [esi + 0x204], 0x6e5a46
mov dword [esi + 0x208], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7d4
sub ecx, edx
jne 0x40c871
push edi
push 0x104
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0057b850
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0058010b
mov edi, eax
add esp, 8
test edi, edi
je 0x40c870
push 2
mov byte [edi], 0
inc edi
push 0x5e1a44
push edi
call fcn.00581b9b
add esp, 0xc
test eax, eax
jne 0x40c857
mov al, byte [edi + 2]
sub al, 0x30
cmp al, 9
ja 0x40c857
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
push str._sWebButton.ini
push 0x5f3180
call fcn.0040beb0
add esp, 0xc
pop edi
push ecx
mov ecx, esi
call fcn.0040cbb0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e389c
mov esp, ebp
pop ebp
ret
Function at 0x4131c0
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x4131da
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4131da
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4131da
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41e800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a433f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5f1014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
mov dword [0x5f317c], edi
push eax
lea eax, [ebp - 0x30]
mov dword [0x5f1a00], 0x56fe
push eax
call fcn.00420740
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x5f3398]
cmp byte [eax + 0xd], 0
jne 0x41e85e
cmp edi, dword [eax + 0x10]
jae 0x41e860
mov eax, ecx
cmp eax, ecx
jne 0x41e9aa
push 8
push 0x56fe
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41e9aa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41e9aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e9a1
push 0x110
call fcn.004e38de
add esp, 4
mov dword [ebp - 0x20], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041e5b0
mov esi, eax
mov dword [ebp - 0x20], esi
push 0x10
mov dword [ebp - 4], 1
call fcn.004e38de
mov ebx, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_class_CIconFontCache_.0
mov dword [ebx + 0xc], esi
mov dword [ebp - 4], 2
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call fcn.0057a3d0
add esp, 0x10
mov dword [ebp - 0x30], edi
lea eax, [ebx + 4]
lock inc dword [eax]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004204f0
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x41e978
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x41e978
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x41e978
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x41e9a1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
lock xadd dword [eax], esi
dec esi
jne 0x41e9a1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436f40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, 0x811c9dc5
mov esi, 0x30
lea edx, [edi + 0x28]
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
xor eax, ecx
sub esi, 1
jne 0x436f51
lea edx, [edi + 0x58]
mov esi, 0x30
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
xor eax, ecx
sub esi, 1
jne 0x436f70
imul eax, eax, 0x1001
mov ecx, eax
shr ecx, 7
xor ecx, eax
lea eax, [edi + 0x88]
push eax
lea esi, [ecx + ecx*8]
call sym.Setup.exe_cairo_font_options_hash
mov edx, esi
add esp, 4
shr edx, 0x11
xor edx, esi
mov ecx, edx
shl ecx, 5
add ecx, edx
xor eax, ecx
xor eax, dword [edi + 0x1c]
imul eax, eax, 0x1001
pop edi
pop esi
mov ecx, eax
shr ecx, 7
xor ecx, eax
lea eax, [ecx + ecx*8]
mov ecx, eax
shr ecx, 0x11
xor ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
ret

Function at 0x43a8c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov eax, 0x1505
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], edi
test edx, edx
je 0x43a8ff
push ebx
mov bl, byte [edx]
test bl, bl
je 0x43a8fe
mov ecx, eax
shl eax, 5
add eax, ecx
movsx ecx, bl
add eax, ecx
add edx, 1
jne 0x43a8e7
pop ebx
imul edx, dword [ebp + 0xc], 0x5ab
imul ecx, edi, 0x647
pop edi
add ecx, eax
add edx, ecx
mov dword [esi], edx
pop esi
pop ebp
ret
Function at 0x4e63e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e63f0
Function at 0x4e9d00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4e9d50
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4e9d4a
shr eax, 8
cmp al, 2
jne 0x4e9d4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
Function at 0x4f14a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f14c8
cmp dword [esi + 0x6c], 0
je 0x4f14c8
push 2
push 3
push esi
call fcn.004fb8e0
push dword [ebp + 0xc]
call fcn.004fbc00
add esp, 0x10
jmp 0x4f14d7
push dword [ebp + 0xc]
call fcn.004fbc00
add esp, 4
test esi, esi
je 0x4f14e8
cmp dword [esi + 0x6c], 0
je 0x4f14e8
push 3
push esi
call fcn.004fb920
add esp, 8
pop esi
pop ebp
ret
Function at 0x4f9690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.004f9a20
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4f9714
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4f96ec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.00507530
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004f92f0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48ac], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4f9ae8
cmp dword [ebx + ecx*4 + 0x1bc], 0x4f95e0
jne 0x4f9ae8
cmp dword [esi], 0
je 0x4f9a69
test edi, edi
je 0x4f9ae8
mov eax, dword [ebx + ecx*4 + 0x1a8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.004f8c40
add esp, 0x14
cmp eax, 0xffffffff
je 0x4f9ae8
test al, 1
je 0x4f9ae8
mov ecx, dword [esi]
test ecx, ecx
jne 0x4f9ac3
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5f1040]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4f9ae1
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4f9ae8
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f9af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x4f9b19
push dword [esi + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4f9b4f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x5ac44c
push 2
push eax
call fcn.00586aa0
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00586aa0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f9c10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
jne 0x4f9c41
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4f9c41
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4f9c41
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4fa2b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f28d0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4fa301
push 3
push 2
push eax
push 6
call fcn.00519df0
add esp, 0x10
test al, al
je 0x4fa2f5
mov dword [0x5f28d0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5f28d0], 1
jmp 0x4fa306
cmp eax, 2
je 0x4fa346
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4fa32d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4fa346
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4fa420
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4fa468
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00507530
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004f93d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004f93d0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4fa5a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x4fa79b
cmp byte [ebx + 0x266], 0
push esi
jne 0x4fa791
cmp byte [ebx + 0x282], 0
jne 0x4fa791
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4fa63e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00507530
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004f92f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.0057b850
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4fa6a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00507530
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004f92f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004fac90
add esp, 0xc
test al, al
jne 0x4fa704
call fcn.00585744
mov esi, dword [eax]
call fcn.00585744
push esi
push ebx
mov edi, eax
call fcn.00507530
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004f92f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004fac90
add esp, 0xc
test al, al
jne 0x4fa791
call fcn.00585744
mov esi, dword [eax]
call fcn.00585744
push esi
push ebx
mov edi, eax
call fcn.00507530
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004f92f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004fa1d0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e389c
mov esp, ebp
pop ebp
ret
Function at 0x4fb020
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x640], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4fb07d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004f93d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret
push dword [esi + 0x644]
mov dword [ebp - 0x10], 1
call fcn.004fb250
push dword [esi + 0x648]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004fb250
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4fb0ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004f93d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e389c
mov esp, ebp
pop ebp
ret

Function at 0x4fb230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004fb260
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0059436f