Function at 0x481370
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634198
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov edi, 1
mov dword [ebp - 0x18], 0
call fcn.004178d0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x74], 0
mov word [ebp - 0x36], ax
mov eax, 5
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x70], str.WinSta0Default
mov word [ebp - 0x48], ax
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48143c
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x481473
lea ecx, [ebp - 0x14]
call fcn.00481030
test eax, eax
jne 0x481470
mov ecx, dword [ebp - 0x1c]
xor edx, edx
push 5
call fcn.00480d60
mov edi, eax
add esp, 4
test edi, edi
je 0x481514
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x481514
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 1
push 1
push 0
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x481512
push 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4814c1
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp - 0x18], 0
xor edi, edi
jmp 0x481523
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
cmp dword [eax - 4], 1
jle 0x4814e4
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00401c70
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push dword [ebp - 0x20]
push 0x430
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x48156a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x481523
cmp eax, 0xffffffff
je 0x481523
push eax
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x481532
cmp eax, 0xffffffff
je 0x481532
push eax
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481554
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x481578
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x481514