Function at 0x410830
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
push esi
push edi
lea edi, [ebp - 0x4c4]
mov ecx, 0x131
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43f004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push 0x208
push 0
lea eax, [ebp - 0x214]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call fcn.0040ff9b
pop ecx
pop ecx
test eax, eax
jne 0x410890
mov eax, dword [ebp - 8]
jmp 0x410b31
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x214]
push eax
call fcn.0040fca4
pop ecx
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4108bb
mov eax, dword [ebp - 8]
jmp 0x410b31
push 0x208
push 0
lea eax, [ebp - 0x428]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov esi, esp
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411cf8
and dword [ebp - 0x434], 0
push 0x44
push 0
lea eax, [ebp - 0x480]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x498]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x4a4], 0
mov esi, esp
push dword [ebp - 0x21c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x410a98
mov dword [ebp - 0x4b0], 0xb
mov esi, esp
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x4b0]
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410a98
mov dword [ebp - 0x4b4], 0x18b
mov esi, esp
lea eax, [ebp - 0x4a4]
push eax
push 1
push 2
push 0
push dword [ebp - 0x4b4]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp esi, esp
call fcn.00411cf8
test eax, eax
je 0x410a98
mov dword [ebp - 0x480], 0x44
and dword [ebp - 0x4bc], 0
mov esi, esp
lea eax, [ebp - 0x4bc]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, esp
call fcn.00411cf8
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp esi, esp
call fcn.00411cf8
test eax, eax
jne 0x4109fe
and dword [ebp - 0x4bc], 0
and dword [ebp - 0x4c4], 0
cmp dword [ebp - 0x4bc], 0
je 0x410a4a
mov esi, esp
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x480]
push eax
push 0
push 0
push 0x10
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x4c4], eax
jmp 0x410a88
mov esi, esp
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x480]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x428]
push eax
push 0
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x4c4], eax
cmp dword [ebp - 0x4c4], 0
je 0x410a98
mov dword [ebp - 8], 1
cmp dword [ebp - 0x434], 0
je 0x410ab6
mov esi, esp
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp - 0x4ac], 0
je 0x410ad4
mov esi, esp
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp - 0x498], 0
je 0x410af2
mov esi, esp
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp - 0x494], 0
je 0x410b10
mov esi, esp
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
cmp dword [ebp - 0x4a4], 0
je 0x410b2e
mov esi, esp
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411cf8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x410b60]
call fcn.00411ca2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d30
add esp, 0x4c4
cmp ebp, esp
call fcn.00411cf8
leave
ret