Function at 0x4031da
Capabilities:
Create process on windows

Disassembly:
push 0x3a4
mov eax, 0x437fe5
call fcn.0041ef0f
mov eax, edx
mov dword [ebp - 0x350], eax
mov esi, ecx
xor ebx, ebx
mov byte [eax], bl
call fcn.004020ca
test al, al
je 0x403162
mov eax, 0x4de
jmp 0x403abf
lea ecx, [ebp - 0x368]
call fcn.00401dce
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00404a3f
lea ecx, [ebp - 0x368]
mov dword [ebp - 4], ebx
call fcn.0040812b
cmp dword [ebp - 0x298], 0
je 0x4031bb
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00420400
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x4031c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403ab2
mov byte [ebp - 0x21c], bl
lea ecx, [ebp - 0x254]
push dword [ebp - 0x21c]
push 4
push str.temp
call fcn.004075ae
add esp, 0xc
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 1
mov ecx, edi
mov byte [ebp - 0x21c], bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4031fe
push dword [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x34c]
call fcn.004075ae
add esp, 0xc
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x34c]
lea ecx, [ebp - 0x290]
call fcn.00406a2e
pop ecx
lea ecx, [ebp - 0x34c]
call fcn.0040812b
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.0040812b
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
lea edx, [ebp - 0x290]
mov dword [ebp - 0x238], 0x44db20
lea ecx, [ebp - 0x278]
call fcn.00406947
mov edi, dword [ebp - 0x23c]
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x274], eax
cmp ecx, 3
jne 0x403aa7
test edi, edi
jne 0x403aa7
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call fcn.00407fec
push ecx
push str.__elevated
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.00404ce0
mov edi, eax
mov dword [ebp - 0x254], ebx
lea eax, [ebp - 0x290]
mov dword [ebp - 0x244], ebx
push eax
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], ebx
call fcn.00407fec
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x403353
mov ecx, dword [ebp - 0x254]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x21c], ecx
cmp eax, 0x1000
jb 0x40334a
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x324]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x34c], ebx
push eax
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], ebx
call fcn.00407fec
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x33c], eax
jbe 0x4033c7
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
jb 0x40339a
mov edx, dword [ebp - 0x290]
cmp dword [ebp - 0x294], 8
lea ecx, [ebp - 0x2a8]
jb 0x4033af
mov ecx, dword [ebp - 0x2a8]
push eax
push edx
push eax
push ecx
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x4033c7
mov bl, 1
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x40341c
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x403413
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
test bl, bl
je 0x40342c
mov edi, 0x4de
xor ebx, ebx
jmp 0x403a39
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
jb 0x403441
mov eax, dword [ebp - 0x290]
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x274], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x403486
cmp edi, eax
je 0x40347c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403a39
mov edi, 0x4de
jmp 0x403a39
cmp edi, 0xffffffff
jne 0x4035f8
push ecx
mov edi, str._initialNonSecureSetupPath
lea ecx, [ebp - 0x234]
push edi
call fcn.00404ce0
cmp eax, 0xffffffff
jne 0x4035f8
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x34c], ebx
push eax
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], ebx
call fcn.00407fec
push 0x446a60
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x398]
call fcn.0040513b
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x380]
call fcn.00405191
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3b0]
mov edx, eax
mov dword [esp], 0x446a58
call fcn.00405191
pop ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xb
push ecx
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x254]
call fcn.004055d2
push 0x446a3c
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x368]
call fcn.00405191
pop ecx
lea ecx, [ebp - 0x234]
cmp ecx, eax
je 0x403568
mov byte [ebp - 0x21c], bl
push dword [ebp - 0x21c]
push eax
call fcn.00406eb5
lea ecx, [ebp - 0x368]
call fcn.0040812b
lea ecx, [ebp - 0x254]
call fcn.0040812b
lea ecx, [ebp - 0x3b0]
call fcn.0040812b
lea ecx, [ebp - 0x380]
call fcn.0040812b
lea ecx, [ebp - 0x398]
call fcn.0040812b
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x4035f8
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x4035ef
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
push ebx
mov byte [ebp - 0x21c], bl
lea ecx, [ebp - 0x26c]
push dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x26c], ebx
push 0x20
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.004067fa
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
jb 0x40364a
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
call fcn.00408df6
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
mov byte [ebp - 0x21c], bl
jb 0x403676
mov eax, dword [ebp - 0x26c]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x34c]
push dword [ebp - 0x25c]
push eax
call fcn.004075ae
add esp, 0xc
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2d8]
call fcn.00406a2e
pop ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x10
call fcn.0040812b
lea ecx, [ebp - 0x2d8]
call fcn.00401e69
mov edi, eax
test edi, edi
jne 0x4039b9
lea edi, [ebp - 0x248]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2d8]
lea edx, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], ebx
lea eax, [ebp - 0x398]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00406ac6
push eax
lea edx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c0]
call fcn.00406a2e
pop ecx
lea ecx, [ebp - 0x398]
mov byte [ebp - 4], 0x14
call fcn.0040812b
lea eax, [ebp - 0x23c]
push eax
push ecx
lea edx, [ebp - 0x2c0]
lea ecx, [ebp - 0x2a8]
call fcn.00406410
mov edi, dword [ebp - 0x23c]
pop ecx
pop ecx
test edi, edi
jne 0x4039ae
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00406058
lea edx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.004021a3
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 0x14
mov edi, eax
call fcn.0040812b
test edi, edi
jne 0x4039ae
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x34c], ebx
push eax
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], ebx
call fcn.00407fec
push 1
push ecx
push ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x18
call fcn.00405f2e
push eax
lea ecx, [ebp - 0x368]
call fcn.00404a3f
push 0x446a2c
lea edx, [ebp - 0x368]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x380]
call fcn.00405191
pop ecx
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
jb 0x403811
mov ecx, dword [ebp - 0x234]
push dword [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.00407299
push eax
lea ecx, [ebp - 0x254]
call fcn.00404a3f
mov byte [ebp - 0x21c], bl
lea eax, [ebp - 0x254]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push eax
call fcn.00406eb5
lea ecx, [ebp - 0x254]
call fcn.0040812b
lea ecx, [ebp - 0x380]
call fcn.0040812b
lea ecx, [ebp - 0x368]
call fcn.0040812b
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x4038bf
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x4038b6
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x334]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x320]
pop edi
push edi
push ebx
push eax
call fcn.00420400
add esp, 0xc
mov dword [ebp - 0x320], edi
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
jb 0x4038fa
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
jb 0x40390f
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 0x334]
push edx
lea edx, [ebp - 0x320]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4039a6
push 0xffffffffffffffff
push dword [ebp - 0x334]
mov dword [ebp - 0x324], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40395a
cmp eax, 0xffffffff
jne 0x403986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x324], eax
jmp 0x403986
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40397d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x350]
mov byte [eax], 1
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x324]
jmp 0x4039ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x2c0]
call fcn.0040812b
lea ecx, [ebp - 0x2d8]
call fcn.0040812b
mov eax, dword [ebp - 0x258]
cmp eax, 8
jb 0x403a19
mov ecx, dword [ebp - 0x26c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x21c], ecx
cmp eax, 0x1000
jb 0x403a10
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x324]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x25c], ebx
push esi
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x403a8e
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x403a85
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x290]
call fcn.0040812b
lea ecx, [ebp - 0x2a8]
call fcn.0040812b
mov eax, edi
call fcn.0041eebe
ret