Function at 0x3ec3620
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x52
push 0
push 0
dec ecx
jne 0x3ec3628
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x3ec39e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3ec3a04
call fcn.03e6ef58
xor edx, edx
mov eax, 0xf
call fcn.03e6c758
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x27c], 0x22c
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 0x38]
call fcn.03e6c778
lea eax, [ebp - 0x14]
call fcn.03cb7e50
mov eax, dword [ebp - 0x274]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x274]
call fcn.03e6d6fc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.kernel32.dll_GetProcessTimes
test eax, eax
je 0x3ec36c4
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.03e6cdc8
lea eax, [ebp - 0x3c]
push eax
push 8
push edi
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x3ec37db
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 1
mov eax, dword [ebp - 0x3c]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x3ec3720
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x40]
call fcn.03cb5080
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp - 0x3c]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x3ec372e
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x7a
je 0x3ec36f8
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidW
cmp dword [ebp - 0x4c], 0
je 0x3ec37d3
cmp dword [ebp - 0x50], 0
je 0x3ec37d3
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x4c]
call fcn.03cb8f14
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x50]
call fcn.03cb8f14
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 8]
call fcn.03cb8d98
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidW
test eax, eax
je 0x3ec37d3
mov eax, dword [ebp - 4]
call fcn.03cb8d98
mov edx, eax
lea eax, [ebp - 4]
call fcn.03cb8e00
mov eax, dword [ebp - 8]
call fcn.03cb8d98
mov edx, eax
lea eax, [ebp - 8]
call fcn.03cb8e00
mov eax, dword [ebp - 0x44]
call fcn.03cb5068
push edi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 4], 0
jne 0x3ec37f4
lea eax, [ebp - 4]
mov edx, 0x3ec3a34
call fcn.03cb8278
cmp dword [ebp - 8], 0
jne 0x3ec3807
lea eax, [ebp - 8]
mov edx, 0x3ec3a44
call fcn.03cb8278
cmp dword [ebp - 0x10], 0
jne 0x3ec381a
lea eax, [ebp - 0x10]
mov edx, 0x3ec3a54
call fcn.03cb8278
mov eax, dword [ebp - 0x274]
call fcn.03ec353c
test al, al
je 0x3ec3836
lea eax, [ebp - 0x14]
mov edx, 0x3ec3a64
call fcn.03cb8278
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.03cb8e3c
cmp dword [ebp - 0x280], 0
jne 0x3ec3863
mov eax, esi
mov edx, 0x3ec3a7c
call fcn.03cb8f94
jmp 0x3ec3895
push dword [esi]
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.03cb8e3c
push dword [ebp - 0x284]
push dword [ebp - 0x14]
push 0x3ec3a90
mov eax, esi
mov edx, 4
call fcn.03cb9074
push dword [esi]
mov eax, dword [ebp - 0x274]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x288]
call fcn.03cd23bc
push dword [ebp - 0x288]
push 0x3ec3aa0
mov eax, esi
mov edx, 3
call fcn.03cb9074
push dword [esi]
push dword [ebp - 4]
push 0x3ec3ab0
push dword [ebp - 8]
push 0x3ec3ac0
mov eax, esi
mov edx, 5
call fcn.03cb9074
push dword [esi]
mov eax, dword [ebp - 0x268]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28c]
call fcn.03cd23bc
push dword [ebp - 0x28c]
push 0x3ec3ad0
mov eax, esi
mov edx, 3
call fcn.03cb9074
push dword [esi]
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x274]
call fcn.03ec33ac
push dword [ebp - 0x290]
push 0x3ec3ae0
mov eax, esi
mov edx, 3
call fcn.03cb9074
push dword [esi]
mov eax, dword [ebp - 0x274]
call fcn.03ec34ac
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x294]
call fcn.03cd23bc
push dword [ebp - 0x294]
push 0x3ec3af0
mov eax, esi
mov edx, 3
call fcn.03cb9074
push dword [esi]
push dword [ebp - 0x10]
push 0x3ec3b00
mov eax, esi
mov edx, 3
call fcn.03cb9074
push dword [esi]
push dword [ebp - 0xc]
push 0x3ec3b10
push 0x3ec3b20
mov eax, esi
mov edx, 4
call fcn.03cb9074
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 0x38]
call fcn.03e6c798
test eax, eax
jne 0x3ec3674
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3ec39ee
lea eax, [ebp - 0x294]
mov edx, 6
call fcn.03cb7eb0
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.03cb7eb0
ret