Function at 0x420fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1523
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
push ebx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4213f9
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x4213f9
xor eax, eax
push 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x128]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x12c], ebx
call fcn.0047f860
add esp, 0xc
call fcn.0041a0d0
test al, al
jne 0x4210d7
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.00420c40
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4210ca
push 0x9d
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00405810
mov ecx, str.fail_GetProcessIL:
mov esi, eax
call fcn.0041e090
cmp eax, ebx
je 0x4210a4
push edi
add eax, 0x20
push eax
call fcn.0040a3e8
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
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 - 0x1c], 0x2000
ja 0x42118e
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x12c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x421168
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0xab
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
mov edi, eax
call fcn.00414f70
push str.failed_to_CreateProcessW
push ecx
mov esi, eax
mov dword [ebp - 4], 2
call fcn.00405810
add esp, 4
mov esi, eax
call fcn.00405900
test eax, eax
je 0x421142
push edi
add eax, 0x20
push eax
call fcn.0040a3e8
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
call ebx
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 edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
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]
cmp eax, ebx
jne 0x4211d5
push 0xb8
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
push str.failed_to_load_advapi32
push ecx
mov esi, eax
mov dword [ebp - 4], 3
call fcn.00405810
add esp, 4
mov esi, eax
call fcn.00405900
jmp 0x42144c
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x421216
push 0xc1
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], 4
call fcn.00405810
mov esi, eax
call fcn.00421a10
jmp 0x42144c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], 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.00404447
mov ecx, esi
call fcn.00420a80
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x421298
push 0xcf
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], 5
call fcn.00405810
mov ecx, str.failed_to_GetProcessHandleByName
mov esi, eax
call fcn.0041e090
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
jmp 0x4213bc
lea eax, [ebp - 0x18]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4212ef
push 0xd5
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], 6
call fcn.00405810
mov ecx, str.failed_to_OpenProcessToken
mov esi, eax
call fcn.0041e090
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
jmp 0x4213bc
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 1
push 2
push 0
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x421336
push 0xdb
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], 7
call fcn.00405810
mov ecx, str.failed_to_DuplicateTokenEx
jmp 0x4212d1
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0
push edx
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x4213a2
push 0xe1
push str.netboxprocess.cpp
lea esi, [ebp - 0x1e4]
call fcn.00414f70
push str.failed_to_f_CreateProcessWithTokenW
push ecx
mov esi, eax
mov dword [ebp - 4], 8
call fcn.00405810
add esp, 4
mov esi, eax
call fcn.00405900
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
jmp 0x4213bc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4213d4
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4213de
push eax
call ebx
test edi, edi
je 0x4213e5
push edi
call ebx
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
push 0x8a
push str.netboxprocess.cpp
lea esi, [ebp - 0xe4]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x42144c
lea edi, [esi + 0x10]
cmp edi, ebx
je 0x421423
lea eax, [esi + 0x20]
jmp 0x421425
xor eax, eax
push str.ERROR:
push eax
call fcn.00407256
add esp, 8
cmp edi, ebx
je 0x42143c
lea eax, [esi + 0x20]
jmp 0x42143e
xor eax, eax
push str.incorrect_parameters
push eax
call fcn.00407256
add esp, 8
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
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