joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4038b3
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004342c0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
mov byte [ebp - 0x231], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40392b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push str.lsass.exe
push eax
call fcn.00439628
add esp, 8
test eax, eax
je 0x40391b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4038f3
jmp 0x40392a
mov eax, dword [ebp - 0x228]
mov dword [ebx], eax
mov byte [ebp - 0x231], 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x231]
xor ecx, ebp
pop esi
pop ebx
call fcn.00432107
mov esp, ebp
pop ebp
ret 4
Function at 0x404370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x206c
call fcn.00432c10
mov eax, dword [0x46e224]
xor eax, esp
mov dword [esp + 0x2068], eax
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov esi, dword [eax]
mov ebx, edx
mov eax, dword [0x47255c]
mov edi, ecx
cmp eax, dword [esi + 4]
jle 0x40440b
push 0x47255c
call fcn.00432285
add esp, 4
cmp dword [0x47255c], 0xffffffff
jne 0x40440b
push str.WTSGetActiveConsoleSessionId
xorps xmm0, xmm0
push str.Kernel32.dll
movlpd qword [0x472560], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x472564
mov dword [0x472560], eax
call fcn.00403870
push 0x453dd0
call fcn.00432597
add esp, 4
push 0x47255c
call fcn.0043223b
add esp, 4
mov ecx, 0x472560
call fcn.004040a0
mov esi, eax
test esi, esi
jne 0x404432
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2068]
xor ecx, esp
call fcn.00432107
mov esp, ebp
pop ebp
ret
push 0
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0x40
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x34], 0x44
call fcn.004342c0
mov eax, 1
mov dword [esp + 0x3c], str.WinSta0Default
add esp, 0xc
mov word [esp + 0x58], ax
cmp dword [ebx + 0x14], 8
mov dword [esp + 0x54], eax
jb 0x404483
mov ebx, dword [ebx]
push 0x2000
lea eax, [esp + 0x74]
push 0
push eax
call fcn.004342c0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40449f
mov edi, dword [edi]
push ebx
push edi
lea eax, [esp + 0x78]
push str._s__s
push eax
call fcn.00404540
mov ebx, dword [esp + 0x20]
add esp, 0x10
test ebx, ebx
mov eax, 0x410
mov ecx, 0x830
cmovne ecx, eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
xor eax, eax
test ebx, ebx
cmovne eax, dword [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
test ebx, ebx
je 0x40450d
push dword [esp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x40451f
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call esi
test edi, edi
mov ecx, dword [esp + 0x2074]
setne al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432107
mov esp, ebp
pop ebp
ret
Function at 0x408cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f870
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00432115
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043139d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aa00
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46ec30]
cmp eax, 0x7fffffff
push ebx
push esi
mov esi, ecx
sete byte [ebp - 0x21]
mov ecx, 0x7530
cmove eax, ecx
push edi
mov dword [0x46ec30], eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40aaf2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
add eax, 0xfffffbe4
cmp eax, 0x14
ja case.0x40aa69.1053
movzx eax, byte [eax + 0x40ab7c]
jmp dword [eax*4 + 0x40ab6c]
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x40aa7d
cmp eax, 3
jne 0x40aab5
mov eax, dword [0x46ec30]
test eax, eax
jle 0x40ab40
sub eax, 0x12c
push 0x12c
mov dword [0x46ec30], eax
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne case.0x40aa69.1052
mov eax, dword [0x46ec30]
mov ecx, 0x1f
jmp 0x40ab45
cmp eax, 4
jne 0x40aac9
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40aa49
cmp eax, 1
je case.0x40aa69.1062
mov eax, dword [0x46ec30]
mov ecx, 0x1f
jmp 0x40ab45
mov eax, dword [0x46ec30]
mov ecx, 0x20
jmp 0x40ab45
mov eax, dword [0x46ec30]
mov ecx, 0x32
jmp 0x40ab45
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x40aaff
cmp eax, 3
jne 0x40ab2e
mov eax, dword [0x46ec30]
test eax, eax
jle 0x40ab40
sub eax, 0x12c
push 0x12c
mov dword [0x46ec30], eax
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x40aaf2
lea ecx, [eax + 0x1f]
mov eax, dword [0x46ec30]
jmp 0x40ab45
xor ecx, ecx
cmp eax, 1
mov eax, dword [0x46ec30]
setne cl
add ecx, 0x1e
jmp 0x40ab45
mov ecx, 0x33
cmp byte [ebp - 0x21], 0
mov edx, 0x7fffffff
pop edi
cmovne eax, edx
mov dword [0x46ec30], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00432107
mov esp, ebp
pop ebp
ret
Function at 0x40aba0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40abdb
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
push 0xf01ff
push dword [0x463a0c]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40ac50
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], 0x3c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 2
push edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0x464268
mov dword [ebp - 0x1c], 0x464268
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40ac45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40ac52
push edi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40ac52
xor bl, bl
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432107
mov esp, ebp
pop ebp
ret
Function at 0x40ac70
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46ec30]
cmp eax, 0x7fffffff
push ebx
push esi
push edi
mov ebx, ecx
sete byte [ebp - 1]
push 3
mov ecx, 0x7530
mov dword [ebp - 8], ebx
push 0
cmove eax, ecx
push 0
mov dword [0x46ec30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40acb3
lea ebx, [eax + 0xb]
jmp 0x40ada0
push 0
push 0
push 0x4644f0
push 0
push 0x464268
push ebx
push 1
push 2
push 0x10
push 4
push dword [0x463a10]
push dword [0x463a0c]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x40ad02
call fcn.0040aba0
movzx ebx, al
neg ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb ebx, ebx
add ebx, 0xb
call esi
jmp 0x40ad9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
jne 0x40ad86
push 3
push dword [0x463a0c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40ad2b
lea ebx, [eax + 0xb]
jmp 0x40ad67
push dword [0x463a10]
push 0
push 0
push 0x4644f0
push 0
push 0x464268
push dword [ebp - 8]
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40ad59
call ebx
jmp 0x40ad62
call fcn.0040aba0
test al, al
jne 0x40ad76
mov ebx, 0xd
test esi, esi
je 0x40ad97
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x40ad9d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xc
call esi
jmp 0x40ad9d
mov ebx, 0x32
cmp eax, 0x430
je 0x40ad97
mov ebx, 0xb
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov ecx, dword [0x46ec30]
mov eax, 0x7fffffff
cmp byte [ebp - 1], 0
pop edi
cmovne ecx, eax
mov eax, ebx
pop esi
mov dword [0x46ec30], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da60
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46ec30]
cmp eax, 0x7fffffff
push ebx
push edi
push 1
mov ebx, 0x7530
sete byte [ebp - 0x22]
push 0
cmove eax, ebx
push 0
mov dword [0x46ec30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40dac8
mov eax, dword [0x46ec30]
mov ecx, 0x7fffffff
cmp byte [ebp - 0x22], 0
cmovne eax, ecx
mov dword [0x46ec30], eax
lea eax, [edi + 0x15]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
push esi
push 0x14
push str.TurboVPNService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40db0e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x46ec30]
mov ecx, 0x7fffffff
cmp byte [ebp - 0x22], 0
cmovne eax, ecx
mov dword [0x46ec30], eax
lea eax, [esi + 0x15]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
mov eax, dword [0x46ec30]
cmp eax, 0x7fffffff
push 0
push 0
cmove eax, ebx
sete byte [ebp - 0x21]
push esi
mov dword [0x46ec30], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40db9b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov eax, dword [0x46ec30]
test eax, eax
jle 0x40db92
sub eax, 0x12c
push 0x12c
mov dword [0x46ec30], eax
call ebx
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40db9b
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x40db40
cmp eax, 4
mov ebx, 0x7fffffff
mov eax, dword [0x46ec30]
je 0x40db89
mov dword [ebp - 0x28], 0x15
jmp 0x40dbd1
mov dword [ebp - 0x28], 0x14
jmp 0x40dbd1
mov dword [ebp - 0x28], 0x33
jmp 0x40dbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x420
je 0x40dbc0
sub eax, 0x10
mov ebx, 0x7fffffff
mov eax, dword [0x46ec30]
jne 0x40db80
mov dword [ebp - 0x28], 0x32
jmp 0x40dbd1
mov eax, dword [0x46ec30]
mov dword [ebp - 0x28], 0x16
mov ebx, 0x7fffffff
cmp byte [ebp - 0x21], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmovne eax, ebx
mov dword [0x46ec30], eax
call esi
push edi
call esi
cmp byte [ebp - 0x22], 0
mov ecx, dword [0x46ec30]
mov eax, dword [ebp - 0x28]
cmovne ecx, ebx
mov dword [0x46ec30], ecx
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00432107
mov esp, ebp
pop ebp
ret
Function at 0x4156c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451192
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0xffffffff
cmp byte [esi + 0x1058], bl
je 0x41576b
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x1058], bl
cmp dword [ebp + 8], ebx
je 0x415856
cmp dword [ebp + 0xc], ebx
je 0x415856
mov edx, dword [esi + 0x1070]
mov eax, edx
mov ecx, dword [esi + 0x106c]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x1068]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + edx*4]
add dword [esi + 0x1074], 0xffffffff
jne 0x41575b
mov dword [esi + 0x1070], ebx
jmp 0x415761
inc dword [esi + 0x1070]
test ecx, ecx
je 0x41576b
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x1074], ebx
je 0x4158b4
mov edi, dword [esi + 0x105c]
cmp edi, 0xffffffff
je 0x415840
mov edx, dword [esi + 0x1070]
mov eax, edx
mov ecx, dword [esi + 0x106c]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x1068]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
lea eax, [esi + 0x1040]
push eax
lea eax, [ebp + 0xc]
add ecx, dword [edx]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4158ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x4158ad
call fcn.0040f710
cmp eax, 2
jg 0x415831
push 2
push 0x1ce
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0xc0]
call fcn.0040e4f0
push edi
add eax, 8
mov dword [ebp - 4], 7
push str.pipe_error:
mov ebx, 0x80
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
test bl, bl
jns 0x415840
lea ecx, [ebp - 0xc0]
call fcn.0040e6b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040f710
cmp eax, 2
jg 0x4158a6
push 2
push 0x1ac
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0xc0]
call fcn.0040e4f0
mov ebx, 8
mov dword [ebp - 4], 3
push esi
add eax, ebx
mov dword [ebp - 0x10], ebx
push str.pipe_error:
push eax
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
test bl, 8
je 0x415840
jmp 0x415835
mov byte [esi + 0x1058], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4158d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4511e1
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [esi + 0x105c]
cmp ecx, 0xffffffff
je 0x415995
lea eax, [esi + 0x1024]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4159ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x4159ae
call fcn.0040f710
cmp eax, 2
jg 0x415985
push 2
push 0x84
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0xc4]
call fcn.0040e4f0
push edi
mov dword [ebp - 4], ebx
add eax, 8
push str.pipe_error:
mov ebx, 1
push eax
mov dword [ebp - 0x14], ebx
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
test bl, 1
je 0x415995
lea ecx, [ebp - 0xc4]
call fcn.0040e6b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi + 0x103c], 1
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45157c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x470584], 0
je 0x417b99
xor al, al
jmp 0x417c59
push 0x18
call fcn.00432115
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417bbc
push 0
mov ecx, eax
call fcn.00416500
jmp 0x417bbe
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x470584], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417bf2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403220
mov ecx, dword [0x470584]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 1
call fcn.00418120
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x417c57
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417c4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c73
push edx
push ecx
call fcn.00432145
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret
call fcn.00436c8f
int3
Function at 0x418c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 8], 0
push edi
test esi, esi
je 0x418c57
call fcn.0041e480
cmp eax, 1
jl 0x418c57
mov dword [ebp + 8], 0x10000
jmp 0x418c59
xor esi, esi
push 8
call fcn.00432115
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp + 8]
mov dword [ebx], ecx
setne cl
push ebx
push 0x418f90
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x418c9f
push 8
push ebx
call fcn.00432145
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
test edi, edi
je 0x418cac
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret

Function at 0x41b3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451bdd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46e224]
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]
lea esi, [edi + 8]
mov dword [edi], eax
mov ecx, esi
mov dword [edi + 4], 0
mov dword [ebp + 8], esi
call fcn.0041aea0
push esi
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.0042b580
push esi
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.0042b580
push esi
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 2
call fcn.0042b580
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x30]
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], eax
call fcn.00401f10
lea esi, [edi + 0x48]
mov byte [ebp - 4], 4
push 0x2c
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 5
push 0x1c
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x64]
mov byte [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push 0x60
mov byte [ebp - 4], 6
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x7c]
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov byte [ebp - 4], 7
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x14
call fcn.00432115
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x8c], eax
mov eax, edi
mov dword [edi + 0x84], 0
mov byte [edi + 0x88], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bad0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ca0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebx + 0x50]
lea ecx, [ebx + 0x50]
mov dword [ebp - 0x10], ecx
mov esi, dword [edi]
cmp esi, edi
je 0x41bb68
mov ebx, ecx
nop
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41bb44
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41bb40
nop word [eax + eax]
cmp esi, dword [eax + 8]
jne 0x41bb40
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41bb30
mov esi, eax
jmp 0x41bb5c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41bb5c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41bb50
mov edi, dword [ebx]
cmp esi, edi
jne 0x41bb10
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push dword [edi + 4]
push ecx
call fcn.0041b1d0
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
lea edi, [ebx + 0x50]
mov dword [edi + 4], 0
mov ecx, dword [ebx + 0x8c]
test ecx, ecx
je 0x41bb92
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebx + 0x7c]
call fcn.0041b8d0
mov eax, dword [ebx + 0x64]
lea esi, [ebx + 0x64]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.0041b2e0
push 0x60
push dword [esi]
call fcn.00432145
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push dword [eax + 4]
push edi
call fcn.0041b1d0
push 0x1c
push dword [edi]
call fcn.00432145
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x48]
add esp, 8
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.0041b250
push 0x2c
push dword [esi]
call fcn.00432145
mov ecx, dword [ebx + 0x44]
add esp, 8
cmp ecx, 0x10
jb 0x41bc1d
mov eax, dword [ebx + 0x30]
inc ecx
cmp ecx, 0x1000
jb 0x41bc13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bc61
mov eax, edx
push ecx
push eax
call fcn.00432145
add esp, 8
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0xf
mov byte [ebx + 0x30], 0
call fcn.00408770
lea ecx, [ebx + 0x24]
call fcn.00408770
lea ecx, [ebx + 0x20]
call fcn.00408770
lea ecx, [ebx + 8]
call fcn.0041aec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00436c8f
int3