Function at 0x41fb50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490355
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b30fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41fc61
call fcn.00403910
test eax, eax
je 0x41feb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.LookupPrivilegeValue_error.
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00402a50
test al, al
jne 0x41fbd3
push 0x1b
push str.LookupPrivilegeValue_error.
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov dword [ebp - 4], 1
call fcn.00403910
mov ecx, eax
test ecx, ecx
je 0x41fe9d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.Error
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00402a50
test al, al
jne 0x41fc18
push 5
push str.Error
lea ecx, [ebp - 0x24]
call fcn.00402d80
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.0041c250
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fc52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x41fd60
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41fd7c
call fcn.00403910
test eax, eax
je 0x41feb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.OpenProcessToken_failed_with_error.
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 4
call fcn.00402a50
test al, al
jne 0x41fcd7
push 0x23
push str.OpenProcessToken_failed_with_error.
lea ecx, [ebp - 0x24]
call fcn.00402d80
mov dword [ebp - 4], 5
call fcn.00403910
mov ecx, eax
test ecx, ecx
je 0x41fea7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.Error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00402a50
test al, al
jne 0x41fd1c
push 5
push str.Error
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.0041c250
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x28]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fd56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41fd75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x41fe83
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41fe78
call fcn.00403910
mov ecx, eax
test ecx, ecx
je 0x41feb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.AdjustTokenPrivileges_error.
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 8
call fcn.00402a50
test al, al
jne 0x41fdda
push 0x1c
push str.AdjustTokenPrivileges_error.
lea ecx, [ebp - 0x24]
call fcn.00402d80
mov dword [ebp - 4], 9
call fcn.00403910
mov ecx, eax
test ecx, ecx
je 0x41febb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.Error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00402a50
test al, al
jne 0x41fe1f
push 5
push str.Error
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.0041c250
mov byte [ebp - 4], 9
or esi, 0xffffffff
mov edx, dword [ebp - 0x28]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fe59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41fe78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a70a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036e0
push 0x80004005
call fcn.004036e0
push 0x80004005
call fcn.004036e0
push 0x80004005
call fcn.004036e0
int3