Function at 0x4106f4
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 [0x43b004]
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.0040ff5b
pop ecx
pop ecx
test eax, eax
jne 0x410754
mov eax, dword [ebp - 8]
jmp 0x4109f5
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x214]
push eax
call fcn.0040fc64
pop ecx
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x41077f
mov eax, dword [ebp - 8]
jmp 0x4109f5
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.00411bb8
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.00411bb8
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x41095c
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.00411bb8
test eax, eax
je 0x41095c
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.00411bb8
test eax, eax
je 0x41095c
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.00411bb8
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x4108c2
and dword [ebp - 0x4bc], 0
and dword [ebp - 0x4c4], 0
cmp dword [ebp - 0x4bc], 0
je 0x41090e
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.00411bb8
mov dword [ebp - 0x4c4], eax
jmp 0x41094c
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.00411bb8
mov dword [ebp - 0x4c4], eax
cmp dword [ebp - 0x4c4], 0
je 0x41095c
mov dword [ebp - 8], 1
cmp dword [ebp - 0x434], 0
je 0x41097a
mov esi, esp
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x4ac], 0
je 0x410998
mov esi, esp
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x498], 0
je 0x4109b6
mov esi, esp
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x494], 0
je 0x4109d4
mov esi, esp
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x4a4], 0
je 0x4109f2
mov esi, esp
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411bb8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x410a24]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x4c4
cmp ebp, esp
call fcn.00411bb8
leave
ret