joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c840
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
jmp 0x40c864
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x19
jg 0x40c8ba
movsx ecx, byte [ebp - 1]
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x10]
je 0x40c8b8
movsx eax, byte [ebp - 1]
add eax, 0x41
push eax
push str._c:_
lea ecx, [ebp - 0x14]
push ecx
call fcn.00410690
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
je 0x40c8af
cmp dword [ebp - 0xc], 2
jne 0x40c8b8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40c85c
xor edx, edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40c8d0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov ecx, dword [ebp - 8]
push ecx
call fcn.004154cd
add esp, 4
mov dword [ebp - 0x10], eax
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x10
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x40c92a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c944
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 1
jne 0x40c942
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40c921
xor edx, edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40d260
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x44d56c
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 8], 0
jne 0x40d2a5
jmp 0x40d3c6
lea eax, [ebp - 0x1c]
push eax
push 0x43a440
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.OLEACC.dll_AccessibleObjectFromWindow]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0x10000
mov dword [ebp - 0x10], 0
push 0x43934c
push 0x454358
push 1
push 0
push 0x454368
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x43934c]
mov edx, dword [ecx]
mov eax, dword [0x43934c]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0
jge 0x40d318
jmp 0x40d38f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040cb70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
push eax
push str.tick__d_n
call fcn.00401450
add esp, 8
lea ecx, [ebp - 1]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0x40ca60
push 0x4486b1
push 0x4486ab
push 0x4486b2
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004106c0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d38f
push 0x44d598
call fcn.00401450
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x43934c], 0
je 0x40d3c0
mov eax, dword [0x43934c]
mov ecx, dword [eax]
mov edx, dword [0x43934c]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esp, ebp
pop ebp
ret
Function at 0x40df10
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40df64
push 0
push 0
push str.2001:19f0:7001:5607:5400:1ff:fec7:13a9
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40df8c
push 0x800000
push 0
push 0
push 0
push str._index.html
push 0x44df20
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 4]
or edx, 0x100
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
or eax, 0x2000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
or ecx, 0x1000
mov dword [ebp - 4], ecx
push 4
lea edx, [ebp - 4]
push edx
push 0x1f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp - 8], 0
je 0x40dfee
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e008
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.00401450
add esp, 8
cmp dword [ebp - 8], 0
je 0x40e018
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xc], 0
je 0x40e028
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x10], 0
je 0x40e038
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40e210
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x328]
push eax
call fcn.00417ec0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x328], 0x44
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x328]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x44e500
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2dc], 0
je 0x40e314
push 0x2cc
push 0
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 0x2d0], 0x1003f
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [ebp - 0x2dc]
push ecx
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._d__d__d_n
call fcn.00401450
add esp, 0x10
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret

Function at 0x40e4a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
jne 0x40e4ea
lea ecx, [ebp - 0x18]
push ecx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40e4ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x40e54f
mov edx, 0xc
imul eax, edx, 0
lea ecx, [ebp + eax - 0x10]
push ecx
push 0x45264c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40e515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x40e54f
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 8], 2
mov dword [ebp - 0x14], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40e54f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x40e565
cmp dword [ebp - 0x18], 0
je 0x40e565
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret
Function at 0x40e580
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x452680
push 0x45269c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x439354], eax
push 0x2c
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0xc4]
push ecx
push 0x2c
lea edx, [ebp - 0x11c]
push edx
push 0
call dword [0x439354]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jl 0x40e626
mov eax, dword [ebp - 0xf8]
push eax
push 0x4526a8
call fcn.00401450
add esp, 8
movsx ecx, byte [ebp - 0xf4]
push ecx
push 0x4526cc
call fcn.00401450
add esp, 8
xor edx, edx
jne 0x40e5d6
push 0xb8
push 0
lea eax, [ebp - 0xbc]
push eax
call fcn.00417ec0
add esp, 0xc
lea ecx, [ebp - 0xc4]
push ecx
push 0xb8
lea edx, [ebp - 0xbc]
push edx
push 1
call dword [0x439354]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jl 0x40e693
mov eax, dword [ebp - 0xf8]
push eax
push str.ActiveProcessorsAffinityMask:_d_n
call fcn.00401450
add esp, 8
movsx ecx, byte [ebp - 0xf4]
push ecx
push str.NumberOfProcessors:_d_n
call fcn.00401450
add esp, 8
push 0x108
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.00417ec0
add esp, 0xc
lea eax, [ebp - 0xc4]
push eax
push 0x108
lea ecx, [ebp - 0x224]
push ecx
push 0x37
call dword [0x439354]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jl 0x40e6f8
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x218]
push ecx
mov edx, dword [ebp + eax - 0x21c]
push edx
push str.ActiveProcessorsGroupAffinity:_d_n
call fcn.00401450
add esp, 0xc
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
push eax
push str.process:_d_system:_d_n
call fcn.00401450
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
lea edx, [ebp - 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xe0]
push eax
push str.process:_d_n
call fcn.00401450
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret

Function at 0x40e7d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push str.SeShutdownPrivilege
call fcn.0040e810
add esp, 4
push eax
push str.EnablePriv__d_n
call fcn.00401450
add esp, 8
push 1
push 1
push 0x64
push 0x452a74
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
pop ebp
ret
Function at 0x40ef80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x40f09e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x40efb8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00407310
jmp 0x40f0b2
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00404ca0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x40f04c
jg 0x40efe0
cmp dword [ebp + 0xc], 0
jbe 0x40f04c
cmp dword [ebp - 8], 0
jl 0x40f04c
jg 0x40efee
cmp dword [ebp - 0xc], 0
jbe 0x40f04c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x40f00c
jl 0x40f000
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x40f00c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00407c90
push eax
call fcn.00401670
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00407b10
cmp dword [ebp + 0x10], 0
jl 0x40f08e
jg 0x40f05a
cmp dword [ebp + 0xc], 0
jbe 0x40f08e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x40f08e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041f830
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x40f0b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00407310
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x40f1e6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x40f0f8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00407430
jmp 0x40f1fa
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00407b50
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x40f18c
jg 0x40f120
cmp dword [ebp + 0xc], 0
jbe 0x40f18c
cmp dword [ebp - 8], 0
jl 0x40f18c
jg 0x40f12e
cmp dword [ebp - 0xc], 0
jbe 0x40f18c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x40f14c
jl 0x40f140
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x40f14c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.00407cb0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401670
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00407c30
cmp dword [ebp + 0x10], 0
jl 0x40f1d6
jg 0x40f19a
cmp dword [ebp + 0xc], 0
jbe 0x40f1d6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x40f1d6
mov ecx, dword [ebp - 4]
call fcn.0040ff30
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004201da
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x40f1fa
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00407430
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.00401700
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004016d0
add esp, 8
movzx edx, al
test edx, edx
je 0x40f695
lea eax, [ebp + 8]
push eax
call fcn.004057e0
add esp, 4
jmp 0x40f816
mov ecx, dword [ebp - 0x2c]
call fcn.00407c90
test eax, eax
je 0x40f6d7
mov ecx, dword [ebp - 0x2c]
call fcn.00407c90
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.00407bd0
cmp esi, eax
jae 0x40f6d7
lea ecx, [ebp + 8]
push ecx
call fcn.004057d0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.00404cd0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40f816
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x40f6ea
call fcn.00401700
jmp 0x40f816
mov ecx, dword [ebp - 0x2c]
call fcn.0040ff30
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x40f739
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004057d0
add esp, 4
movzx ecx, al
push ecx
call fcn.0040b080
add esp, 8
movzx edx, al
test edx, edx
je 0x40f729
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x40f731
call fcn.00401700
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x40f816
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.004057d0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.0040fa60
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x40f811
cmp dword [ebp - 0x34], 1
jle 0x40f794
cmp dword [ebp - 0x34], 3
je 0x40f7e1
jmp 0x40f811
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x40f7c6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0041f830
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40f7c6
call fcn.00401700
jmp 0x40f816
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x40f7da
mov eax, dword [ebp + 8]
jmp 0x40f816
call fcn.00401700
jmp 0x40f816
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.0040b080
add esp, 8
movzx eax, al
test eax, eax
je 0x40f804
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x40f80c
call fcn.00401700
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x40f816
call fcn.00401700
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret 4
Function at 0x40ffc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x40ffe7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40ffee
mov al, 1
jmp 0x4100c2
call fcn.00401700
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00401700
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004016d0
add esp, 8
movzx eax, al
test eax, eax
je 0x41002a
xor al, al
jmp 0x4100c2
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.00410360
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x410066
cmp dword [ebp - 0x30], 1
je 0x41006d
cmp dword [ebp - 0x30], 3
je 0x4100bc
jmp 0x4100c0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x41009c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0041f830
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x41009c
xor al, al
jmp 0x4100c2
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4100b0
mov dword [ebp - 0x38], 1
jmp 0x4100b7
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x4100c2
mov al, 1
jmp 0x4100c2
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret

Function at 0x411e40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 0xc], 0
je 0x411e55
mov dword [ebp - 4], str.Interact
jmp 0x411e5c
mov dword [ebp - 4], 0x448803
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.SvcHostDLL:_RealService_called__s__s
call fcn.004126c0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
cmp dword [ebp + 0xc], 0
je 0x411e95
mov dword [ebp - 0x50], str.WinSta0__Default
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411ed3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.SvcHostDLL:_CreateProcess__s__error:_d
call fcn.004126c0
add esp, 0xc
jmp 0x411ee8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SvcHostDLL:_CreateProcess__s__to__d
call fcn.004126c0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4126c0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x42c]
push eax
call fcn.0040a8a0
add esp, 0x10
mov dword [ebp - 0x440], 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xffffffff
je 0x4127ae
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x434]
add edx, 1
mov dword [ebp - 0x444], edx
mov eax, dword [ebp - 0x434]
mov cl, byte [eax]
mov byte [ebp - 0x42d], cl
add dword [ebp - 0x434], 1
cmp byte [ebp - 0x42d], 0
jne 0x41273b
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 0x444]
mov dword [ebp - 0x448], edx
push 0
lea eax, [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x44c]
push ecx
push 2
push str._r_n
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x412821
push 0x453990
push str.SvcHost.DLL.log
call fcn.00421d20
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x412821
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00421eb6
add esp, 4
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00421ded
add esp, 4
push eax
push str._s__s____s_n
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0040a820
add esp, 0x14
push 2
call fcn.0041a696
add esp, 4
test eax, eax
jne 0x412821
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.0041f033
add esp, 4
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret