Function at 0x61e9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x61ebf9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
push 5
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5ed0a4]
call fcn.004096a0
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.0040725c
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], 2
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.0040725c
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 3
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
call fcn.0040725c
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
add eax, 0x48
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
call fcn.0040725c
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], 6
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
add eax, 0x60
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
call fcn.0040725c
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], 7
mov eax, dword [ebp - 0x38]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x10], 1
lea eax, [ebp - 0x10]
call fcn.005ed0e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x61eb39
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 4], eax
push 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
cmp dword [ebp - 4], 0
je 0x61ebbb
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0x61ec08
mov eax, dword [0x7171ec]
mov eax, dword [eax]
call eax
test eax, eax
je 0x61ebb2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_GetSecurityDescriptorSacl
test eax, eax
je 0x61ebb2
cmp dword [ebp - 0x1c], 0
je 0x61ebb2
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_SetSecurityDescriptorSacl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 8]
mov dword [eax], 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61ec00
lea eax, [ebp - 0x10]
mov edx, dword [0x5ed0a4]
call fcn.004097c4
ret