Function at 0x401820
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
jmp 0x4038c0
push 0xffffffffffffffff
push 0x4673f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
push ebx
push esi
mov esi, ecx
push str.Create_process_to_run_kernel.exe..._r_n
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
xor ebx, ebx
push ebx
push 2
push eax
mov dword [esp + 0x2c0], ebx
call fcn.004012d0
add esp, 0xc
lea ecx, [esp + 0x14]
push esi
call sub.MFC42u.DLL_CString::CString_1
push 0x475b14
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b8], 1
call fcn.0041c0dc
mov ecx, dword [0x47b134]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_2
push 0x475c34
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b8], 2
call fcn.0041c0dc
mov edx, dword [0x47b184]
cmp dword [edx - 8], ebx
je 0x403965
push 0x47b184
lea ecx, [esp + 0x14]
call fcn.0041c0e8
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xaa]
mov word [esp + 0xa8], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x10]
push ecx
push str._s_..._r_n
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b8], 3
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b8], 4
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b8], 5
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b8], 6
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x48]
mov byte [esp + 0x2b8], 7
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b8], 8
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b8], 9
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x2b8], 0xa
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xa8]
mov byte [esp + 0x2b8], 0xb
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
mov byte [esp + 0x2c4], 0xc
call fcn.00435bb0
add esp, 0xc
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x2b8], 0xb
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
je 0x403b04
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00401212
add esp, 0xc
mov eax, dword [esp + 0xc]
mov byte [esp + 0x2b8], 0xd
cmp dword [eax - 8], ebx
je 0x403af3
push 0x475c10
lea ecx, [esp + 0x18]
call fcn.0041c0dc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c0e8
push 0x475c0c
lea ecx, [esp + 0x18]
call fcn.0041c0dc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2b8], 0xb
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x64], 0x44
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
xor edx, edx
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
push ecx
push ebx
mov dword [esp + 0x68], edx
push ebx
push ebx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x28]
push ebx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
pop edi
jne 0x403b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push 0x475b94
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
push ebx
push 1
push edx
call fcn.004012d0
add esp, 0x18
lea eax, [esp + 8]
mov dword [esp + 8], 5
push 0x46ee50
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x84
push 0x81
call fcn.00401825
mov ecx, dword [esp + 0x58]
add esp, 8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Wait_for_Process_failed__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
push ebx
push 1
push eax
call fcn.004012d0
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 8], 2
push 0x46ee50
push ecx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x2b4], 0x13
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b4], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b4], 0xf
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2b4], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2ac]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b0
ret