Function at 0x4b3870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x64786c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x444], 0
push 0x10
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00597130
add esp, 0xc
mov dword [ebp - 0x4a4], 0
push 0x400
lea ecx, [ebp - 0x43e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x28], eax
mov edx, 0x22
mov word [ebp - 0x440], dx
mov eax, 0x22
mov ecx, dword [ebp - 0x28]
mov word [ebp + ecx*2 - 0x43e], ax
mov edx, 0x20
mov eax, dword [ebp - 0x28]
mov word [ebp + eax*2 - 0x43c], dx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
lea eax, [ebp + edx*2 - 0x43a]
push eax
call fcn.00599885
add esp, 8
push 0x44
push 0
lea ecx, [ebp - 0x498]
push ecx
call fcn.00597130
add esp, 0xc
mov dword [ebp - 0x498], 0x44
mov dword [ebp - 8], 0x20
mov dword [ebp - 0x490], str.winsta0default
mov dword [ebp - 0x44c], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4b39af
cmp dword [0x653730], 3
jg 0x4b39a8
push str.OpenProcessToken_err
push 0x3d6
push 0x5c0e2c
push 3
call fcn.00401320
add esp, 0x10
xor eax, eax
jmp 0x4b3ba3
lea eax, [ebp - 0x4a0]
push eax
push 1
push 0
push 0
push 0x2000000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4b3a08
cmp dword [ebp - 0x14], 0
je 0x4b39df
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x653730], 3
jg 0x4b3a01
push 0x5c0e3c
push 0x3dd
push 0x5c0e54
push 3
call fcn.00401320
add esp, 0x10
xor eax, eax
jmp 0x4b3ba3
push 4
lea eax, [ebp + 8]
push eax
push 0xc
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4b3a70
cmp dword [ebp - 0x14], 0
je 0x4b3a31
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4a0], 0
je 0x4b3a47
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x653730], 3
jg 0x4b3a69
push str.SetTokenInformation_err
push 0x3e5
push 0x5c0e7c
push 3
call fcn.00401320
add esp, 0x10
xor eax, eax
jmp 0x4b3ba3
push 1
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4b3a89
jmp 0x4b3a94
mov eax, dword [ebp - 8]
or eax, 0x400
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4a8], 0
jmp 0x4b3ab6
mov ecx, dword [ebp - 0x4a8]
add ecx, 1
mov dword [ebp - 0x4a8], ecx
cmp dword [ebp - 0x4a8], 5
jge 0x4b3b4d
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x498]
push eax
push 0
mov ecx, dword [ebp - 0x444]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x440]
push eax
push 0
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b3b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x4b3b34
mov dword [ebp + 8], 0
push 4
lea edx, [ebp + 8]
push edx
push 0xc
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4b3b2f
jmp 0x4b3b4d
jmp 0x4b3aa7
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b3aa7
jmp 0x4b3b4d
cmp dword [ebp - 0x14], 0
je 0x4b3b5d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4a0], 0
je 0x4b3b73
mov edx, dword [ebp - 0x4a0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x4b3b8a
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x444], 0
je 0x4b3ba0
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0059709c
mov esp, ebp
pop ebp
ret