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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2058
push 0
push 0
dec ecx
jne 0xc220d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xc2e6e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x6c], eax
mov esi, 0xa
lea ebx, [ebp - 0x68]
mov dword [ebx], 0xffffffff
add ebx, 4
dec esi
jne 0xc2240
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov edx, 0xc2e88
call fcn.0001442c
mov byte [ebp - 9], 0
lea eax, [ebp - 0x1008c]
xor ecx, ecx
mov edx, 0x10
call fcn.00012c70
lea eax, [ebp - 0x100d0]
xor ecx, ecx
mov edx, 0x44
call fcn.00012c70
mov dword [ebp - 0x100d0], 0x44
mov word [ebp - 0x100a0], 1
mov eax, dword [ebp - 0x2c]
call fcn.00014620
mov dword [ebp - 0x100c8], eax
mov dword [ebp - 0x100a4], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
call fcn.000143f0
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x28], 0xffffffff
je 0xc2c2f
lea eax, [ebp - 0x20]
push eax
push 0x201eb
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0xc233f
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x68], eax
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_DuplicateTokenEx
call sub.kernel32.dll_GetLastError_1
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x64], eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_SetTokenInformation
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x60], eax
jmp 0xc23d9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2eb0
lea edx, [ebp - 0x100e0]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x100e0]
push 0xc2ec0
lea eax, [ebp - 0x100dc]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x100dc]
lea eax, [ebp - 0x100d8]
call fcn.000145ac
push dword [ebp - 0x100d8]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
lea eax, [ebp - 0x100d4]
mov edx, 4
call fcn.00014700
mov eax, dword [ebp - 0x100d4]
mov ecx, dword [ebp + 8]
mov edx, 0xc2ed4
call fcn.000c1bec
lea edx, [ebp - 0x100e4]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x100e4]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
cmp dword [ebp - 0x10], 0
setne al
and al, byte [ebp + 0xc]
je 0xc2637
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x78]
push eax
push 0xc2edc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0xc2595
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x70], 2
mov ebx, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0xc24f6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2ef8
lea edx, [ebp - 0x100f4]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x100f4]
push 0xc2ec0
lea eax, [ebp - 0x100f0]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x100f0]
lea eax, [ebp - 0x100ec]
call fcn.000145ac
push dword [ebp - 0x100ec]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
lea eax, [ebp - 0x100e8]
mov edx, 4
call fcn.00014700
mov eax, dword [ebp - 0x100e8]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1b18
test ebx, ebx
je 0xc262f
lea edx, [ebp - 0x100f8]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x100f8]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
jmp 0xc262f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2f08
lea edx, [ebp - 0x10108]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x10108]
push 0xc2ec0
lea eax, [ebp - 0x10104]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x10104]
lea eax, [ebp - 0x10100]
call fcn.000145ac
push dword [ebp - 0x10100]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
lea eax, [ebp - 0x100fc]
mov edx, 4
call fcn.00014700
mov eax, dword [ebp - 0x100fc]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1bec
lea edx, [ebp - 0x1010c]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x1010c]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
jmp 0xc262f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2f18
lea edx, [ebp - 0x1011c]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x1011c]
push 0xc2ec0
lea eax, [ebp - 0x10118]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x10118]
lea eax, [ebp - 0x10114]
call fcn.000145ac
push dword [ebp - 0x10114]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
lea eax, [ebp - 0x10110]
mov edx, 4
call fcn.00014700
mov eax, dword [ebp - 0x10110]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1bec
lea edx, [ebp - 0x10120]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x10120]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x10], 0
je 0xc2b0e
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.userenv_CreateEnvironmentBlock
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x30], 0
jne 0xc26a7
lea edx, [ebp - 0x10128]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x10128]
lea eax, [ebp - 0x10124]
mov edx, 0xc2f28
call fcn.00013ff4
mov eax, dword [ebp - 0x10124]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x1007c]
xor ecx, ecx
mov edx, 0x10000
call fcn.00012c70
mov eax, dword [ebp + 0x14]
call fcn.00014630
mov esi, eax
cmp esi, 0x8000
jl 0xc26d7
mov esi, 0x7ff8
mov eax, dword [ebp + 0x14]
call fcn.00014620
mov ecx, esi
add ecx, ecx
lea edx, [ebp - 0x1007c]
call fcn.0001291c
mov eax, edi
call fcn.00014630
test eax, eax
jle 0xc2705
lea eax, [ebp - 0x24]
mov edx, edi
call fcn.0001442c
jmp 0xc2710
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.0001442c
xor eax, eax
push ebp
push 0xc29f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1008c]
push eax
lea eax, [ebp - 0x100d0]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00014620
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0x400
push 0
push 0
push 0
lea eax, [ebp - 0x1007c]
push eax
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
lea eax, [ebp - 0x1012c]
mov edx, 3
call fcn.00014700
mov eax, dword [ebp - 0x1012c]
call fcn.00014620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
test eax, eax
je 0xc28ca
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2f34
lea edx, [ebp - 0x1023c]
mov eax, dword [ebp - 0x10084]
call fcn.00029850
lea edx, [ebp - 0x1023c]
lea eax, [ebp - 0x1013c]
call fcn.00013f4c
push dword [ebp - 0x1013c]
push 0xc2f44
lea edx, [ebp - 0x10240]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x10240]
push 0xc2ec0
lea eax, [ebp - 0x10138]
mov edx, 5
call fcn.00014068
mov edx, dword [ebp - 0x10138]
lea eax, [ebp - 0x10134]
call fcn.000145ac
push dword [ebp - 0x10134]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
push 0xc2f50
lea eax, [ebp - 0x10250]
mov edx, dword [ebp + 0x14]
call fcn.00013f70
mov eax, dword [ebp - 0x10250]
lea edx, [ebp - 0x1024c]
call fcn.0001b15c
push dword [ebp - 0x1024c]
push 0xc2f5c
lea eax, [ebp - 0x10248]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x10248]
lea eax, [ebp - 0x10244]
call fcn.000145ac
push dword [ebp - 0x10244]
lea eax, [ebp - 0x10130]
mov edx, 5
call fcn.00014700
mov eax, dword [ebp - 0x10130]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1b18
cmp dword [ebp - 0x1008c], 0
je 0xc289d
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
mov eax, 0xc2f68
call fcn.000c1cc0
jmp 0xc28c1
test ebx, ebx
je 0xc28c1
lea edx, [ebp - 0x10254]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x10254]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1da8
mov byte [ebp - 9], 1
jmp 0xc29e7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xc2f74
lea edx, [ebp - 0x1023c]
mov eax, dword [ebp - 0x10084]
call fcn.00029850
lea edx, [ebp - 0x1023c]
lea eax, [ebp - 0x10264]
call fcn.00013f4c
push dword [ebp - 0x10264]
push 0xc2f44
lea edx, [ebp - 0x10268]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x10268]
push 0xc2ec0
lea eax, [ebp - 0x10260]
mov edx, 5
call fcn.00014068
mov edx, dword [ebp - 0x10260]
lea eax, [ebp - 0x1025c]
call fcn.000145ac
push dword [ebp - 0x1025c]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
push 0xc2f50
lea eax, [ebp - 0x10278]
mov edx, dword [ebp + 0x14]
call fcn.00013f70
mov eax, dword [ebp - 0x10278]
lea edx, [ebp - 0x10274]
call fcn.0001b15c
push dword [ebp - 0x10274]
push 0xc2f5c
lea eax, [ebp - 0x10270]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x10270]
lea eax, [ebp - 0x1026c]
call fcn.000145ac
push dword [ebp - 0x1026c]
lea eax, [ebp - 0x10258]
mov edx, 5
call fcn.00014700
mov eax, dword [ebp - 0x10258]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1bec
lea edx, [ebp - 0x1027c]
mov eax, ebx
call fcn.00027478
mov eax, dword [ebp - 0x1027c]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc2ae5
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], 0
je 0xc2afc
mov eax, dword [ebp - 0x30]
push eax
call sub.userenv_DestroyEnvironmentBlock
xor eax, eax
mov dword [ebp - 0x30], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x4c], eax
jmp 0xc2bd7
push 0xc2f84
lea edx, [ebp - 0x102ac]
mov eax, dword [ebp - 0x28]
call fcn.0002964c
push dword [ebp - 0x102ac]
push 0xc2ec0
lea eax, [ebp - 0x102a8]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x102a8]
lea eax, [ebp - 0x102a4]
call fcn.000145ac
push dword [ebp - 0x102a4]
push dword [ebp - 4]
push 0xc2ec8
push dword [ebp - 8]
push 0xc2f50
lea eax, [ebp - 0x102bc]
mov edx, dword [ebp + 0x14]
call fcn.00013f70
mov eax, dword [ebp - 0x102bc]
lea edx, [ebp - 0x102b8]
call fcn.0001b15c
push dword [ebp - 0x102b8]
push 0xc2f5c
lea eax, [ebp - 0x102b4]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x102b4]
lea eax, [ebp - 0x102b0]
call fcn.000145ac
push dword [ebp - 0x102b0]
lea eax, [ebp - 0x102a0]
mov edx, 5
call fcn.00014700
mov eax, dword [ebp - 0x102a0]
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
call fcn.000c1bec
cmp dword [ebp - 0x20], 0
je 0xc2be6
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0xc2bfa
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1008c]
test eax, eax
je 0xc2c17
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10088]
test eax, eax
je 0xc2c27
push eax
call sub.kernel32.dll_CloseHandle_1
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x44], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
call fcn.000143f0
mov esi, 0xb
lea ebx, [ebp - 0x6c]
mov edi, dword [ebx]
cmp edi, 0xffffffff
jne 0xc2c5d
lea eax, [ebp - 0x1c]
mov edx, 0xc2f8c
call fcn.0001463c
jmp 0xc2ca5
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.000292ac
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x102c4]
call fcn.00027444
lea eax, [ebp - 0x102c4]
mov edx, 0xc2f9c
call fcn.00013fb0
mov edx, dword [ebp - 0x102c4]
lea eax, [ebp - 0x102c0]
call fcn.000145ac
mov edx, dword [ebp - 0x102c0]
lea eax, [ebp - 0x1c]
call fcn.0001463c
add ebx, 4
dec esi
jne 0xc2c47
mov edx, 0xc2ed4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.000c1b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xc2e78
lea eax, [ebp - 0x102c4]
call fcn.00013d18
lea eax, [ebp - 0x102c0]
call fcn.000143f0
lea eax, [ebp - 0x102bc]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x102b0]
call fcn.000143f0
lea eax, [ebp - 0x102ac]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x102a4]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x1029c]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x10290]
call fcn.000143f0
lea eax, [ebp - 0x1028c]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x10284]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x1027c]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x1026c]
call fcn.000143f0
lea eax, [ebp - 0x10268]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x1025c]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x10254]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x10244]
call fcn.000143f0
lea eax, [ebp - 0x10240]
call fcn.00013d18
lea eax, [ebp - 0x1013c]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x10134]
mov edx, 3
call fcn.00014408
lea eax, [ebp - 0x10128]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x10114]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x1010c]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x10100]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x100f8]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x100ec]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x100e4]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x100d8]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x2c]
call fcn.000143f0
lea eax, [ebp - 0x24]
call fcn.000143f0
lea eax, [ebp - 0x1c]
call fcn.000143f0
ret