Function at 0x52d96c
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 0x52d975
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.004074dc
mov eax, dword [ebp + 0x14]
call fcn.004074dc
mov eax, dword [ebp + 0x10]
call fcn.004074dc
mov eax, dword [ebp + 0xc]
call fcn.004074dc
xor eax, eax
push ebp
push 0x52dde7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x52dd79
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 0x52dd1c
lea eax, [ebp - 0x18]
push eax
push 0x201eb
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x52dce0
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 0x52da50
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x90]
call fcn.0042341c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x52de08
call fcn.004081f8
mov eax, dword [ebp - 0x8c]
call fcn.0052c604
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 0x52da96
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x98]
call fcn.0042341c
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x52de40
call fcn.004081f8
mov eax, dword [ebp - 0x94]
call fcn.0052c604
mov edx, 0x52de7c
mov eax, dword [ebp - 0x14]
call fcn.0052d1bc
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 0x52dac6
mov dword [ebp - 0x24], 0x430
jmp 0x52dafc
xor eax, eax
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xa0]
call fcn.0042341c
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x52deac
call fcn.004081f8
mov eax, dword [ebp - 0x9c]
call fcn.0052c604
cmp dword [ebp + 0xc], 0
jne 0x52db09
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x52db14
mov eax, dword [ebp + 0xc]
call fcn.00407fb4
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0
jne 0x52db27
mov eax, dword [ebp + 0x10]
call fcn.00407fb4
mov dword [ebp - 0x2c], eax
jmp 0x52db55
push 0x52def0
push dword [ebp + 0x14]
push 0x52df00
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0xa4]
call fcn.00407fb4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x10
call fcn.00404f58
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f58
mov dword [ebp - 0x70], 0x44
mov eax, dword [ebp - 8]
call fcn.00407fb4
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x52dc8d
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 0x52dc13
push 0x52df14
push dword [ebp + 0x14]
push 0x52df4c
push dword [ebp + 0x10]
push 0x52df5c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xac]
call fcn.0042341c
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.00408280
mov eax, dword [ebp - 0xa8]
call fcn.0052c604
jmp 0x52dc59
push 0x52df7c
push dword [ebp + 0x14]
push 0x52df4c
push dword [ebp + 0x10]
push 0x52dfbc
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xb4]
call fcn.0042341c
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, 6
call fcn.00408280
mov eax, dword [ebp - 0xb0]
call fcn.0052c604
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x52dc6c
mov eax, 0x52dfd0
call fcn.0052c604
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 0x52dccc
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 0x52dd11
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xc4]
call fcn.0042341c
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x52e044
call fcn.004081f8
mov eax, dword [ebp - 0xc0]
call fcn.0052c604
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x52dd6f
push 0x52e084
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.0041eec4
push dword [ebp - 0xcc]
push 0x52e0b8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xd0]
call fcn.0042341c
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0xc8]
call fcn.0052c604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52ddb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ddee
lea eax, [ebp - 0xd8]
mov edx, 0x14
call fcn.00407458
lea eax, [ebp - 8]
call fcn.004073f8
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00407458
ret