Function at 0x53e510
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xfffffffffffffffe
push 0x6745e0
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x5c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x28], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x18], esi
mov edi, 0x1000
mov dword [ebp + 0x20], edi
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005ddec6
add esp, 4
mov ebx, eax
mov dword [0x697e34], 1
mov eax, dword [0x75d46c]
cmp eax, esi
jne 0x53e5c1
push str.NTDLL.DLL
call fcn.004f4be0
mov dword [0x75d46c], eax
cmp eax, esi
jne 0x53e5c1
push str.Failed_to_load_library_NTDLL.DLL
mov eax, dword [ebp + 0x28]
push eax
call fcn.0053d3c0
jmp 0x53e981
cmp dword [0x75d468], esi
je 0x53e5e3
cmp dword [0x75d464], esi
je 0x53e5e3
mov ecx, dword [0x75d3cc]
cmp ecx, esi
je 0x53e5e3
cmp dword [0x75d3d0], esi
jne 0x53e634
push str.ZwOpenFile
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [0x75d468], eax
push str.ZwOpenSection
mov ecx, dword [0x75d46c]
push ecx
call edi
mov dword [0x75d3d0], eax
push str.ZwQuerySystemInformation
mov edx, dword [0x75d46c]
push edx
call edi
mov dword [0x75d464], eax
push str.RtlInitUnicodeString
mov eax, dword [0x75d46c]
push eax
call edi
mov ecx, eax
mov dword [0x75d3cc], ecx
mov edi, dword [ebp + 0x20]
cmp dword [0x75d468], esi
je 0x53e92e
cmp dword [0x75d3d0], esi
je 0x53e92e
cmp ecx, esi
je 0x53e92e
cmp dword [0x75d464], esi
je 0x53e92e
push esi
push 0x643ce8
call fcn.004e21c0
add esp, 8
test eax, eax
jne 0x53e685
push str.Failed_to_enable_privilege.
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.0053d3c0
jmp 0x53e981
push str.DeviceTcp
lea edx, [ebp - 0x68]
push edx
call dword [0x75d3cc]
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
lea eax, [ebp - 0x68]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
push esi
push 3
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x100000
lea eax, [ebp + 0x18]
push eax
call dword [0x75d468]
jmp 0x53e6d0
push esi
lea ecx, [edi*4]
push ecx
push ebx
push 0x10
call dword [0x75d464]
cmp eax, 0xc0000004
jne 0x53e715
push ebx
call fcn.005e132a
lea eax, [edi + edi]
mov dword [ebp + 0x20], eax
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005ddec6
add esp, 8
mov ebx, eax
mov edi, dword [ebp + 0x20]
jmp 0x53e6d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x24], ecx
cmp ecx, dword [ebx]
jae 0x53e743
mov edx, ecx
shl edx, 4
lea edx, [edx + ebx + 4]
cmp dword [edx], edi
jne 0x53e73e
movzx edx, word [edx + 6]
cmp edx, eax
je 0x53e741
inc ecx
jmp 0x53e722
cmp ecx, dword [ebx]
jne 0x53e777
mov edi, dword [ebp + 0x28]
cmp edi, esi
je 0x53e758
mov ecx, 0xa
mov esi, str.Failed_to_get_the_handle_of_DeviceTcp
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.005e132a
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x1c]
jmp 0x53e990
shl ecx, 4
mov dword [ebp + 0x28], ecx
mov eax, dword [ecx + ebx + 0xc]
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.0053d040
add esp, 8
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x10], eax
xor eax, eax
mov dword [ebp + 0x24], eax
cmp eax, dword [ebx]
jae 0x53e8f8
shl eax, 4
lea edi, [eax + ebx + 4]
mov dword [ebp + 0x14], edi
mov al, byte [edi + 4]
mov ecx, dword [ebp + 0x28]
cmp al, byte [ecx + ebx + 8]
jne 0x53e925
mov edx, dword [edi + 8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.0053d040
add esp, 8
mov ecx, dword [ebp - 0x184]
cmp dword [ebp - 0x114], ecx
jne 0x53e925
mov eax, dword [ebp - 0x108]
cmp eax, 1
je 0x53e815
cmp eax, 2
jne 0x53e925
movzx edx, word [edi + 6]
push edx
mov eax, dword [edi]
push eax
call fcn.0053d310
add esp, 8
mov edi, eax
cmp edi, esi
je 0x53e925
mov dword [ebp - 0x60], esi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0xa8], esi
push 0x34
push esi
lea ecx, [ebp - 0xa4]
push ecx
call fcn.005dfd60
mov dword [ebp + 0x2c], esi
push 0x2c
push esi
lea edx, [ebp + 0x30]
push edx
call fcn.005dfd60
add esp, 0x18
cmp dword [ebp - 0x108], 1
je 0x53e8b1
lea eax, [ebp]
push eax
push esi
push 0x38
lea ecx, [ebp - 0xa8]
push ecx
push 0x18
lea edx, [ebp - 0x48]
push edx
push 0x210012
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53e91e
lea eax, [ebp]
push eax
push esi
push 0x30
lea ecx, [ebp + 0x2c]
push ecx
push 0x18
lea edx, [ebp - 0x60]
push edx
push 0x210012
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53e91e
cmp dword [ebp + 0x70], esi
jne 0x53e91e
mov eax, dword [ebp + 0x38]
push eax
call dword [0x75d2c4]
movzx ecx, ax
cmp ecx, dword [ebp + 0x68]
jne 0x53e91e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp + 0x1c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [0x75d04c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x75d048]
push eax
call esi
jmp 0x53e75f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x24]
inc eax
jmp 0x53e7b7
push str.Failed_to_get_procedure_address
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.0053d3c0
add esp, 8
mov edx, dword [0x75d46c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x75d46c], esi
mov dword [0x75d468], esi
mov dword [0x75d3d0], esi
mov dword [0x75d3cc], esi
mov dword [0x75d464], esi
jmp 0x53e984
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x60
mov esp, ebp
pop ebp
ret