Function at 0x40d703
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0045583d
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0045583d
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x40d7a8
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d7a0
push 0x4f
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40d7e1
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d7de
push 0x7d
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d7f5
mov eax, 0
jmp 0x40d9d4
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc8
call fcn.004571f0
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40d855
push 0x121
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
test eax, eax
je 0x40d9a0
cmp dword [ebp + 0x14], 0
jne 0x40d8a2
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d89d
push 0x174
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
jmp 0x40d8d8
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d8d8
push 0x199
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
push 0
push 0
push 0x10
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d971
push 0x2e4
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d9a0
push 0x31c
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40d9cc
push 0x338
push 0x4058b1f
push 6
call fcn.00455849
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x40d9d4
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00455843
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00455843
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10