joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca935
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004bb53d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4ca971
call fcn.004cab57
mov dword [esi + 0xc], 1
jmp 0x4ca976
call fcn.004cab57
cmp dword [esi], 0
je 0x4ca9bf
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4ca999
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004af47e
jmp 0x4ca9aa
push 0xff
mov ecx, esi
call fcn.0040f4cd
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004ac714
jmp 0x4ca9e3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4ca9e3
push dword [esi]
push dword [ebp - 4]
call fcn.004c23a0
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4caaac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004cab57
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4caaf4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004af47e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004ac714
jmp 0x4caaff
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004c23a0
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4f1732
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4f174b
call fcn.004ae0cf
mov esi, dword [eax + 0xc]
push 0x62b4dc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4f17a1
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f17a0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f1781
xor esi, esi
jmp 0x4f1797
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004f17a9
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x585680
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x619698
call fcn.005e7001
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004aad27
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x6566d8
call fcn.004c47a6
cmp eax, 0xffffffff
jne 0x58574b
push 0
push 0x62b498
lea ecx, [ebp - 0x278]
call fcn.004c47a6
cmp eax, 0xffffffff
jne 0x58574b
push 0
push 0x624c7c
lea ecx, [ebp - 0x278]
call fcn.004c47a6
cmp eax, 0xffffffff
jne 0x58574b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004aad27
mov edi, eax
pop ecx
mov dword [ebp - 0x27c], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x280], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x114]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x585728
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005e710b
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.0040f3b7
jmp 0x585783
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004acf2a
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040f3b7
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x585771
mov edi, dword [ebp - 0x274]
jmp 0x585783
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005e710b
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040f3b7
mov eax, edi
call fcn.005e6fab
ret

Function at 0x60465c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060431c
Function at 0x403740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462589
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x47d0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00401e00
mov ecx, eax
test ecx, ecx
jne 0x40378e
push 0x80004005
call fcn.00401b90
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4037a3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4037a5
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x46e170
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4037ee
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4037ee
push eax
mov ecx, esi
call fcn.00405940
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call edi
call fcn.004031d0
call fcn.00405060
mov ecx, dword [0x47ec90]
cmp dword [ecx - 4], 1
jle 0x4042b0
push dword [ecx - 0xc]
mov ecx, 0x47ec90
call fcn.00401a20
mov ecx, dword [0x47ec90]
call fcn.00403ce0
mov eax, dword [0x47ec90]
test eax, eax
jne 0x4042c2
xor ecx, ecx
jmp 0x4042d9
push dword [eax - 8]
push eax
call fcn.0044bd37
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40433f
mov eax, dword [0x47ec90]
cmp ecx, dword [eax - 8]
jg 0x40433f
mov dword [eax - 0xc], ecx
mov eax, dword [0x47ec90]
mov byte [eax + ecx], 0
call fcn.00403f50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov dword [esp + 0xc], 0
nop
cmp dword [0x47ec60], 0
jne 0x404333
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x404420
push 0
push 0
call ebx
mov dword [0x47ec60], eax
test eax, eax
jne 0x404333
push 0xbb8
call edi
inc esi
cmp esi, 3
jl 0x404300
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401b90
int3
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
mov dword [esp + 0xc], 4
push eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 4
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
push 0x47960c
push 0x479610
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp dword [esp + 4], 1
sete bl
test bl, bl
jne 0x40440d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x20119
push 0
push str.SoftwareSegurazo
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40440d
mov dword [esp + 4], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 4
push eax
push 0x479638
push 0x479595
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], 1
sete bl
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x405060
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
mov eax, dword [0x47d0e0]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4050e2
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4050d9
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00444f5f
add esp, 0x24
ret

Function at 0x405b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, 0x47de38
push 0
mov dword [esp + 0x14], ebx
call fcn.00444862
mov edi, eax
mov ebp, 1
test edi, edi
je 0x405bf2
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
push 0
inc eax
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x405bd0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405bd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405bd0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405bc6
cmp esi, edx
jae 0x405bd0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405bb4
cmp esi, edx
jae 0x405bd0
cmp word [esi], 0
jne 0x405be8
push ebp
mov ecx, 0x47de38
call fcn.00444862
mov edi, eax
inc ebp
test edi, edi
je 0x405bf2
mov eax, dword [esp + 0x14]
jmp 0x405b71
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x405c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c15
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c4d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405c49
cmp esi, edx
jae 0x405c4d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405c37
cmp esi, edx
jb 0x405c53
pop esi
pop edi
xor eax, eax
pop ebx
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406290
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4062c4
push 0x15
push dword [esp + 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x406304
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40635e
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x406366
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
push 0x1000
push 0x40
xor bl, bl
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40634d
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x406346
cmp dword [esi + 4], 2
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
jmp 0x4062c6
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
mov ecx, eax
call esi
jmp 0x40635e

Function at 0x406370
Capabilities:
Modify service

Disassembly:
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4063a2
push 2
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4063dc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406424
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x40642a
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov al, bl
pop ebx
pop ecx
ret
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, eax
mov dword [esp + 0xc], 1
lea eax, [esp + 0xc]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
test edi, edi
pop edi
setne bl
jmp 0x4063a4
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ecx, eax
call esi
jmp 0x406424
Function at 0x406d60
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x47d0e0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406db5
mov eax, dword [esp]
cmp al, 2
jne 0x406daf
shr eax, 8
cmp al, 2
jne 0x406daf
call fcn.0040f8f0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00444f5f
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.00444f5f
add esp, 0x194
ret
Function at 0x40efa0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40efbc
cmp dword [esi + 0x6c], 0
je 0x40efbc
push 2
push 3
push esi
call fcn.0041abf0
add esp, 0xc
push dword [esp + 0xc]
call fcn.0041d9f0
add esp, 4
test esi, esi
je 0x40efdd
cmp dword [esi + 0x6c], 0
je 0x40efdd
push 3
push esi
call fcn.0041ac30
add esp, 8
pop esi
ret

Function at 0x40f760
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c0], 2
je fcn.0040f710
mov al, 1
ret
Function at 0x4166a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x47d0e0]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x4f8], 0
jne 0x4166d2
cmp dword [edi + 0x160], 0
je 0x416770
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00424f00
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x416700
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x416735
cmp byte [edi + 0x48b0], al
jne 0x416735
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x416720
mov byte [edi + 0x48b0], 1
cmp byte [edi + 0x4f8], 0
je 0x41676f
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x4167c7
mov eax, dword [edi + 0x1d0]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x416786
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00444f5f
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x464724
call fcn.0044b71a
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0044b71a
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00444f5f
add esp, 0x108
ret
call fcn.0044559b
int3

Function at 0x4167d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x47d0e0]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x416899
cmp byte [edi + 0x4f8], 0
je 0x416899
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00424f00
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x416830
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x41686e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00444f5f
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x464724
call fcn.0044b71a
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0044b71a
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00444f5f
add esp, 0x808
ret
Function at 0x416af0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.00416f40
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x416b76
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x416b4e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.00426cc0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004166a0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48b4], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x416ff8
cmp dword [ebx + ecx*4 + 0x1bc], 0x416a50
jne 0x416ff8
cmp dword [esi], 0
je 0x416f8c
test edi, edi
je 0x416ff8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00415fe0
add esp, 0x14
cmp eax, 0xffffffff
je 0x416ff8
test al, 1
je 0x416ff8
cmp dword [esi], 0
jne 0x416fe1
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x416fe1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x416ff8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x417000
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x417029
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x417062
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x464724
push 2
push eax
call fcn.0044b71a
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0044b71a
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x41714d
push eax
call fcn.0040ff00
add esp, 4
test eax, eax
jne 0x41716f
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x41714a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41716f
xor al, al
ret
mov al, 1
ret
Function at 0x417a80
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x417ac8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00426cc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004167d0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004167d0
add esp, 8
pop edi
pop esi
ret

Function at 0x417c00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x47d0e0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x417db9
cmp byte [ebx + 0x276], 0
push esi
push edi
jne 0x417dae
cmp byte [ebx + 0x292], 0
jne 0x417dae
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x417c93
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00426cc0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.004166a0
add esp, 0x18
jmp 0x417db7
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.004478a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x417ce8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00426cc0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.004166a0
add esp, 0x18
jmp 0x417db7
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.004182a0
add esp, 0xc
test al, al
jne 0x417d36
call fcn.0044978c
mov esi, eax
call fcn.0044978c
push dword [esi]
mov edi, eax
push ebx
call fcn.00426cc0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004166a0
add esp, 0x18
jmp 0x417db7
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, [esp + 0x1c]
push eax
call fcn.004182a0
add esp, 0xc
test al, al
jne 0x417dae
call fcn.0044978c
mov esi, eax
call fcn.0044978c
push dword [esi]
mov edi, eax
push ebx
call fcn.00426cc0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004166a0
add esp, 0x18
jmp 0x417db7
push ebx
call fcn.00417810
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00444f5f
add esp, 0x108
ret