Function at 0x180034ae0
Capabilities:
Acquire debug privileges
Get system information on windows
Map section object
Read file via mapping

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r12d, r8d
mov r14, rdx
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov rbx, rcx
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x100]
dec eax
mov r15d, eax
and r15d, esi
je 0x180034b4c
mov ebx, eax
not rbx
and rbx, rsi
mov eax, r15d
add qword [rsp + 0x58], rax
lea rax, str.DevicePhysicalMemory
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x2e002c
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
lea r8, [rsp + 0x90]
mov edx, 4
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwOpenSection]
cmp eax, 0xc0000022
jne 0x180034bfb
lea r8, [rsp + 0x90]
mov edx, 0x60000
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwOpenSection]
mov rcx, qword [rsp + 0x50]
call fcn.1800347e0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwClose]
lea r8, [rsp + 0x90]
mov edx, 4
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwOpenSection]
test eax, eax
jns 0x180034d23
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.180034930
test eax, eax
jne 0x180034d1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180034c90
lea r8, [rsp + 0xcc]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0xc8], 1
mov dword [rsp + 0xd4], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0xc8]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x84], r14
mov dword [rsp + 0x8c], r12d
lea rcx, [0x180159808]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwSystemDebugControl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180034cf7
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 0x18]
lea rdx, [rsp + 0x78]
lea ecx, [r9 + 0xa]
call rax
test eax, eax
setns dil
mov eax, edi
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, 1
jmp 0x180034cf9
mov r8, rbx
shr r8, 0x20
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov edx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180034d73
mov edx, r15d
add rdx, rax
mov r8, r12
mov rcx, r14
call fcn.180112cb0
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x180034df7
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov esi, 0xffffffff
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
test eax, eax
jne 0x180034df7
mov edx, r15d
add rdx, qword [rsp + 0x60]
mov r8, r12
mov rcx, r14
call fcn.180112cb0
mov edi, 1
mov rdx, qword [rsp + 0x60]
mov ecx, esi
call qword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x180034cf7