Function at 0x1000afa0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1003ba64], 1
mov eax, edx
push ebx
push esi
mov dword [ebp - 0x348], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x350], ecx
jne 0x1000b0a3
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x324]
push 0x104
push 0
push eax
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x338], 0
call fcn.1000ea10
add esp, 0xc
lea edx, [ebp - 0x324]
call fcn.1000a060
mov dword [ebp - 0x33c], eax
cmp eax, 0xffffffff
je 0x1000b090
cmp byte [ebp - 0x324], 0
je 0x1000b090
push ecx
mov edx, eax
lea ecx, [ebp - 0x324]
xor ebx, ebx
call fcn.100098c0
add esp, 4
test eax, eax
je 0x1000b0a3
push eax
push ebx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000b423
lea eax, [ebp - 0x340]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000b1f5
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x33c]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
jmp 0x1000b1ed
cmp dword [0x1003ba64], 1
je 0x1000b0b7
mov dword [ebp - 0x33c], 0xffffffff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
push str.Kernel32.dll
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000b0e6
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b0df
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x33c], edi
cmp edi, 0xffffffff
je 0x1000b0a3
xor edi, edi
mov ebx, 1
cmp dword [str.kgurpwmg_], edi
je 0x1000b0a3
mov esi, 0x10032360
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1000ea10
mov esi, dword [esi]
lea eax, [ebp - 0x114]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
nop word [eax + eax]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000b158
mov cl, byte [esi + eax]
test cl, cl
je 0x1000b158
mov byte [eax], cl
inc eax
sub edx, ebx
jne 0x1000b140
test edx, edx
lea ecx, [eax - 1]
lea edx, [ebp - 0x114]
cmovne ecx, eax
mov byte [ecx], 0
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000b170
sub edx, ecx
lea ecx, [ebp - 0x114]
call fcn.10009c80
mov edx, dword [ebp - 0x33c]
lea ecx, [ebp - 0x114]
call fcn.10009a60
test eax, eax
jne 0x1000b1c2
inc edi
cmp dword [edi*4 + 0x10032360], eax
lea esi, [edi*4 + 0x10032360]
jne 0x1000b110
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000b423
lea eax, [ebp - 0x340]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b416
lea eax, [ebp - 0x338]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x340]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000b405
push 4
lea eax, [ebp - 0x33c]
push eax
push 0xc
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x334], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x328], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000b405
push 0
push 0
push 0x10
lea eax, [ebp - 0x334]
push eax
push 0
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000b287
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1000ea10
mov edi, dword [ebx*4 + 0x1003236c]
lea ecx, [ebp - 0x21c]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1000b2cc
mov al, byte [edi + ecx]
test al, al
je 0x1000b2cc
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000b2b3
test edx, edx
lea eax, [ecx - 1]
lea edx, [ebp - 0x21c]
cmovne eax, ecx
lea ecx, [edx + 1]
mov byte [eax], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x1000b2e0
sub edx, ecx
lea ecx, [ebp - 0x21c]
call fcn.10009c80
push 0
push dword [ebp - 0x338]
lea eax, [ebp - 0x344]
mov dword [ebp - 0x344], 0
push eax
mov edi, 0x34
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1000b329
mov eax, dword [ebp - 0x344]
mov edi, 0x434
jmp 0x1000b331
xor eax, eax
mov dword [ebp - 0x344], eax
xor ecx, ecx
mov dword [ebp - 0x3a8], 0
mov word [ebp - 0x36a], cx
xorps xmm0, xmm0
lea ecx, [ebp - 0x21c]
movlpd qword [ebp - 0x3a0], xmm0
mov dword [ebp - 0x3a4], ecx
xor ecx, ecx
mov word [ebp - 0x37c], cx
lea ecx, [ebp - 0x360]
push ecx
lea ecx, [ebp - 0x3ac]
movlpd qword [ebp - 0x398], xmm0
push ecx
push 0
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x348]
movlpd qword [ebp - 0x390], xmm0
push 0
push dword [ebp - 0x338]
movlpd qword [ebp - 0x388], xmm0
movlpd qword [ebp - 0x37a], xmm0
movlpd qword [ebp - 0x372], xmm0
mov dword [ebp - 0x3ac], 0x44
mov dword [ebp - 0x380], 1
movups xmmword [ebp - 0x360], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1000b405
mov eax, dword [ebp - 0x360]
cmp eax, 0xffffffff
je 0x1000b405
mov ecx, dword [ebp - 0x35c]
cmp ecx, 0xffffffff
je 0x1000b405
mov edx, dword [ebp - 0x34c]
mov edi, dword [ebp - 0x358]
mov dword [edx], eax
mov eax, dword [ebp - 0x350]
mov dword [eax], ecx
jmp 0x1000b407
xor edi, edi
test esi, esi
je 0x1000b425
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
jmp 0x1000b42b
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push esi
call ebx
jmp 0x1000b42b
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x340]
test eax, eax
je 0x1000b438
push eax
call ebx
mov ecx, dword [ebp - 0x338]
test ecx, ecx
je 0x1000b445
push ecx
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret