Function at 0x4cf9b0
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x87c
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push esi
je 0x4cfcf0
cmp dword [esp + 0x890], ebx
je 0x4cfcf0
mov ebp, dword [esp + 0x894]
cmp ebp, ebx
je 0x4cfcf0
push 0x56963c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push str.LoadLibraryA
push esi
call fcn.00513bb0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4cfa1e
push str.LoadLibraryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4cfcf0
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.0042ee80
mov eax, dword [0x594498]
add esp, 0xc
cmp eax, ebx
jne 0x4cfacc
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov esi, 1
mov dword [esp + 0x2c], ecx
push edx
push 0x28
mov dword [0x594498], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4cfabd
lea eax, [esp + 0x28]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4cfabd
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4cfacc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xb2
xor eax, eax
lea edi, [esp + 0x5c4]
mov dword [esp + 0x5c0], ebx
rep stosd dword es:[edi], eax
push 0x577d20
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004cf500
push 0x577d08
mov esi, eax
call fcn.004cf500
mov ebp, eax
push 0x577b50
mov dword [esp + 0x48], ebp
call fcn.004cf500
push 0x577b44
mov edi, eax
call fcn.004cf500
push 0x577cec
mov dword [esp + 0x24], eax
call fcn.004cf500
push 0x577dc0
mov dword [esp + 0x30], eax
call fcn.004cf500
push 0x577dac
mov dword [esp + 0x50], eax
call fcn.004cf500
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x38], eax
je 0x4cfce1
cmp ebp, ebx
je 0x4cfce1
cmp edi, ebx
je 0x4cfce1
cmp dword [esp + 0x10], ebx
je 0x4cfce1
cmp dword [esp + 0x18], ebx
je 0x4cfce1
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x4cfce1
cmp eax, ebx
je 0x4cfce1
mov ebp, dword [esp + 0x894]
push ebp
call ecx
lea eax, [esp + 0x5c0]
mov dword [esp + 0x5c0], 0x10007
push eax
push ebp
call esi
test eax, eax
je 0x4cfcc4
mov ecx, dword [esp + 0x890]
push 0x40
push 0x3000
push 0x480
push ebx
push ecx
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4cfcc4
mov eax, dword [esp + 0x678]
lea ecx, [esp + 0x40]
mov dl, 0x68
mov dword [esp + 0x141], eax
test ecx, ecx
mov byte [esp + 0x140], dl
mov byte [esp + 0x145], 0x9c
mov byte [esp + 0x146], 0x60
lea eax, [esp + 0x147]
je 0x4cfc60
mov ecx, 0x40
lea esi, [esp + 0x40]
lea edi, [esp + 0x1c0]
lea eax, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x147], dl
lea edx, [ebp + 0x80]
cmp eax, ebx
mov dword [esp + 0x148], edx
jne 0x4cfc41
lea eax, [esp + 0x14c]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x14c], 0xe8
sub ecx, eax
lea eax, [esp + 0x151]
sub ecx, 5
mov dword [esp + 0x14d], ecx
mov esi, dword [esp + 0x890]
mov byte [eax], 0x61
mov byte [eax + 1], 0x9d
mov byte [eax + 2], 0xc3
lea eax, [esp + 0x20]
lea ecx, [esp + 0x140]
push eax
push 0x480
push ecx
push ebp
push esi
mov dword [esp + 0x68c], ebp
call dword [esp + 0x24]
test eax, eax
je 0x4cfcc4
push 0x480
push ebp
push esi
call dword [esp + 0x24]
test eax, eax
je 0x4cfcc4
mov eax, dword [esp + 0x894]
lea edx, [esp + 0x5c0]
push edx
push eax
call dword [esp + 0x44]
test eax, eax
je 0x4cfcc4
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x894]
push ecx
call dword [esp + 0x3c]
pop edi
pop esi
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x87c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x87c
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x87c
ret 0xc