Function at 0x1002a6d
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1009018]
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 0x1002c0d
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.010028ab
cmp eax, esi
je 0x1002bb8
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x224], eax
je 0x1002bb8
lea ecx, [ebp - 0x218]
push ecx
mov edi, 0x2000f
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002bac
push 0x10017a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x1002ba0
push 0x100178c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1002b99
lea ecx, [ebp - 0x214]
push ecx
push 1
push 2
push esi
push edi
push dword [ebp - 0x218]
call eax
test eax, eax
je 0x1002b99
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1002b99
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 0x1002c0d
mov eax, dword [ebp - 0x228]
cmp eax, esi
mov dword [ebp - 0x27c], 0x44
je 0x1002be3
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 0x1002c14
xor eax, eax
jmp 0x1002ca3
mov edi, 0x1001788
push edi
push ebx
call dword [0x10090a4]
push dword [ebp - 0x21c]
push ebx
call dword [0x100908c]
push edi
push ebx
call dword [0x100908c]
mov edi, dword [ebp - 0x220]
cmp word [edi], si
je 0x1002c55
push 0x1001784
push ebx
call dword [0x100908c]
push edi
push ebx
call dword [0x100908c]
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 0x1002c85
mov dword [ebp - 0x238], esi
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.0100617c
leave
ret 0xc