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

Disassembly:
push 0xffffffffffffffff
push 0x4a92ae
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x4cdbb4]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov esi, ecx
push str.WBPList.xml
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x100], 0
call fcn.00413780
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43c1d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x43c26c
lea ecx, [esp + 0x20]
call fcn.00445de0
push str.WBPList.xml
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x100], 1
call fcn.00413780
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x377
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 2
call fcn.00447250
mov ecx, eax
call fcn.00443250
test al, al
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0xf4], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
test bl, bl
je 0x43c297
mov byte [esp + 0xf4], 0
call fcn.00445e00
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
mov dword [esp + 0xf4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x43c293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x43c2db
push ecx
mov ecx, esi
call fcn.0043bbb0
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0xf4], 0
call fcn.00445e00
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
mov dword [esp + 0xf4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x43c2d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004874cc
add esp, 0xe8
ret 4
Function at 0x43ef20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a96b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cdbb4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [0x4cf698]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cf698
mov dword [esp + 0x18], 0
call edx
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [edi + 8]
mov ecx, 1
mov dword [esp + 0xc], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x1000
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x43ef9c
push 0x1000
mov ecx, esi
call fcn.00403ee0
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edi
push 0x1000
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x43efd1
push ecx
push eax
call fcn.004876e0
add esp, 8
test eax, eax
jl 0x43eff9
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x43eff9
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
push 0x80070057
call fcn.004033e0
int3

Function at 0x43f010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a96e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cdbb4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4cf698]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cf698
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push 0x4acbe8
push ecx
mov dword [esp + 0x24], 0
call fcn.004110f0
mov esi, dword [esi + 8]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push esi
mov esi, dword [esp + 0x10]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f0a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x43f920
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x43f967
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43f977
push 9
push esi
call edi
push 1
push esi
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebp
cmp eax, esi
jne 0x43f9a6
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004874cc
add esp, 0x11c
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp eax, 2
je 0x43f9b8
cmp eax, 1
jne 0x43f9bd
cmp ecx, 4
ja 0x43f9d1
cmp ecx, 4
jne 0x43fa7a
cmp dword [esp + 0x18], 0
jbe 0x43fa7a
push ebx
push 0
call ebp
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
push 0
push esi
mov edi, eax
call ebx
push 1
mov ebx, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x43fa19
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
call ebp
cmp eax, esi
sete al
test al, al
jne 0x43fa61
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2000
call edi
push 2
push 0
push 0
push 0x2001
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esp + 0x10]
push 2
push edx
push 0
push 0x2001
call edi
call ebp
cmp eax, esi
sete al
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004874cc
add esp, 0x11c
ret
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call ebp
mov ecx, dword [esp + 0x124]
cmp eax, esi
pop edi
pop esi
sete al
pop ebp
xor ecx, esp
call fcn.004874cc
add esp, 0x11c
ret
Function at 0x43fb40
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0x218], eax
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x244]
push eax
push SysReAllocStringLen
mov dword [esp + 0x24], ecx
call edi
mov eax, esi
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43fba0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
sub eax, ecx
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0x4bc720
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push esi
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x18]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43fbe7
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 1
push 0x4bc720
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push esi
lea eax, [esp + 0x24]
push str._sDefaultIcon
push eax
call fcn.0040e6b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x14]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43fc40
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x18]
push eax
push 1
push 0x4bc720
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push esi
lea eax, [esp + 0x24]
push str._sShell
push eax
call fcn.0040e6b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x10]
push 5
push str.Open
push 1
push 0x4bc720
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
push esi
lea edx, [esp + 0x24]
push str._sShellOpenCommand
push edx
call fcn.0040e6b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push SysReAllocStringLen
call edi
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push str.__s_____1_
push eax
call fcn.0040e6b0
lea eax, [esp + 0x2c]
add esp, 0xc
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43fcf0
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push 0x4bc720
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004874cc
add esp, 0x21c
ret
Function at 0x43fd40
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x4afb0c
push 1
xor esi, esi
push esi
push 0x4afb5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x43fdc1
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x4afb4c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x43fdb5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
neg esi
sbb esi, esi
push eax
inc esi
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x440de0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9968
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push edi
mov eax, dword [0x4cdbb4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x40], 0
call fcn.0043f850
mov ecx, eax
call fcn.004139c0
or edi, 0xffffffff
test eax, eax
je 0x440f77
mov eax, dword [esp + 0x48]
push 0xfde9
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00401080
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x44], 1
call fcn.0043f850
mov ecx, eax
call fcn.00413750
push str.WOTPLUGIN.MSG
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x4c], 2
call fcn.00413780
mov eax, dword [eax]
push 0x4af994
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00488589
add esp, 0x18
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440eaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440ece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x440f4e
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x440ee1
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
push ecx
push 1
push edx
push eax
call fcn.00488df7
mov eax, dword [esp + 0x1c]
push eax
call fcn.004878e7
add esp, 0x14
cmp dword [esp + 0x30], 0x10
jb 0x440f14
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048668b
add esp, 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x40], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x440f4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x440f9a
cmp dword [esp + 0x30], 0x10
jb 0x440f62
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048668b
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x40], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x440f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004874cc
add esp, 0x38
ret
Function at 0x4418b3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cf6b4], 0
push esi
jne 0x441826
call fcn.0044174c
test eax, eax
je 0x441869
mov eax, dword [0x4cf6b4]
cmp eax, 1
jne 0x441847
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x441869
pop esi
ret
push eax
call dword [0x4cf6bc]
test eax, eax
jne 0x4418b1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44186d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cf6b4]
call dword [0x4cf6bc]
mov edi, eax
test edi, edi
je 0x441892
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x4418ae
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4cf6b4]
call dword [0x4cf6b8]
add edi, 0x10
cmp edi, esi
jb 0x44189a
mov eax, edi
pop edi
pop esi
ret
jmp 0x441813

Function at 0x447120
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
jne 0x44713f
mov eax, dword [esp + 0xc]
pop edi
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
mov dword [eax], 1
pop ebp
ret
push esi
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebp
call fcn.00442e50
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x447171
push edi
call fcn.004878e7
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], esi
pop esi
pop edi
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ebx
cmp ebx, ebp
ja 0x447181
mov eax, 1
push eax
call dword [0x4cd8d4]
add esp, 4
mov esi, eax
push edi
cmp esi, ebp
jne 0x4471af
call fcn.004878e7
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop esi
pop edi
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
mov dword [eax], 3
pop ebp
ret
push ebx
push 1
push esi
call fcn.004894a9
push edi
mov ebp, eax
call fcn.004878e7
add esp, 0x14
cmp ebp, ebx
je 0x4471e8
push esi
call dword [0x4cd8d8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop esi
xor ecx, ecx
pop edi
mov dword [eax + 8], ecx
mov dword [eax], 2
mov dword [eax + 4], ecx
pop ebp
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.004470d0
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x447410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9ae8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4cdbb4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x447451
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov dword [esp + 0xc], vtable.pugi::xml_writer_file.0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
call fcn.00447290
push esi
call fcn.0048c5e8
push esi
mov edi, eax
call fcn.004878e7
add esp, 8
test edi, edi
sete al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x447710
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4cdbb4]
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 0x447762
mov eax, dword [esp]
cmp al, 2
jne 0x44775c
shr eax, 8
cmp al, 2
jne 0x44775c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004874cc
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004874cc
add esp, 0x194
ret

Function at 0x450740
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 0x450772
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x4508c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2d0], 0
push edi
je case.default.0x450920
test eax, eax
je case.default.0x450920
mov eax, dword [eax + 0x84]
test eax, eax
je case.default.0x450920
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x450920
jmp dword [edx*4 + 0x450a3c]
mov ecx, str.Header
mov edx, str.from
jmp 0x45093d
mov ecx, str.Header
mov edx, 0x4b074c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00453a30
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450960
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x4509b5
mov ecx, dword [esi + 0x12c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x450a20
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x4509e3
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x450a20
mov eax, dword [esi + 0x128]
push eax
push 1
push 2
push 0x4b0728
call fcn.00488df7
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00488df7
add esp, 0x20
jmp case.default.0x450920
test ebx, ebx
jl 0x450a1e
cmp ebx, 2
jg 0x450a1e
mov eax, dword [esi + 0x128]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4b0728]
push 2
push ecx
call fcn.00488df7
mov edx, dword [esi + 0x128]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00488df7
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004874cc
add esp, 0xa4
ret

Function at 0x450c60
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.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x450cdd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x450cb4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00455520
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00450ae0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85cc], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x452150
Capabilities:
Set socket configuration

Disassembly:
push ecx
xor eax, eax
cmp dword [edi + 0x440], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x452188
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00450a50
add esp, 0xc
pop ecx
ret
Function at 0x452730
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1a4], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x45286b
mov esi, dword [esp + 0x124]
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.WS2_32.dll_getpeername]
test eax, eax
je 0x4527ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00455520
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00450ae0
add esp, 0x18
jmp 0x452874
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4527ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00455520
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00450ae0
add esp, 0x18
jmp 0x452874
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004526f0
test eax, eax
jne 0x45282a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00455520
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00450ae0
add esp, 0x18
jmp 0x452874
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004526f0
test eax, eax
jne 0x45286b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00455520
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00450ae0
add esp, 0x18
jmp 0x452874
push ebp
call fcn.00452690
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004874cc
add esp, 0x10c
ret

Function at 0x452890
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
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 0x4528d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00455520
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00450a50
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00450a50
add esp, 8
pop esi
pop ecx
ret

Function at 0x4528f0
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 0x452939
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x452951
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