Function at 0x403526
Capabilities:
Create process on windows
Create thread
Resume thread
Terminate process

Disassembly:
push 0x188
push 0x401448
call fcn.0040159d
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], esi
mov eax, dword [0x4050a8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, esi
je 0x403752
push 0x44
pop edi
push edi
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00403881
mov dword [ebp - 0x94], edi
mov word [ebp - 0x64], si
mov dword [ebp - 0x68], 0x181
mov dword [ebp - 0x54], ebx
push 4
pop ebx
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x24], esi
je 0x4035b4
push 0x104
lea eax, [ebp - 0x198]
push eax
call fcn.004032f3
test eax, eax
jne 0x4035c2
push 1
lea eax, [ebp - 0x198]
push eax
call fcn.004033e4
cmp dword [ebp + 8], esi
je 0x403653
lea edi, [ebp + 8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push esi
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x403607
push ebx
lea eax, [ebp - 0x44]
push eax
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov ebx, 0x404
mov dword [ebp - 0x4c], ebx
push esi
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push dword [ebp - 0x40]
push ebx
push 1
push esi
push esi
lea eax, [ebp - 0x198]
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x403676
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403676
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push ebx
push 1
push esi
push esi
lea eax, [ebp - 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], esi
je 0x4036a0
cmp dword [ebp - 0x1c], esi
je 0x4036f4
push esi
lea eax, [ebp - 0x198]
push eax
call fcn.004033e4
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0x198]
push eax
call fcn.00403374
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x403752
cmp dword [ebp - 0x24], esi
jne 0x4036b5
mov eax, dword [0x4050b0]
push esi
push 0x80
mov ecx, 0x4050b8
push ecx
sub eax, dword [0x4050b0]
add eax, ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x24], esi
je 0x40371c
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
mov eax, dword [0x4050a8]
push dword [eax + 0x34]
push dword [ebp - 0x34]
call fcn.004037bc
cmp dword [ebp - 0x1c], esi
jne 0x403725
cmp dword [ebp - 0x34], esi
je 0x40370c
push esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], esi
je 0x403752
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403752
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x405090], esi
jne 0x403747
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x34]
push fcn.00403830
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], eax
jmp 0x403752
push dword [ebp - 0x34]
call fcn.00403830
mov dword [ebp - 0x34], esi
or dword [ebp - 4], 0xffffffff
call fcn.00403768
mov eax, dword [ebp - 0x1c]
call fcn.004019b2
ret 4