Function at 0x128139b0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbp, rdx
mov rbx, rcx
xor r14d, r14d
mov edi, r14d
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
test rax, rax
jne 0x12813a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x12813eb6
mov edi, 0x490
lea rdx, str.NtCreateSection
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.NtOpenSection
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.NtQuerySection
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r12, r12
je 0x12813eb6
test rax, rax
je 0x12813eb6
mov rcx, qword [0x129ab590]
test rcx, rcx
cmovne r13, rcx
mov rax, qword [0x129ab598]
test rax, rax
cmovne r12, rax
lea rax, str.KnownDlls32_ntdll.dll
mov qword [rsp + 0x68], rax
mov eax, 0x2e
mov word [rsp + 0x62], ax
mov eax, 0x2c
mov word [rsp + 0x60], ax
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0x40
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x50], r14
lea r8, [rsp + 0x70]
lea edx, [rax + 7]
lea rcx, [rsp + 0x50]
call r12
mov edi, eax
test eax, eax
js 0x12813bca
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0xd0], r14
xor eax, eax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0xd0]
lea edx, [r9 - 0x3f]
call rsi
mov edi, eax
test eax, eax
jne 0x12813eb6
mov rdi, qword [rsp + 0xd0]
test rdi, rdi
jle 0x12813bc0
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 6]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x12813baa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x12813eb6
mov qword [rbx], rax
mov qword [rbx + 0x20], rax
sub rdi, rax
mov qword [rbx + 8], rdi
mov edi, r14d
jmp 0x12813eb6
mov edi, 0x1e7
jmp 0x12813eb6
test rbp, rbp
je 0x12813eb6
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x7ffe036c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x12813c11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x12813eb6
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x12813eb1
mov rsi, rax
mov edi, r14d
lea rcx, [rsp + 0xd0]
mov rax, qword [str.WINDOWSSysWOW64_ntdll.dll]
mov qword [rcx], rax
mov rax, qword [0x129bc228]
mov qword [rcx + 8], rax
mov rax, qword [0x129bc230]
mov qword [rcx + 0x10], rax
mov rax, qword [0x129bc238]
mov qword [rcx + 0x18], rax
mov rax, qword [0x129bc240]
mov qword [rcx + 0x20], rax
mov rax, qword [0x129bc248]
mov qword [rcx + 0x28], rax
mov rax, qword [0x129bc250]
mov qword [rcx + 0x30], rax
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
lea r8, [rsp + 0xa8]
mov rdx, rsi
mov rcx, rbp
call fcn.1281cde0
test eax, eax
jne 0x12813cf5
mov rcx, qword [rsp + 0xc0]
cmp rcx, 0x1b
jbe 0x12813cf5
lea rax, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rax, qword [rsp + 0xb0]
lea rdx, [rax + rcx*2 - 0x36]
mov r8d, 0x1b
lea rcx, [rsp + 0xd0]
call fcn.1295a8a4
mov edx, 1
test eax, eax
cmove edi, edx
cmp qword [rsp + 0xc8], 8
jb 0x12813d0d
mov rcx, qword [rsp + 0xb0]
call fcn.12958250
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
test edi, edi
je 0x12813eaa
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
lea rdx, [rsp + 0xa8]
lea rcx, [0x129bc208]
call fcn.1280d4d0
cmp qword [rsp + 0xc0], 0
jne 0x12813d7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x12813e73
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xd0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa8]
call fcn.12803a10
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100021
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x12813df9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x12813e73
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 0x10
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xf]
lea rcx, [rsp + 0x48]
call r13
mov edi, eax
test eax, eax
js 0x12813e69
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x12813e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x12813e69
mov qword [rbx], rax
mov qword [rbx + 0x20], rax
sub rsi, rax
mov qword [rbx + 8], rsi
mov edi, r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xc8], 8
jb 0x12813e8b
mov rcx, qword [rsp + 0xb0]
call fcn.12958250
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
jmp 0x12813eb6
mov edi, 0x1e7
jmp 0x12813eb6
mov edi, 0x1e7
mov eax, edi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret