Function at 0x30009220
Capabilities:
Create process on windows
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8cc
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x864], edi
mov dword [ebp - 0x868], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x30009562
mov ebx, dword [0x30273230]
test ebx, ebx
je 0x3000926b
mov edi, edi
cmp dword [ebx], esi
je 0x30009295
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
jne 0x30009260
xor ebx, ebx
cmp dword [0x30270308], 0
je 0x300092c7
push esi
push str.ProcessMessage:_Skipping_monitoring_process__d_as_single_process_mode_set.
call fcn.30009b40
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x300092a2
mov edi, dword [ebx + 8]
mov dword [ebp - 0x864], edi
cmp dword [ebx + 0x28], 0
je 0x3000926d
push esi
push str.ProcessMessage:_Skipping_monitoring_process__d
call fcn.30009b40
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
cmp dword [0x30270314], 0
je 0x30009553
mov eax, dword [str.loader.exe]
lea edi, [ebp - 0x3c]
mov ecx, 7
mov dword [ebp - 0x1c], eax
mov eax, dword [0x301f5988]
mov esi, str.loader_x64.exe
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [0x301f598c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x301f5990]
mov dword [ebp - 0x10], eax
mov eax, dword [0x301f5994]
mov dword [ebp - 0xc], eax
mov ax, word [0x301f5998]
push 0x44
mov word [ebp - 8], ax
lea eax, [ebp - 0x8c4]
push 0
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x8c8], 0x48
call fcn.30162560
mov edx, dword [0x30272504]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x30009340
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 1]
push eax
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.30169d16
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test ebx, ebx
je 0x300093b2
mov eax, dword [ebx + 4]
test eax, eax
je 0x300093b2
mov esi, dword [ebp - 0x868]
lea ecx, [ebp - 0x86c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x300093e9
push esi
push str.ProcessMessage:_IsWow64Process_failed_for_process__d__standalone_mode_
call fcn.30009b60
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x868]
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x30009381
push esi
push str.ProcessMessage:_Unable_to_open_handle_to_process__d__standalone_mode_
call fcn.30009b40
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x86c], 0
je 0x300093f7
lea eax, [ebp - 0x3c]
jmp 0x30009461
push 0x302739a0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [0x302739a0], 9
jne 0x3000945e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x248]
push eax
push str._ws_ws
lea eax, [ebp - 0x450]
push 0x104
push eax
call fcn.300081b0
add esp, 0x14
lea eax, [ebp - 0x248]
push str.capemon_x64.dll
push eax
push str._ws_ws
lea eax, [ebp - 0x860]
push 0x104
push eax
call fcn.300081b0
add esp, 0x14
lea eax, [ebp - 0x860]
push eax
jmp 0x30009488
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x248]
push eax
push str._ws_ws
lea eax, [ebp - 0x450]
push 0x104
push eax
call fcn.300081b0
add esp, 0x14
push dword [0x30272504]
push dword [ebp - 0x864]
lea eax, [ebp - 0x450]
push esi
push eax
push str._s_inject__u__u__s
lea eax, [ebp - 0x658]
push 0x104
push eax
call fcn.300081f0
add esp, 0x1c
call fcn.300293b0
mov dword [eax], 1
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x8c8]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x658]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
test eax, eax
je 0x3000952a
push str.ProcessMessage:_Injected_monitor_into_process__u__standalone_mode_
call fcn.30009b40
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 0x87c]
call esi
push dword [ebp - 0x878]
call esi
call fcn.300293b0
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push str.ProcessMessage:_Failed_to_inject_monitor_into_process__d__standalone_mode_
call fcn.30009b40
add esp, 8
call fcn.300293b0
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push edi
push esi
push str.PROCESS:0:_d__d
call fcn.3004f500
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret