Function at 0x413790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428250
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100a8
call fcn.00426e20
mov eax, dword [0x430618]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
push str.WTSQueryUserToken
xor esi, esi
push str.Wtsapi32.dll
mov dword [ebp - 0x10020], eax
mov dword [ebp - 0x10030], ecx
mov dword [ebp - 0x1002c], edx
mov dword [ebp - 0x10024], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x468bcc], eax
cmp eax, esi
je 0x413c56
push 0xfffe
lea ecx, [ebp - 0x10012]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x1001c], esi
mov word [ebp - 0x10014], ax
call fcn.004178a0
add esp, 0xc
mov eax, 0x468bc0
mov dword [ebp - 0x10018], esi
cmp esi, dword [eax + 0x58]
jae 0x413c32
add eax, 0x54
mov dword [ebp - 0x10028], eax
cmp esi, dword [eax + 4]
jb 0x41385a
push 0x80070057
call fcn.00406f80
mov eax, dword [eax]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4 + 4]
cmp dword [ecx - 0xc], 0
lea ebx, [eax + edx*4]
jle 0x413b8d
push 0x10000
lea edx, [ebp - 0x10014]
push 0
push edx
call fcn.004178a0
lea edi, [ebp - 0x10014]
add esp, 0xc
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413892
mov eax, dword [str.__star]
mov dword [edi], eax
test ecx, ecx
je 0x413b8d
mov eax, dword [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4138b2
lea edi, [ebp - 0x10014]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
jmp 0x4138d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4138d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413900
mov edx, dword [str.__star]
mov dword [edi], edx
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x413930
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413930
mov eax, dword [0x42cec8]
mov dword [edi], eax
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x413960
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413960
mov edx, dword [0x42ccd0]
mov dword [edi], edx
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x413990
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413990
mov eax, dword [0x42cecc]
mov dword [edi], eax
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x4139c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4139c0
mov edx, dword [0x42ced0]
mov dword [edi], edx
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x4139f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4139f0
mov eax, dword [0x42ced4]
mov dword [edi], eax
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x413a20
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413a20
mov eax, dword [0x42ced8]
mov dword [edi], eax
test ecx, ecx
je 0x413b87
lea edi, [ebp - 0x10014]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x413a50
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413a50
mov dword [edi], edx
test ecx, ecx
je 0x413b87
cmp dword [ebp + 8], 0
je 0x413b93
mov esi, dword [ebp - 0x10018]
mov edi, dword [ebp - 0x10028]
mov eax, esi
mov ecx, edi
call fcn.00413d30
mov ecx, dword [eax + 8]
mov ebx, dword [ebp - 0x10020]
push ebx
mov eax, 0x468bc0
mov edx, dword [eax + 0xc]
push ecx
call edx
test eax, eax
je 0x413b6f
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x10030]
push 0
push eax
push ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x413b56
push 0x40
lea ecx, [ebp - 0x10070]
push 0
push ecx
call fcn.004178a0
add esp, 0xc
mov eax, esi
mov ecx, edi
mov dword [ebp - 0x10074], 0x44
call fcn.00413d30
mov esi, dword [ebp - 0x1002c]
mov ecx, dword [ebx]
mov eax, dword [eax + 4]
push esi
lea edx, [ebp - 0x10074]
push edx
push 0
push ecx
push 0x400
push 0
push 0
push 0
lea edx, [ebp - 0x10014]
push edx
push eax
mov eax, dword [ebp - 0x10020]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x413b24
inc dword [ebp - 0x1001c]
mov eax, dword [esi + 4]
test eax, eax
je 0x413b3e
cmp eax, 0xffffffff
je 0x413b3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x413b56
cmp eax, 0xffffffff
je 0x413b56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [ebx]
test eax, eax
je 0x413b69
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10020]
mov eax, dword [ebx]
test eax, eax
je 0x413b87
cmp eax, 0xffffffff
je 0x413b87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov esi, dword [ebp - 0x10018]
inc esi
jmp 0x41382e
push 0x40
lea edx, [ebp - 0x100b4]
push 0
push edx
call fcn.004178a0
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x10028]
add esp, 0xc
mov dword [ebp - 0x100b8], 0x44
call fcn.00413d30
mov esi, dword [ebp - 0x1002c]
mov eax, dword [eax + 4]
push esi
lea ecx, [ebp - 0x100b8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10014]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x413bf8
inc dword [ebp - 0x1001c]
mov eax, dword [esi + 4]
test eax, eax
je 0x413c12
cmp eax, 0xffffffff
je 0x413c12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x413c2a
cmp eax, 0xffffffff
je 0x413c2a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
test edi, edi
je 0x413b87
mov ecx, dword [ebp - 0x1001c]
mov eax, 0x468bc0
cmp ecx, dword [eax + 0x58]
je 0x413c4c
cmp dword [ebp + 8], 0
jne 0x413c56
test ecx, ecx
jle 0x413c56
mov dword [ebp - 0x10024], 1
mov eax, dword [ebp - 0x10024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415554
mov esp, ebp
pop ebp
ret 8