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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x537109
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004076f8
mov eax, dword [ebp + 0x14]
call fcn.004076f8
mov eax, dword [ebp + 0x10]
call fcn.004076f8
mov eax, dword [ebp + 0xc]
call fcn.004076f8
xor eax, eax
push ebp
push 0x53757b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x53750d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5374b0
lea eax, [ebp - 0x18]
push eax
push 0x201eb
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x537474
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x5371e4
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x90]
call fcn.00423a20
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x53759c
call fcn.00408468
mov eax, dword [ebp - 0x8c]
call fcn.00535d98
push 4
lea eax, [ebp - 4]
push eax
push 0xc
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_SetTokenInformation
test eax, eax
jne 0x53722a
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x98]
call fcn.00423a20
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x5375d4
call fcn.00408468
mov eax, dword [ebp - 0x94]
call fcn.00535d98
mov edx, 0x537610
mov eax, dword [ebp - 0x14]
call fcn.00536950
mov dword [ebp - 0x24], 0x30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.userenv_CreateEnvironmentBlock
test eax, eax
je 0x53725a
mov dword [ebp - 0x24], 0x430
jmp 0x537290
xor eax, eax
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xa0]
call fcn.00423a20
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x537640
call fcn.00408468
mov eax, dword [ebp - 0x9c]
call fcn.00535d98
cmp dword [ebp + 0xc], 0
jne 0x53729d
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x5372a8
mov eax, dword [ebp + 0xc]
call fcn.00408224
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0
jne 0x5372bb
mov eax, dword [ebp + 0x10]
call fcn.00408224
mov dword [ebp - 0x2c], eax
jmp 0x5372e9
push 0x537684
push dword [ebp + 0x14]
push 0x537694
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0xa4]
call fcn.00408224
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x10
call fcn.00404f60
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f60
mov dword [ebp - 0x70], 0x44
mov eax, dword [ebp - 8]
call fcn.00408224
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x537421
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5373a7
push 0x5376a8
push dword [ebp + 0x14]
push 0x5376e0
push dword [ebp + 0x10]
push 0x5376f0
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xac]
call fcn.00423a20
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0xa8]
call fcn.00535d98
jmp 0x5373ed
push 0x537710
push dword [ebp + 0x14]
push 0x5376e0
push dword [ebp + 0x10]
push 0x537750
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xb4]
call fcn.00423a20
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0xb0]
call fcn.00535d98
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x537400
mov eax, 0x537764
call fcn.00535d98
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537460
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5374a5
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xc4]
call fcn.00423a20
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x5377d8
call fcn.00408468
mov eax, dword [ebp - 0xc0]
call fcn.00535d98
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x537503
push 0x537818
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.0041f210
push dword [ebp - 0xcc]
push 0x53784c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xd0]
call fcn.00423a20
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0xc8]
call fcn.00535d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537582
lea eax, [ebp - 0xd8]
mov edx, 0x14
call fcn.00407674
lea eax, [ebp - 8]
call fcn.00407614
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00407674
ret