Function at 0x403199
Capabilities:
Create process on windows

Disassembly:
push 0x3a4
mov eax, 0x43b8d5
call fcn.004227df
mov eax, edx
mov dword [ebp - 0x350], eax
mov esi, ecx
xor ebx, ebx
mov byte [eax], bl
call fcn.0040212a
test al, al
je 0x4031c9
mov eax, 0x4de
jmp 0x403b26
lea ecx, [ebp - 0x368]
call fcn.00401e2e
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00404a9f
lea ecx, [ebp - 0x368]
mov dword [ebp - 4], ebx
call fcn.0040818b
cmp dword [ebp - 0x298], 0
je 0x403222
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00423cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x40322f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403b19
mov byte [ebp - 0x21c], bl
lea ecx, [ebp - 0x254]
push dword [ebp - 0x21c]
push 4
push str.temp
call fcn.0040760e
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 0x403265
push dword [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x34c]
call fcn.0040760e
add esp, 0xc
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x34c]
lea ecx, [ebp - 0x290]
call fcn.00406a8e
pop ecx
lea ecx, [ebp - 0x34c]
call fcn.0040818b
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.0040818b
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
lea edx, [ebp - 0x290]
mov dword [ebp - 0x238], 0x451b20
lea ecx, [ebp - 0x278]
call fcn.004069a7
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 0x403b0e
test edi, edi
jne 0x403b0e
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call fcn.0040804c
push ecx
push str.__elevated
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.00404d40
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.0040804c
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x4033ba
mov ecx, dword [ebp - 0x254]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x21c], ecx
cmp eax, 0x1000
jb 0x4033b1
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x324]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
call fcn.00421c79
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.0040804c
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x33c], eax
jbe 0x40342e
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
jb 0x403401
mov edx, dword [ebp - 0x290]
cmp dword [ebp - 0x294], 8
lea ecx, [ebp - 0x2a8]
jb 0x403416
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 0x40342e
mov bl, 1
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x403483
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x40347a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
test bl, bl
je 0x403493
mov edi, 0x4de
xor ebx, ebx
jmp 0x403aa0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
jb 0x4034a8
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 0x4034ed
cmp edi, eax
je 0x4034e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403aa0
mov edi, 0x4de
jmp 0x403aa0
cmp edi, 0xffffffff
jne 0x40365f
push ecx
mov edi, str._initialNonSecureSetupPath
lea ecx, [ebp - 0x234]
push edi
call fcn.00404d40
cmp eax, 0xffffffff
jne 0x40365f
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.0040804c
push 0x44aae8
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x398]
call fcn.0040519b
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x380]
call fcn.004051f1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3b0]
mov edx, eax
mov dword [esp], 0x44aae0
call fcn.004051f1
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.00405632
push 0x44aac4
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x368]
call fcn.004051f1
pop ecx
lea ecx, [ebp - 0x234]
cmp ecx, eax
je 0x4035cf
mov byte [ebp - 0x21c], bl
push dword [ebp - 0x21c]
push eax
call fcn.00406f15
lea ecx, [ebp - 0x368]
call fcn.0040818b
lea ecx, [ebp - 0x254]
call fcn.0040818b
lea ecx, [ebp - 0x3b0]
call fcn.0040818b
lea ecx, [ebp - 0x380]
call fcn.0040818b
lea ecx, [ebp - 0x398]
call fcn.0040818b
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x40365f
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x403656
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.00421c79
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.0040685a
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
jb 0x4036b1
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
call fcn.00408e56
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
mov byte [ebp - 0x21c], bl
jb 0x4036dd
mov eax, dword [ebp - 0x26c]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x34c]
push dword [ebp - 0x25c]
push eax
call fcn.0040760e
add esp, 0xc
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2d8]
call fcn.00406a8e
pop ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x10
call fcn.0040818b
lea ecx, [ebp - 0x2d8]
call fcn.00401ec9
mov edi, eax
test edi, edi
jne 0x403a20
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.00406b26
push eax
lea edx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c0]
call fcn.00406a8e
pop ecx
lea ecx, [ebp - 0x398]
mov byte [ebp - 4], 0x14
call fcn.0040818b
lea eax, [ebp - 0x23c]
push eax
push ecx
lea edx, [ebp - 0x2c0]
lea ecx, [ebp - 0x2a8]
call fcn.00406470
mov edi, dword [ebp - 0x23c]
pop ecx
pop ecx
test edi, edi
jne 0x403a15
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004060b8
lea edx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.0040220a
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 0x14
mov edi, eax
call fcn.0040818b
test edi, edi
jne 0x403a15
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.0040804c
push 1
push ecx
push ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x18
call fcn.00405f8e
push eax
lea ecx, [ebp - 0x368]
call fcn.00404a9f
push 0x44aab4
lea edx, [ebp - 0x368]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x380]
call fcn.004051f1
pop ecx
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
jb 0x403878
mov ecx, dword [ebp - 0x234]
push dword [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.004072f9
push eax
lea ecx, [ebp - 0x254]
call fcn.00404a9f
mov byte [ebp - 0x21c], bl
lea eax, [ebp - 0x254]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push eax
call fcn.00406f15
lea ecx, [ebp - 0x254]
call fcn.0040818b
lea ecx, [ebp - 0x380]
call fcn.0040818b
lea ecx, [ebp - 0x368]
call fcn.0040818b
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x403926
mov ecx, dword [ebp - 0x34c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x40391d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.00421c79
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.00423cf0
add esp, 0xc
mov dword [ebp - 0x320], edi
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
jb 0x403961
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
jb 0x403976
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 0x403a0d
push 0xffffffffffffffff
push dword [ebp - 0x334]
mov dword [ebp - 0x324], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4039c1
cmp eax, 0xffffffff
jne 0x4039ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x324], eax
jmp 0x4039ed
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4039e4
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 0x403a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x2c0]
call fcn.0040818b
lea ecx, [ebp - 0x2d8]
call fcn.0040818b
mov eax, dword [ebp - 0x258]
cmp eax, 8
jb 0x403a80
mov ecx, dword [ebp - 0x26c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x21c], ecx
cmp eax, 0x1000
jb 0x403a77
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x324]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
call fcn.00421c79
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 0x403af5
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x324], ecx
cmp eax, 0x1000
jb 0x403aec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x324]
push eax
push ecx
call fcn.00421c79
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.0040818b
lea ecx, [ebp - 0x2a8]
call fcn.0040818b
mov eax, edi
call fcn.0042278e
ret