joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c9148
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x78]
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
mov esi, dword [esp + 0x7c]
jbe 0x408fc7
call fcn.0049f4bd
mov ebp, dword [ebx + 4]
cmp ebp, dword [ebx + 8]
jbe 0x408fd4
call fcn.0049f4bd
push edi
push ebx
push ebp
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00408990
mov eax, dword [esi]
xor edi, edi
add esi, 4
cmp eax, edi
jbe 0x4090b5
mov dword [esp + 0x14], eax
mov ebp, 7
fldz
mov dword [esp + 0x1c], edi
fstp qword [esp + 0x5c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 4]
add esi, 8
lea eax, [esp + 0x24]
push esi
push eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x28], edx
call fcn.00407f80
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00407f80
mov edx, dword [eax]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x1c]
mov dword [esp + 0x60], ecx
push edx
mov ecx, ebx
lea esi, [eax + 8]
call fcn.00408ee0
cmp dword [esp + 0x58], 8
mov dword [esp + 0x70], 0xffffffff
jb 0x409089
mov eax, dword [esp + 0x44]
push eax
call fcn.0049f16d
add esp, 4
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
jb 0x4090aa
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0049f16d
add esp, 4
sub dword [esp + 0x14], 1
jne 0x408ffc
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x60
ret
Function at 0x41bae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x194]
cmp eax, 0xffffffff
je 0x41bb3e
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea esp, [esp]
mov ecx, dword [esi + 0x194]
push 8
push 0xa
lea eax, [esp + 0x10]
push eax
push ecx
call edi
test eax, eax
jg 0x41bb10
mov edx, dword [esi + 0x194]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x194], 0xffffffff
pop edi
mov ecx, dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0049fcf1
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x10
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x194]
cmp eax, 0xffffffff
je 0x41bb3e
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea esp, [esp]
mov ecx, dword [esi + 0x194]
push 8
push 0xa
lea eax, [esp + 0x10]
push eax
push ecx
call edi
test eax, eax
jg 0x41bb10
mov edx, dword [esi + 0x194]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x194], 0xffffffff
pop edi
mov ecx, dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0049fcf1
add esp, 0x10
ret

Function at 0x41bdf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x41be26
cmp eax, esi
je 0x41be30
push 0
sub esi, eax
push esi
add edi, eax
push edi
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x41be12
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x41be7a
test eax, eax
je 0x41be84
cmp eax, esi
je 0x41be8e
push 0
sub esi, eax
push esi
add edi, eax
push edi
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x41be62
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
mov eax, 0x277e
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41bf30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41bf49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bf84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x41bf80
lea ebx, [ebx]
cmp esi, eax
jae 0x41bf84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41bf70
cmp esi, eax
jb 0x41bf8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x41c430
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4ca946
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 4], vtable.IComponent.0
lea eax, [esi + 0x24]
push eax
mov dword [esi], vtable.CConsoleComponent.1.0
mov dword [esi + 4], vtable.CConsoleComponent.0
push 0x202
mov dword [esp + 0x1c], 0
mov dword [esi + 0x20], vtable.CTCPIPClient.0
mov dword [esi + 0x1b4], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 0x1b8]
mov byte [esp + 0x14], 1
call fcn.0043f910
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4206f0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4cafee
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe8]
mov esi, dword [esp + 0xe4]
mov ecx, ebp
call fcn.0041f7c0
cmp dword [esi + 0x18], 8
jb 0x42074b
mov esi, dword [esi + 4]
jmp 0x42074e
add esi, 4
push esi
lea ecx, [esp + 0x18]
call fcn.0041e9e0
mov eax, dword [esp + 0x14]
xor esi, esi
push eax
mov dword [esp + 0xe0], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
cmp ebx, esi
jne 0x4207ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xdc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x420944
mov eax, dword [ebx + 0xc]
cmp dword [eax], esi
mov dword [esp + 0x18], esi
je 0x420917
xor ecx, ecx
lea ecx, [ecx]
movsx edx, word [ebx + 0xa]
mov eax, dword [eax + ecx]
push edx
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.0049ffd0
add esp, 0xc
push 1
push 3
lea ecx, [esp + 0x24]
call fcn.00416850
movzx edx, byte [esp + 0xab]
movzx eax, byte [esp + 0xaa]
movzx ecx, byte [esp + 0xa9]
push edx
movzx edx, byte [esp + 0xac]
push 0x4d71d0
push eax
push 0x4d71d0
push ecx
push 0x4d71d0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xf8], 1
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x20]
call fcn.004125e0
mov esi, dword [ebp + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0xb4]
push ecx
push edx
push esi
mov ecx, ebp
mov byte [esp + 0xe8], 2
call fcn.0041f840
push 1
mov ecx, ebp
mov edi, eax
call fcn.0041e510
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0xcc], 8
jb 0x4208b7
mov eax, dword [esp + 0xb8]
push eax
call fcn.0049f16d
add esp, 4
xor esi, esi
lea ecx, [esp + 0x70]
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], esi
mov word [esp + 0xb8], si
mov byte [esp + 0xdc], 0
call fcn.0040ffe0
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.0048c962
mov eax, dword [esp + 0x1c]
add eax, 1
lea ecx, [eax*4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
add esp, 4
cmp dword [eax + ecx], esi
jne 0x4207c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xdc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0049fcf1
add esp, 0xcc
ret
Function at 0x422080
Capabilities:
Get hostname

Disassembly:
sub esp, 0x210
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
xor edi, edi
mov dword [esp + 0xc], edi
push ecx
mov dword [esp + 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
jne 0x4220d5
push edi
push 0x4d6590
jmp 0x4220f5
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4220e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402f90
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049fcf1
add esp, 0x210
ret
Function at 0x426190
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cba4a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
xor esi, esi
push esi
push esi
push ebx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa4]
push esi
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, esi
jne 0x426213
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov word [ebp + 4], si
mov eax, ebp
jmp 0x426368
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048c20c
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x426249
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], esi
mov word [eax + 4], si
jmp 0x426368
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x94]
push edi
push ebp
push ebx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, 0xffffffff
mov edi, 7
jne 0x426280
push ebp
lea ecx, [esp + 0x40]
call fcn.00403410
mov dword [esp + 0x80], esi
lea ebx, [edi - 5]
jmp 0x4262ac
push eax
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], si
call fcn.00402f90
lea eax, [esp + 0x20]
mov dword [esp + 0x80], 1
mov ebx, 4
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], esi
mov word [esp + 0x68], si
call fcn.00402ea0
mov dword [esp + 0x80], 2
test bl, 4
je 0x4262fe
and ebx, 0xfffffffb
cmp dword [esp + 0x38], 8
jb 0x4262f1
mov edx, dword [esp + 0x24]
push edx
call fcn.0049f16d
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov word [esp + 0x24], si
test bl, 2
mov byte [esp + 0x80], 4
je 0x42632c
cmp dword [esp + 0x54], 8
jb 0x42631f
mov eax, dword [esp + 0x40]
push eax
call fcn.0049f16d
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
push ebp
call fcn.0049fdaa
mov ebx, dword [esp + 0x1c]
add esp, 4
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x60]
push ecx
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], esi
mov ecx, ebx
mov word [ebx + 4], si
call fcn.00402ea0
cmp dword [esp + 0x70], 8
jb 0x426366
mov edx, dword [esp + 0x5c]
push edx
call fcn.0049f16d
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x70
ret
Function at 0x428a10
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x428a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x20], eax
jne 0x428a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push 0x428850
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x428ad5
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
call ebp
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x1c], edi
call ebp
push esi
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x428b3a
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x1c], edi
call ebx
mov edx, dword [esi + 0x18]
push edx
call ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x42c180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cbe20
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, vtable.CBufferT_class_ElxInterface__.0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], vtable.CBufferT_class_CDelegateElxT_char___.0
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x50], vtable.CBufferT_class_CListElxT_0___.0
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x64], vtable.CBufferT_class_CBackrefElxT_char___.0
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], vtable.CBufferT_class_CConditionElxT_char___.0
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], vtable.CBufferRefT_char_.0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov byte [esi + 0x98], al
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov byte [esi + 0xa8], al
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov byte [esi + 0xb8], al
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov ecx, esi
mov byte [esp + 0x14], 6
mov byte [esi + 0xc8], al
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
call fcn.0042abc0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x432380
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4cc57a
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00416850
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push 0x4d71d0
push ecx
push 0x4d71d0
push edx
push 0x4d71d0
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], 1
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
push eax
call fcn.00415a50
add esp, 8
mov ecx, eax
call fcn.00415f00
mov esi, dword [esp + 0xa4]
push esi
lea ecx, [esp + 0x10]
call fcn.004125e0
lea ecx, [esp + 0x60]
mov dword [esp + 8], 1
mov byte [esp + 0x9c], 0
call fcn.0040ffe0
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], vtable.std::ios_base.0
call fcn.0048c962
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x98
ret 4
Function at 0x438920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ccd93
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0048c662
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x438971
mov eax, dword [esi + 0x1c]
push eax
call fcn.0049f16d
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x43e260
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
mov ebx, dword [esp + 0x1a4]
push ebp
push esi
mov esi, dword [esp + 0x1a4]
push edi
mov edi, dword [esp + 0x1ac]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x191
push 0
call fcn.00480810
mov ecx, dword [esp + 0x1bc]
add esp, 8
push ecx
push ebx
push edi
push esi
movzx ebp, al
call fcn.0043e020
mov ecx, eax
call fcn.00441720
test ebp, ebp
mov esi, eax
je 0x43e2d1
call fcn.004808d0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1a0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049fcf1
add esp, 0x194
ret 0x10

Function at 0x4406d0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x210
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 2
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x44078c
push 0x105
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x440732
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x210
ret
mov ecx, 8
cmp dword [esi + 0x4c], ecx
jb 0x440741
mov eax, dword [esi + 0x38]
jmp 0x440744
lea eax, [esi + 0x38]
cmp dword [esi + 0x4c], ecx
jb 0x44074e
mov esi, dword [esi + 0x38]
jmp 0x440751
add esi, 0x38
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 2
push 0x10
push 0xf01ff
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x440783
push eax
call esi
jmp 0x440789
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0049fcf1
add esp, 0x210
ret
Function at 0x4407b0
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x440821
cmp dword [esi + 0x4c], 8
jb 0x4407d4
mov esi, dword [esi + 0x38]
jmp 0x4407d7
add esi, 0x38
push 0x10004
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4407f7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x440815
cmp dword [esp + 0xc], 1
jne 0x440815
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x442f80
Capabilities:
Access peb ldr_data
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4cdeae
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x10
xor ebx, ebx
push str.CNtServiceModule
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004030a0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov byte [esi + 4], bl
call fcn.00402d10
cmp dword [esp + 0x28], 0x10
jb 0x443001
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049f16d
add esp, 4
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [esp + 0x58]
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
push ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x5c], 3
mov word [ecx + 4], bx
call fcn.00402ea0
xor eax, eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov byte [esp + 0x50], 4
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
and al, 0x3f
cmp al, 9
je 0x443092
lea eax, [esp + 0x2c]
push eax
call fcn.00441be0
add esp, 4
push eax
mov byte [esp + 0x54], 5
call fcn.0043ec50
mov ecx, eax
call fcn.004428d0
cmp dword [esp + 0x44], 8
jb 0x443092
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0049f16d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x48
ret 4