Function at 0x1002b62
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1009004]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
xor esi, esi
mov ebx, ecx
push 0x10
xor eax, eax
pop ecx
mov dword [ebp - 0x27c], esi
lea edi, [ebp - 0x278]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x238], esi
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1002d02
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x10017d8
push 0x10017cc
push 0x10017bc
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.010029a0
cmp eax, esi
je 0x1002cad
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x224], eax
je 0x1002cad
lea ecx, [ebp - 0x218]
push ecx
mov edi, 0x2000f
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002ca1
push 0x10017a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x1002c95
push 0x100178c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1002c8e
lea ecx, [ebp - 0x214]
push ecx
push 1
push 2
push esi
push edi
push dword [ebp - 0x218]
call eax
test eax, eax
je 0x1002c8e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1002c8e
mov dword [ebp - 0x214], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x214], esi
je 0x1002d02
mov eax, dword [ebp - 0x228]
cmp eax, esi
mov dword [ebp - 0x27c], 0x44
je 0x1002cd8
mov dword [ebp - 0x274], eax
mov word [ebp - 0x24c], 5
push dword [ebp - 0x220]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp - 0x21c]
mov ebx, eax
call edi
add ebx, eax
lea eax, [ebx + ebx + 8]
push eax
call sub.cmutil.dll_CmMalloc
mov ebx, eax
cmp ebx, esi
jne 0x1002d09
xor eax, eax
jmp 0x1002db2
mov edi, 0x1001788
push edi
push ebx
call dword [0x10093b4]
push dword [ebp - 0x21c]
push ebx
call dword [0x100939c]
push edi
push ebx
call dword [0x100939c]
mov edi, dword [ebp - 0x220]
cmp word [edi], si
je 0x1002d4a
push 0x1001784
push ebx
call dword [0x100939c]
push edi
push ebx
call dword [0x100939c]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x27c]
push eax
push esi
push esi
push 0x800
push esi
push esi
push esi
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1002d80
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
cmp dword [ebp - 0x234], esi
je 0x1002d94
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call sub.cmutil.dll_CmFree
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010061f2
leave
ret 0xc