Function at 0x41fe20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4851e0
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xe4]
push str.Wow64DisableWow64FsRedirection
xor edi, edi
push str.kernel32
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x4c], eax
cmp eax, edi
je 0x41fe8b
lea ecx, [esp + 0x50]
push ecx
call eax
mov dword [esp + 0xd8], edi
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41feac
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xd8], 1
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41fede
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xd8], 2
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ff10
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xd8], 3
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ff42
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xd8], 4
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ff74
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0xd8], 5
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ffa6
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 1
lea ecx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
mov byte [esp + 0xe4], 6
push str.strProcessPath
mov dword [esp + 0x24], edi
call fcn.00401ed0
mov edx, dword [esp + 0xec]
push edx
mov edi, ebp
mov ebx, esi
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x42011f
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
mov byte [esp + 0xd8], 7
push eax
mov ecx, ebp
call fcn.00407570
mov byte [esp + 0xd8], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42003d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xe8]
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42009a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 0
jmp 0x420817
push 1
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.strCmdLine
call fcn.00401ed0
mov edx, dword [esp + 0xec]
push edx
mov edi, ebp
mov ebx, esi
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x42016b
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
mov byte [esp + 0xd8], 8
jmp 0x42000d
push 1
lea ecx, [esp + 0x2c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.bShow
call fcn.00401ed0
mov edx, dword [esp + 0xec]
push edx
mov edi, ebp
mov ebx, esi
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4201b7
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
mov byte [esp + 0xd8], 9
jmp 0x42000d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00461856
add esp, 4
push 1
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.bWaitForProcess
mov esi, eax
call fcn.00401ed0
mov eax, dword [esp + 0xec]
push eax
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x420210
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
mov byte [esp + 0xd8], 0xa
jmp 0x42000d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00461856
add esp, 4
push 1
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.iWaitTime
mov dword [esp + 0x4c], eax
call fcn.00401ed0
mov eax, dword [esp + 0xec]
push eax
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x42026b
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
mov byte [esp + 0xd8], 0xb
jmp 0x42000d
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.DWORD
call fcn.00401ed0
mov byte [esp + 0xe0], 0xc
mov edi, dword [esp + 0x3c]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x44], esp
mov dword [esp + 0x44], esp
mov dword [esp + 0x54], edi
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4202c1
cmp eax, dword [edi]
jne 0x4202c1
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4202fd
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x4202da
call fcn.004303e0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00461715
add esp, 0x10
mov ecx, dword [esp + 0x44]
add ebx, 0x10
mov dword [ecx], ebx
mov byte [esp + 0xe4], 6
call fcn.0043eb10
add esp, 0xc
push 1
lea edx, [esp + 0x34]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.iSystemBits
call fcn.00401ed0
mov eax, dword [esp + 0xec]
mov ebx, dword [esp + 0xf0]
push eax
mov edi, ebp
call fcn.0042e350
xor ebx, ebx
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x4203be
mov edi, 0xa0000001
lea esi, [esp + 0x14]
call fcn.00414000
push eax
mov ecx, ebp
mov byte [esp + 0xdc], 0xd
call fcn.00407570
mov byte [esp + 0xd8], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xe8]
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [ecx], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x420767
mov ebp, dword [esp + 0x30]
push ebp
call fcn.00461856
add esp, 4
mov edi, eax
cmp dword [0x4a657c], ebx
je 0x42041e
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x420418
lea ecx, [esp + 0xac]
push ecx
call eax
mov ax, word [esp + 0xac]
cmp ax, 9
je 0x42040e
cmp ax, 6
jne 0x420418
mov dword [0x4a99d4], 1
mov dword [0x4a657c], ebx
cmp edi, ebx
je 0x42042f
cmp edi, 1
jne 0x420449
cmp dword [0x4a99d4], ebx
jne 0x420456
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42047b
push 0x80004005
call fcn.00401fc0
cmp edi, 2
jne 0x420456
cmp dword [0x4a99d4], ebx
jne 0x42042f
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 1
mov byte [esp + 0xd8], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x420767
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
push 0x40
mov byte [esp + 0xdc], 0xe
xor eax, eax
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.00464a00
add esp, 0xc
neg esi
sbb esi, esi
and esi, 5
lea ebx, [esp + 0x18]
mov dword [esp + 0x64], 0x44
mov word [esp + 0x94], si
mov dword [esp + 0x90], 1
call fcn.0040f4b0
mov ebx, eax
call fcn.0040f530
lea ebx, [esp + 0x1c]
call fcn.0040f4b0
mov ebx, eax
call fcn.0040f530
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x420576
cmp dword [edx - 0xc], ebx
je 0x420523
push edx
push ecx
lea edx, [esp + 0x34]
push str.__s___s
push edx
call fcn.00403800
add esp, 0x10
jmp 0x420589
cmp eax, ebx
je 0x420576
lea edx, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp edx, esi
je 0x42058d
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x420569
mov ebp, dword [edx]
cmp ebp, dword [esi]
jne 0x420569
push edx
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x420560
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x2c], ebp
jmp 0x42058d
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.00401da0
jmp 0x420589
cmp dword [edx - 0xc], ebx
je 0x42058d
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.00407570
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x42066d
lea edx, [esp + 0x38]
push edx
push 0xf01ff
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x38]
push 1
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp dword [ebp - 4], 1
jle 0x4205e0
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [esp + 0x30]
call fcn.00401c30
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x68]
push ecx
push ebx
push edx
push 0x400
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x420656
cmp dword [esp + 0x3c], ebx
je 0x420635
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420635
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], 0xa0000005
mov edx, dword [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x58]
push eax
call edi
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x420671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x420671
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x4206fe
cmp dword [esp + 0x40], 0xa0000005
mov edx, dword [esp + 0xe8]
jne 0x420692
mov dword [edx], 1
jmp 0x42069e
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x14]
call fcn.00414000
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0xec]
mov byte [esp + 0xd8], 0xf
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
push ecx
push ebp
push eax
push edx
call fcn.00403800
mov byte [esp + 0xe8], 0xe
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420727
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420727
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe0]
mov dword [ecx], 2
mov eax, dword [edx + 0x30]
push ebp
push eax
mov eax, dword [esp + 0xf4]
push eax
call fcn.00403800
add esp, 0xc
lea eax, [ebp - 0x10]
mov byte [esp + 0xd8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42074b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0xd8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420837
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd8], 0xffffffff
cmp dword [esp + 0x4c], 0
je 0x42086b
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42086b
mov ecx, dword [esp + 0x50]
push ecx
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret