Function at 0x4175d9
Capabilities:
Create process on windows
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x4b4], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x4d0], ebx
lea edi, [ebp - 0x4cc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x514]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x518], ebx
call fcn.005306b0
add esp, 0xc
mov edi, 0x103
push edi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push edi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005306b0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x317]
push ebx
push eax
mov dword [ebp - 0x4a4], ebx
mov byte [ebp - 0x318], bl
call fcn.005306b0
mov edx, dword [ebp - 0x4a8]
add esp, 0xc
mov dword [ebp - 0x4c0], ebx
call fcn.004ccc0d
test eax, eax
je 0x4176b6
xor eax, eax
jmp 0x417cbd
cmp esi, ebx
jne 0x4176e1
lea eax, [ebp - 0x518]
mov dword [ebp - 0x518], 0x44
mov dword [ebp - 0x4ec], 1
mov word [ebp - 0x4e8], bx
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b4], ebx
jne 0x4176f5
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4b4], eax
push dword [ebp - 0x4a8]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
push eax
call fcn.00530f70
cmp byte [ebp + eax - 0x111], 0x2e
mov eax, esi
pop ecx
lea esi, [ebp - 0x110]
jne 0x41772e
push 0x559ca0
jmp 0x417733
push str..exe
call fcn.004ccd0f
pop ecx
lea edi, [ebp - 0x110]
call fcn.00432263
test eax, eax
je 0x417832
push 0x7f
lea eax, [ebp - 0x397]
push ebx
push eax
mov byte [ebp - 0x398], bl
call fcn.005306b0
add esp, 0xc
mov eax, edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005312a0
pop ecx
pop ecx
lea esi, [ebp - 0x218]
call fcn.004ccf41
lea eax, [ebp - 0x398]
push 0xa
push eax
call fcn.00531157
mov ecx, 0x8ae
cdq
mov esi, ecx
idiv esi
add edx, ecx
push edx
call fcn.005331c5
add esp, 0xc
push ebx
lea eax, [ebp - 0x398]
push eax
push str..exe
lea eax, [ebp - 0x218]
push 0x104
push eax
mov byte [ebp - 0x393], bl
call fcn.004ce6a0
add esp, 0x14
lea eax, [ebp - 0x218]
push 1
push eax
mov ecx, edi
call fcn.00430397
test eax, eax
pop ecx
pop ecx
jne 0x417832
push 0x4b0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x218]
push 1
push eax
mov ecx, edi
call fcn.00430397
test eax, eax
pop ecx
pop ecx
jne 0x417832
mov esi, str._GetLastError_
push esi
lea eax, [ebp - 0x218]
push eax
mov eax, edi
push eax
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:8:CreateProcessExe___s_____s___will_FAIL:_An_alternate_version_of_the_EXE_will_be_run:_The_file___s__could_not_be_renamed_to___s_:__s
call fcn.0042b70b
add esp, 0x18
mov byte [ebp - 0x218], bl
jmp 0x417837
mov esi, str._GetLastError_
lea eax, [ebp - 0x318]
call fcn.004ccb8b
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x318]
push eax
mov dword [ebp - 0x4c0], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41787e
push esi
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:6:CreateProcessExe___s_____s___encountered_a_problem:_GetUserName___FAILED:__s
call fcn.0042b70b
add esp, 0x10
mov edx, 0x60ab20
call fcn.004ccc0d
test eax, eax
jne 0x4179df
call fcn.004935a3
test eax, eax
jne 0x4179df
mov edi, str.SeTcbPrivilege
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
test eax, eax
pop ecx
pop ecx
je 0x4178fa
push str.SeIncreaseQuotaPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
test eax, eax
pop ecx
pop ecx
je 0x4178fa
push str.SeAssignPrimaryTokenPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
test eax, eax
pop ecx
pop ecx
je 0x4178fa
push str.SeCreateTokenPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
test eax, eax
pop ecx
pop ecx
jne 0x4179e4
lea eax, [ebp - 0x4a4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x417b3c
call fcn.00417546
test eax, eax
je 0x4179b4
push 0x60ab20
push str.:0:FYI_Alternate_logon__s_succeeded.
call fcn.0042bd38
lea eax, [ebp - 0x318]
push edi
push eax
call fcn.0041819f
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
mov edi, str.SeIncreaseQuotaPrivilege
lea eax, [ebp - 0x318]
push edi
push eax
call fcn.0041819f
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
mov edi, str.SeAssignPrimaryTokenPrivilege
lea eax, [ebp - 0x318]
push edi
push eax
call fcn.0041819f
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
mov edi, str.SeCreateTokenPrivilege
lea eax, [ebp - 0x318]
push edi
push eax
call fcn.0041819f
add esp, 0x40
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
pop ecx
pop ecx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x4179ce
push esi
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:4:CreateProcessExe___s_____s___encountered_an_ADMIN_problem:_ImpersonateAlternateCreateProcessLogon___FAILED:__s
call fcn.0042bd38
add esp, 0x10
mov edi, dword [ebp - 0x4a4]
call fcn.00435716
mov dword [ebp - 0x4a4], ebx
mov edi, str.SeTcbPrivilege
lea eax, [ebp - 0x4a4]
push eax
push 3
push 9
push ebx
push 0x551adc
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
cmp eax, ebx
je 0x417b5b
call fcn.004935a3
test eax, eax
jne 0x417b7c
cmp dword [0x6028e4], ebx
je 0x417a92
mov edx, 0x60ab20
call fcn.004ccc0d
test eax, eax
je 0x417a8c
push edi
push dword [ebp - 0x4a4]
call fcn.00418340
push str.SeChangeNotifyPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
push str.SeIncreaseQuotaPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
push str.SeAssignPrimaryTokenPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
push str.SeCreateTokenPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x4a4]
call fcn.00418340
add esp, 0x30
mov dword [0x6028e4], ebx
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b0]
push ebx
push 0x28
push ebx
push ebx
push ebx
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, ebx
mov dword [ebp - 0x4bc], eax
jne 0x417b1d
push esi
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:4:CreateProcessExe___s_____s___encountered_a_problem:_CreateProcessAsUser___s___FAILED:__s
call fcn.0042b70b
add esp, 0x14
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b0]
push ebx
push 0x28
push ebx
push ebx
push ebx
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x4bc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x4a4]
mov dword [ebp - 0x4b0], eax
call fcn.00435716
mov dword [ebp - 0x4a4], ebx
jmp 0x417bb8
push esi
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:4:CreateProcessExe___s_____s___encountered_an_ADMIN_problem:_OpenProcessToken___FAILED:__s
call fcn.0042bd38
add esp, 0x10
jmp 0x4179e4
push esi
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:6:CreateProcessExe___s_____s___encountered_a_problem:_LogonUser___s___FAILED:__s
call fcn.0042b70b
add esp, 0x14
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b0]
push ebx
push 0x28
push ebx
push ebx
push ebx
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x4bc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4b0], eax
lea edx, [ebp - 0x218]
call fcn.004ccc0d
test eax, eax
jne 0x417c87
push 0x103
lea eax, [ebp - 0x49f]
push ebx
push eax
mov byte [ebp - 0x4a0], bl
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.005312a0
lea eax, [ebp - 0x4a0]
call fcn.004ccf84
lea esi, [ebp - 0x110]
call fcn.004ccf41
lea esi, [ebp - 0x218]
call fcn.004ccf41
lea edx, [ebp - 0x4a0]
mov ecx, esi
call fcn.004cd1ce
lea eax, [ebp - 0x110]
push 1
push eax
mov ecx, esi
call fcn.00430397
add esp, 0x10
test eax, eax
jne 0x417c87
push 0x2ee
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push 1
push eax
mov ecx, esi
call fcn.00430397
test eax, eax
pop ecx
pop ecx
jne 0x417c87
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
mov eax, esi
push eax
push dword [ebp - 0x4ac]
push dword [ebp - 0x4a8]
push str.:8:CreateProcessExe___s_____s___encountered_a_problem:_The_file___s__could_not_be_reverse_renamed_back_to___s_:__s
call fcn.0042b70b
add esp, 0x18
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x4d0]
cmp dword [ebp - 0x4b4], eax
jne 0x417cb7
mov edi, dword [ebp - 0x4cc]
call fcn.00435716
mov edi, dword [ebp - 0x4d0]
call fcn.00435716
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret