Function at 0x4546e0
Capabilities:
Acquire debug privileges
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x51fd4c
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], edi
call fcn.00403ac0
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00436880
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x454752
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, str.St_rted
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x4547b2
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x4547bf
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e50
jmp 0x4547bf
push str.St_rted
lea ecx, [ebp - 0x30]
call fcn.004048b0
push str.Ctor
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00403ac0
mov byte [ebp - 4], 5
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00433ec0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x454818
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [edi + 4]
push eax
call fcn.004018b0
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0x16
jne 0x454853
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x537408]
test eax, eax
mov eax, 7
cmove ecx, eax
mov dword [0x537408], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454873
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454890
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4548b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4548d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x538320], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], 0
jne 0x454911
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x454904
push str.OpenProcessToken
push eax
call esi
mov dword [0x538320], eax
jmp 0x454909
mov eax, dword [0x538320]
test eax, eax
je 0x454c8a
lea eax, [ebp - 0x2c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x538320]
test eax, eax
je 0x454c8a
mov esi, dword [0x537408]
lea ecx, [esi + 2]
lea eax, [esi + 1]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0x11
jne 0x454986
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7950
push eax
call fcn.004b8a0b
add esp, 8
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x454c84
mov eax, dword [ebp - 0x18]
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x454a9c
push str._ucces_fu1ly_ch_nged_token_privi1eges
lea ecx, [ebp - 0x30]
call fcn.00403b70
push str.Ctor
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00403ac0
mov byte [ebp - 4], 9
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.00433ec0
add esp, 4
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00402070
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454a53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454a70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454a90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
jmp 0x454c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x454ab1
movzx esi, si
or esi, 0x80070000
push str.Error:
lea ecx, [ebp - 0x38]
call fcn.00403b70
push str.Fai1ed_to_ch_nge_token_privi1eges
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00403b70
push str.Ctor
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00403ac0
mov edx, esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.00433f60
mov esi, eax
mov byte [ebp - 4], 0xf
mov edx, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.00433ec0
push 0x537f1c
mov edx, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x11
call fcn.00433ec0
lea ecx, [ebp - 0x38]
push ecx
mov edx, eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x12
call fcn.00433ec0
push esi
mov edx, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
call fcn.00433ec0
add esp, 0x10
push 2
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.00402070
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454b84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454ba4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454bc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454be4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454c04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454c24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454c44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454c64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454c84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x10], eax
test eax, eax
je 0x454e34
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, str.Loaded_Kerne132
mov byte [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x454cec
movzx ecx, ax
call fcn.00405910
test eax, eax
je 0x454cf9
mov edx, str.Loaded_Kerne132
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e50
jmp 0x454cf9
push str.Loaded_Kerne132
lea ecx, [ebp - 0x30]
call fcn.004048b0
push str.Ctor
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.00403ac0
mov byte [ebp - 4], 0x17
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x18
call fcn.00433ec0
add esp, 4
mov byte [ebp - 4], 0x19
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x454d52
push 0
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 4]
push eax
call fcn.004018b0
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0x16
jne 0x454d8d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x537408]
test eax, eax
mov eax, 7
cmove ecx, eax
mov dword [0x537408], ecx
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454dad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454dcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454ded
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454e0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x51fccc
push dword [edi + 0x10]
call esi
push 0x51fe08
push dword [edi + 0x10]
mov dword [edi + 0x14], eax
call esi
push 0x51fe18
push dword [edi + 0x10]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x14], 0
je 0x454e4a
cmp dword [edi + 0x18], 0
je 0x454e4a
cmp dword [edi + 0x1c], 0
jne 0x45502c
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, str.Cou1dnt_find_Too1He1p_functions
mov byte [ebp - 4], 0x1a
test eax, 0xffff0000
jne 0x454e8d
movzx ecx, ax
call fcn.00405910
test eax, eax
je 0x454e9a
mov edx, str.Cou1dnt_find_Too1He1p_functions
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e50
jmp 0x454e9a
push str.Cou1dnt_find_Too1He1p_functions
lea ecx, [ebp - 0x30]
call fcn.004048b0
push str.Ctor
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call fcn.00403ac0
mov byte [ebp - 4], 0x1c
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1d
call fcn.00433ec0
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [edi]
push eax
call fcn.00403c20
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x454f00
push 2
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 4]
push eax
call fcn.004018b0
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0x16
jne 0x454f3b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x537408]
test eax, eax
mov eax, 7
cmove ecx, eax
mov dword [0x537408], ecx
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454f5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454f7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454f9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x454fb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x10], 0
je 0x45502c
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0xc], eax
test eax, eax
je 0x455003
push str.ZwQuerySystemInformation
push eax
call esi
push 0x51fe74
push dword [edi + 0x10]
mov dword [edi + 0x20], eax
call esi
push 0x51fe84
push dword [edi + 0x10]
mov dword [edi + 0x24], eax
call esi
push 0x51fe90
push dword [edi + 0x10]
mov dword [edi + 0x28], eax
call esi
mov dword [edi + 0x2c], eax
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
mov eax, dword [0x537ee4]
mov ecx, 0xbc416e67
cmp edx, 0xd
cmove eax, ecx
mov dword [0x537ee4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8181
mov esp, ebp
pop ebp
ret