joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4268f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x214], eax
mov esi, edx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x42694e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.00426dd0
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x426986
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.00426dd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x583f78
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push dword [ebp - 0x214]
push 0x110
push 2
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4269c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x426a1f
mov ecx, dword [0x596704]
mov eax, 1
sub eax, dword [ecx - 4]
or eax, dword [ecx - 8]
jge 0x4269eb
push 0
mov ecx, 0x596704
call fcn.004251b0
mov ecx, dword [0x596704]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x426a0c
push str.ChangeServiceConfig2_failed_n
jmp 0x426a11
push str.Service_description_updated_successfully._n
call fcn.00426dd0
add esp, 4
push ebx
push str._s_is_installed._n
call fcn.00426dd0
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x426a37
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x426a50
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 1
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push 0
mov edi, ecx
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x426ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.00426dd0
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
push esi
push 0x10024
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x426ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x426b7a
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x426b5b
push edi
push str.Stopping__s.
call fcn.00426dd0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call ebx
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426b3b
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x426b3e
push 0x5842f8
call fcn.00426dd0
add esp, 4
push 0x3e8
call ebx
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x426b10
mov eax, dword [ebp - 0x1c]
push edi
cmp eax, 1
jne 0x426b4b
push 0x5842fc
jmp 0x426b50
push str._n_s_failed_to_stop._n
call fcn.00426dd0
mov ebx, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x426b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x426b7a
push edi
push str._s_is_removed._n
call fcn.00426dd0
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
test esi, esi
je 0x426b92
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x426bb0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20000000
push 0
push 0
mov esi, ecx
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x426bf4
push 0x34
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x426c06
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x426c33
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
jne 0x426c9d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x426c15
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426c9c
nop word [eax + eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
je 0x426c8c
inc edi
cmp edi, 0xa
je 0x426c86
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x426c60
jmp 0x426c9c
mov byte [ebp - 0x21], 0
jmp 0x426c9c
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
mov byte [ebp - 0x21], 1
pop edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop esi
pop ebx
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x426cc0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20000000
push 0
push 0
mov esi, ecx
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x426d04
push 0x34
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x426d16
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x426d43
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
cmp ecx, 4
je 0x426d50
cmp ecx, 2
jne 0x426db0
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x426d25
push edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426daf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x426d9f
inc edi
cmp edi, 0xa
je 0x426d99
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x426d73
jmp 0x426daf
mov byte [ebp - 0x21], 0
jmp 0x426daf
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
mov byte [ebp - 0x21], 1
pop edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop esi
pop ebx
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret

Function at 0x426e00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0050ec90
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push bind
push eax
call fcn.00423ea0
push dword [eax + 4]
push dword [eax]
call fcn.005177de
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x428af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534831
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00510f30
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.00428a10
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x1b4]
push 3
lea eax, [ebp - 0x110]
push eax
call fcn.00423460
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp byte [edx], 0
jne 0x428b91
xor ecx, ecx
jmp 0x428b9f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428b96
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.00424ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b4]
cmp eax, ecx
je 0x428bc9
push eax
call fcn.00512967
add esp, 4
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push ecx
cmovae eax, dword [ebp - 0x12c]
mov ecx, esp
push eax
mov dword [ebp - 0x114], 0
call fcn.00422fa0
lea ecx, [ebp - 0x114]
call fcn.00425be0
add esp, 4
push 3
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], eax
call fcn.00423460
push 0x5845a0
push dword [ebp - 0x238]
call fcn.0051802c
mov esi, eax
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x238]
add esp, 8
cmp eax, ecx
je 0x428c4a
push eax
call fcn.00512967
add esp, 4
test esi, esi
je 0x428c8c
mov eax, dword [ebp - 0x114]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov edi, dword [eax - 0xc]
jge 0x428c79
push 0
lea ecx, [ebp - 0x114]
call fcn.00423700
mov eax, dword [ebp - 0x114]
push esi
push 1
push edi
push eax
call fcn.0051827b
push esi
call fcn.00518349
add esp, 0x14
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428cae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x428cfe
mov ecx, dword [ebp - 0x12c]
inc eax
cmp eax, 0x1000
jb 0x428cf5
test cl, 0x1f
je 0x428cd1
call fcn.00512b77
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x428cdd
call fcn.00512b77
sub ecx, eax
cmp ecx, 4
jae 0x428ce9
call fcn.00512b77
cmp ecx, 0x23
jbe 0x428cf3
call fcn.00512b77
mov ecx, eax
push ecx
call fcn.0050e1ee
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x428d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x428da8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
call fcn.00428d20
test eax, eax
je 0x428d97
push ebx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00510f30
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.open
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str._install
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
test bl, bl
je 0x428e2b
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x428e2b
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x429340
Capabilities:
Access peb ldr_data
Check os version
Get process heap force flags
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534919
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], ebx
mov dword [ebx], 0
call fcn.00424370
mov ecx, eax
test ecx, ecx
jne 0x42939f
push 0x80004005
call fcn.00425150
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
pushal
mov ebx, dword fs:[0x18]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa8]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
popal
cmp dword [ebp - 0x38], 5
jl 0x42944d
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42940f
lea ecx, [ebp - 0x34]
push ecx
call eax
jmp 0x429419
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x34]
cmp ax, 9
je 0x42942e
cmp ax, 6
mov eax, 0x20
jne 0x429433
mov eax, 0x40
mov esi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push str.w_02d_02dx_d
push esi
call fcn.00423bb0
add esp, 0x14
jmp 0x429450
mov esi, dword [ebp - 0x40]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x42aaf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534b58
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x58dd4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov edx, 0x583f78
test eax, eax
mov dword [edi + 0x24], 0
mov dword [edi + 8], 0x110
cmovne edx, eax
mov dword [edi + 0xc], 2
mov dword [edi + 4], edx
mov dword [edi + 0x10], 0x85
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
push 0
push 0
push 1
mov dword [ebp - 4], 0
push 0
mov dword [edi], vtable.CSampleService.0
mov dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [edi + 0x2c], 0
mov dword [edi + 0x30], eax
je 0x42abb5
test eax, eax
je 0x42abb5
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x5883b4
push eax
call fcn.0051110c
int3

Function at 0x42b6b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x58dd4c]
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 0x42b700
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x42b6fa
shr eax, 8
cmp al, 2
jne 0x42b6fa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e1f3
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.0050e1f3
mov esp, ebp
pop ebp
ret
Function at 0x42e680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0042e6b0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00524419

Function at 0x433be0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x433c29
mov al, byte [esi]
push eax
call fcn.004411f0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x433c07
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x434e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x434e6e
cmp dword [esi + 0x6c], 0
je 0x434e6e
push 2
push 3
push esi
call fcn.004417b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00441c20
add esp, 4
test esi, esi
je 0x434e8e
cmp dword [esi + 0x6c], 0
je 0x434e8e
push 3
push esi
call fcn.004417f0
add esp, 8
pop esi
pop ebp
ret
Function at 0x43ecc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x43ed04
push esi
push 1
push edi
call fcn.00430110
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00430110
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x43ed3a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x537e20
push 2
push eax
call fcn.0051827b
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0051827b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x43f0f0
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.0043f600
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 0x43f174
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x43f14c
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.004628f0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0043ed40
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48d4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x43f600
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
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x43f6bd
cmp dword [ebx + ecx*4 + 0x1bc], 0x43f040
jne 0x43f6bd
cmp dword [esi], 0
je 0x43f64f
test edi, edi
je 0x43f6bd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0043e870
add esp, 0x14
cmp eax, 0xffffffff
je 0x43f6bd
test al, 1
je 0x43f6bd
cmp dword [esi], 0
jne 0x43f6a4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
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 0x43f6a4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43f6bd
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43f7b0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x43ff60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x593700]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x43ffb1
push 3
push 2
push eax
push 6
call fcn.004632f0
add esp, 0x10
test al, al
je 0x43ffa5
mov dword [0x593700], 2
mov esp, ebp
pop ebp
ret
mov dword [0x593700], 1
jmp 0x43ffb6
cmp eax, 2
je 0x43fff6
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 0x43ffdd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x43fff6
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 0x4400d0
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 0x440118
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004628f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043ee20
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043ee20
add esp, 8
pop edi
pop esi
pop ebp
ret