Function at 0x42b230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533223
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
cmp ebx, edi
je 0x42b6d2
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x42b6d2
xor eax, eax
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x124]
push edi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x128], edi
call fcn.004fbb00
add esp, 0xc
call fcn.00425f10
test al, al
jne 0x42b343
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.0042ae60
mov edi, eax
add esp, 4
test edi, edi
je 0x42b334
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xce
lea edx, [ebp - 0xe0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00405fba
mov ecx, str.fail_GetProcessIL:
mov esi, eax
call fcn.004289e0
test eax, eax
je 0x42b30e
push edi
add eax, 0x20
push eax
call fcn.00422730
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 0x2000
ja 0x42b3e9
xor edi, edi
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42b3c6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0xdc
lea eax, [ebp - 0xe0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
push str.failed_to_CreateProcessW
push ecx
mov esi, eax
mov dword [ebp - 4], 2
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
mov dword [ebx], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x42b438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe9
lea eax, [ebp - 0xe0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
push str.failed_to_load_advapi32
push ecx
mov esi, eax
mov dword [ebp - 4], 3
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
jmp 0x42b72d
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x42b481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf2
lea ecx, [ebp - 0xe0]
push ecx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 4
call fcn.00405fba
mov esi, eax
call fcn.0042bd90
jmp 0x42b72d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xc
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov esi, 0x400
mov word [ecx], dx
call fcn.00404bd5
mov ecx, esi
call fcn.0042ace0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x42b50e
call edi
push eax
push 0x100
lea eax, [ebp - 0xe0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 5
call fcn.00405fba
mov ecx, str.failed_to_GetProcessHandleByName
mov esi, eax
call fcn.004289e0
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42b696
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42b569
call edi
push eax
push 0x106
lea edx, [ebp - 0xe0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 6
call fcn.00405fba
mov ecx, str.failed_to_OpenProcessToken
mov esi, eax
call fcn.004289e0
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42b696
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 1
push 2
push 0
push 0xf01ff
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x42b5b4
call edi
push eax
push 0x10c
lea edx, [ebp - 0xe0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 7
call fcn.00405fba
mov ecx, str.failed_to_DuplicateTokenEx
jmp 0x42b54b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 0
push edx
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
call ebx
test eax, eax
jne 0x42b67c
call edi
push eax
push 0x112
lea eax, [ebp - 0x1e0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
push str._u16_CmdLine:
push ecx
mov esi, eax
mov dword [ebp - 4], 8
call fcn.00405fba
mov ecx, str.failed_to_f_CreateProcessWithTokenW_u16_Path:
mov esi, eax
call fcn.004289e0
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405fde
add esp, 4
mov esi, eax
call fcn.00406075
mov esi, eax
test esi, esi
je 0x42b64d
lea ecx, [esi + 0x10]
test ecx, ecx
je 0x42b63e
lea eax, [esi + 0x20]
jmp 0x42b640
xor eax, eax
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.00407c44
add esp, 8
push str._h_Token2:
call fcn.00406075
test eax, eax
je 0x42b668
mov ecx, dword [ebp - 0x14]
push ecx
add eax, 0x20
push eax
call fcn.00428d50
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42b696
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42b6aa
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42b6b4
push eax
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42b6be
push eax
call edi
mov eax, esi
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 dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xbb
lea edx, [ebp - 0xe0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, edi
je 0x42b72d
lea ebx, [esi + 0x10]
cmp ebx, edi
je 0x42b704
lea eax, [esi + 0x20]
jmp 0x42b706
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
cmp ebx, edi
je 0x42b71d
lea eax, [esi + 0x20]
jmp 0x42b71f
xor eax, eax
push str.incorrect_parameters
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret