Function at 0x421360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call fcn.00421020
push 0x486768
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c00
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404bc0
add esp, 0x24
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x4213fd
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404120
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0040c5d0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.00406b20
add esp, 4
mov dword [ebp - 0xa0], str.APPDATA
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x9c], str.HOMEPATH
mov dword [ebp - 0x98], str.USERNAME
mov dword [ebp - 0x94], str.USERPROFILE
mov dword [ebp - 0x90], 0
jne 0x421570
xor edi, edi
mov edx, str.APPDATA
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x4214ab
xor eax, eax
jmp 0x4214b9
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4214b0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004057c0
mov esi, eax
cmp esi, dword [ebp - 0x14]
je 0x4214fa
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x4214e1
mov ecx, dword [ecx]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0043f870
add esp, 8
test eax, eax
jns 0x4214fd
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x42154e
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0xffffffff
ja 0x42163c
cmp ecx, 0x1000
jb 0x421545
test al, 0x1f
jne 0x42163c
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x42163c
sub eax, ecx
cmp eax, 4
jb 0x42163c
cmp eax, 0x23
ja 0x42163c
mov eax, ecx
push eax
call fcn.004314a6
add esp, 4
cmp esi, dword [ebp - 0x14]
je 0x421560
push esi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dae0
mov edx, dword [ebp + edi*4 - 0x9c]
inc edi
test edx, edx
jne 0x421490
push 0x44
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.00434830
add esp, 0xc
mov dword [ebp - 0xe4], 0x44
lea eax, [ebp - 0x30]
mov dword [ebp - 0xdc], 0x486490
xorps xmm0, xmm0
movups xmmword [ebp - 0x8c], xmm0
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4217dc
lea eax, [ebp - 0x2c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x4215e5
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Executing_as_User:__
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x68], 0x10
lea ecx, [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x7c]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push str.__Command_Line:__
push 0x48649c
push eax
call fcn.0040e7e0
mov esi, dword [ebp + 0xc]
add esp, 0x30
cmp dword [esi + 0x14], 0x10
jb 0x421641
mov ecx, dword [esi]
jmp 0x421643
call fcn.00437ad8
mov ecx, esi
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x48664c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x18]
add esp, 0x1c
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x421681
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404120
mov ecx, dword [0x4aa87c]
xor eax, eax
mov dword [ebp + 0x10], eax
lea edi, [eax + 0x20]
test ecx, ecx
je 0x4216aa
push eax
push dword [ebp - 0x30]
lea eax, [ebp + 0x10]
push eax
call ecx
test eax, eax
mov ecx, 0x420
mov eax, dword [ebp + 0x10]
cmovne edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x4216b2
mov esi, dword [esi]
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
push 0
push eax
push edi
push 0
push 0
push 0
push esi
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
test edi, edi
jne 0x4217be
lea eax, [ebp - 0x2c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x421704
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_launch_process_as_interactive_user_
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x64]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486bac
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486dc4
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x48
push str._Error:
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x4217be
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404120
mov eax, dword [0x4aa86c]
test eax, eax
je 0x4217cc
push dword [ebp + 0x10]
call eax
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x421940
lea eax, [ebp - 0x14]
push eax
call fcn.00406de0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x42180e
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.WARNING:_Could_not_duplicate_security_token._Executing_using_CreateProcess:__
push 0x48649c
push eax
call fcn.0040e7e0
mov esi, dword [ebp + 0xc]
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x42183e
mov ecx, dword [esi]
jmp 0x421840
mov ecx, esi
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x48664c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x18]
add esp, 0x1c
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x42187e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404120
cmp dword [esi + 0x14], 0x10
jb 0x421886
mov esi, dword [esi]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xe4]
push eax
push 0
push edi
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42192a
lea eax, [ebp - 0x2c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x4218d0
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_launch_process_as_current_user._Error:
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, 0x10
jb 0x421925
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0x34], eax
test edi, edi
je 0x421937
push edi
call fcn.00432077
add esp, 4
mov edi, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x88]
call esi
push dword [ebp - 0x8c]
call esi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xb
push dword [eax]
lea eax, [ebp + 0x10]
push eax
call fcn.0040d9f0
push dword [ebp - 0x14]
call fcn.004314a6
mov eax, dword [ebp - 0x68]
add esp, 4
cmp eax, 0x10
jb 0x421986
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00404120
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
cmp eax, 0x10
jb 0x4219ad
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00404120
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp eax, 0x10
jb 0x4219d4
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret