Function at 0x402a28
Capabilities:
Create process on windows

Disassembly:
push 0x3a4
mov eax, 0x43cdeb
call fcn.0043c0ef
mov eax, edx
mov dword [ebp - 0x34c], eax
mov esi, ecx
xor ebx, ebx
mov byte [eax], bl
call fcn.0040186a
test al, al
je 0x402a58
mov eax, 0x4de
jmp 0x4033d3
lea ecx, [ebp - 0x2d8]
call fcn.0040156e
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040435b
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 4], ebx
call fcn.0040794e
cmp dword [ebp - 0x298], 0
je 0x402ab1
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00422e80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x402abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4033c6
mov byte [ebp - 0x33c], bl
lea ecx, [ebp - 0x260]
push dword [ebp - 0x33c]
push 4
push str.temp
call fcn.00406dc6
add esp, 0xc
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 1
mov ecx, edi
mov byte [ebp - 0x33c], bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402af4
push dword [ebp - 0x33c]
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.00406dc6
add esp, 0xc
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x290]
call fcn.0040625d
pop ecx
lea ecx, [ebp - 0x230]
call fcn.0040794e
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0040794e
lea eax, [ebp - 0x348]
mov dword [ebp - 0x348], ebx
push eax
lea edx, [ebp - 0x290]
mov dword [ebp - 0x344], 0x452b10
lea ecx, [ebp - 0x358]
call fcn.0040617b
mov edi, dword [ebp - 0x348]
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x354], eax
cmp ecx, 3
jne 0x4033bb
test edi, edi
jne 0x4033bb
push esi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
call fcn.004077fc
push ecx
push str.__elevated
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.004045f5
mov edi, eax
mov dword [ebp - 0x260], ebx
lea eax, [ebp - 0x290]
mov dword [ebp - 0x250], ebx
push eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], ebx
call fcn.004077fc
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x402c49
mov ecx, dword [ebp - 0x260]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], ecx
cmp eax, 0x1000
jb 0x402c40
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x340]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x33c]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x230], ebx
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.004077fc
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x220], eax
jbe 0x402cbd
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
jb 0x402c90
mov edx, dword [ebp - 0x290]
cmp dword [ebp - 0x294], 8
lea ecx, [ebp - 0x2a8]
jb 0x402ca5
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 0x402cbd
mov bl, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x402d12
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], ecx
cmp eax, 0x1000
jb 0x402d09
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x33c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x340]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
test bl, bl
je 0x402d22
mov edi, 0x4de
xor ebx, ebx
jmp 0x40334d
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
jb 0x402d37
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 - 0x354], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x402d7c
cmp edi, eax
je 0x402d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40334d
mov edi, 0x4de
jmp 0x40334d
cmp edi, 0xffffffff
jne 0x402eee
push ecx
mov edi, str._initialNonSecureSetupPath
lea ecx, [ebp - 0x248]
push edi
call fcn.004045f5
cmp eax, 0xffffffff
jne 0x402eee
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x230], ebx
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.004077fc
push 0x44b4d8
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x320]
call fcn.00404a12
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x308]
call fcn.00404a68
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x338]
mov edx, eax
mov dword [esp], 0x44b4d0
call fcn.00404a68
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
push ecx
push eax
push dword [ebp - 0x354]
lea ecx, [ebp - 0x260]
call fcn.00404e8c
push 0x44b4b4
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2d8]
call fcn.00404a68
pop ecx
lea ecx, [ebp - 0x248]
cmp ecx, eax
je 0x402e5e
mov byte [ebp - 0x33c], bl
push dword [ebp - 0x33c]
push eax
call fcn.004066f5
lea ecx, [ebp - 0x2d8]
call fcn.0040794e
lea ecx, [ebp - 0x260]
call fcn.0040794e
lea ecx, [ebp - 0x338]
call fcn.0040794e
lea ecx, [ebp - 0x308]
call fcn.0040794e
lea ecx, [ebp - 0x320]
call fcn.0040794e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x402eee
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], ecx
cmp eax, 0x1000
jb 0x402ee5
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x33c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x340]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
push 7
mov dword [ebp - 0x278], ebx
xor eax, eax
mov dword [ebp - 0x268], ebx
pop ebx
push 0x7ffffffe
push ebx
push 0x20
mov dword [ebp - 0x264], ebx
pop ebx
push ebx
mov word [ebp - 0x278], ax
call fcn.00406cc7
mov edi, eax
add esp, 0xc
lea ecx, [edi + 1]
push ecx
lea ecx, [ebp - 0x278]
call fcn.004077dc
mov edx, eax
mov dword [ebp - 0x264], edi
push 0x10
xor eax, eax
mov dword [ebp - 0x268], ebx
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x40], ax
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
jb 0x402f65
mov eax, edx
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
call fcn.0040879e
xor ebx, ebx
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
mov byte [ebp - 0x33c], bl
jb 0x402f93
mov eax, dword [ebp - 0x278]
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x268]
push eax
call fcn.00406dc6
add esp, 0xc
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2f0]
call fcn.0040625d
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x10
call fcn.0040794e
lea ecx, [ebp - 0x2f0]
call fcn.00401609
mov edi, eax
test edi, edi
jne 0x4032cd
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x24c], ebx
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], ecx
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004062f7
push eax
lea edx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c0]
call fcn.0040625d
pop ecx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0x14
call fcn.0040794e
lea eax, [ebp - 0x348]
push eax
push ecx
lea edx, [ebp - 0x2c0]
lea ecx, [ebp - 0x2a8]
call fcn.00405c7a
mov edi, dword [ebp - 0x348]
pop ecx
pop ecx
test edi, edi
jne 0x4032c2
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004058cc
lea edx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.0040194a
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 0x14
mov edi, eax
call fcn.0040794e
test edi, edi
jne 0x4032c2
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x230], ebx
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.004077fc
push 1
push ecx
push ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x18
call fcn.004057a3
push eax
lea ecx, [ebp - 0x2d8]
call fcn.0040435b
push 0x44b4a4
lea edx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x308]
call fcn.00404a68
pop ecx
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
jb 0x403125
mov ecx, dword [ebp - 0x248]
push dword [ebp - 0x238]
push ecx
mov ecx, eax
call fcn.00406ac1
push eax
lea ecx, [ebp - 0x260]
call fcn.0040435b
mov byte [ebp - 0x33c], bl
lea eax, [ebp - 0x260]
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x248]
push eax
call fcn.004066f5
lea ecx, [ebp - 0x260]
call fcn.0040794e
lea ecx, [ebp - 0x308]
call fcn.0040794e
lea ecx, [ebp - 0x2d8]
call fcn.0040794e
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4031d3
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], ecx
cmp eax, 0x1000
jb 0x4031ca
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x33c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x340]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x368]
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 - 0x3b0]
pop edi
push edi
push ebx
push eax
call fcn.00422e80
add esp, 0xc
mov dword [ebp - 0x3b0], edi
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
jb 0x40320e
mov ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
jb 0x403223
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 0x368]
push edx
lea edx, [ebp - 0x3b0]
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 0x4032ba
push 0xffffffffffffffff
push dword [ebp - 0x368]
mov dword [ebp - 0x340], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40326e
cmp eax, 0xffffffff
jne 0x40329a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
jmp 0x40329a
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403291
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x34c]
mov byte [eax], 1
push dword [ebp - 0x364]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x340]
jmp 0x4032c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x2c0]
call fcn.0040794e
lea ecx, [ebp - 0x2f0]
call fcn.0040794e
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x40332d
mov ecx, dword [ebp - 0x278]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], ecx
cmp eax, 0x1000
jb 0x403324
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x340]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x33c]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x268], ebx
push esi
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4033a2
mov ecx, dword [ebp - 0x248]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], ecx
cmp eax, 0x1000
jb 0x403399
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x340]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x33c]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x290]
call fcn.0040794e
lea ecx, [ebp - 0x2a8]
call fcn.0040794e
mov eax, edi
call fcn.0043c09e
ret