Function at 0x1400122e4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3a0
mov rax, qword [0x14001c030]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov r13, r8
mov qword [rsp + 0x90], rdx
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov r14d, edi
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSectionBaseAddress]
mov r12, rax
test rax, rax
jne 0x140012349
mov ebx, 0xc0000022
jmp 0x140012822
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x100]
mov r8d, 3
mov rdx, r12
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140012822
lfence
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x110]
mov rcx, r12
call fcn.140011f18
mov ebx, eax
mov dword [rsp + 0x68], eax
test eax, eax
js 0x140012822
mov edx, 0x108
mov r8d, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x240]
mov edx, 2
lea r15d, [rdx + 0x7e]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r15
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, r15
sub rdx, 1
jne 0x1400123ce
mov rax, qword [rax]
mov qword [rcx], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xd0]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140012822
cmp dword [rsp + 0xe0], r15d
jne 0x14001233f
cmp dword [rsp + 0xf4], 2
jne 0x14001233f
cmp dword [rsp + 0xf8], 0x1000000
jne 0x14001233f
cmp dword [rsp + 0xf0], 0x1000
jne 0x14001233f
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], rdi
mov dword [rsp + 0xb8], 0x200
mov qword [rsp + 0xb0], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x60
mov eax, 1
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov edx, 0x120089
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
jns 0x140012518
mov qword [rsp + 0x60], rdi
jmp 0x140012822
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x40
lea rax, [rsp + 0x350]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140012822
cmp qword [rsp + 0x88], 0x40
jb 0x14001233f
movsxd rax, dword [rsp + 0x38c]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov esi, 0x108
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140012822
cmp qword [rsp + 0x88], rsi
jb 0x14001233f
mov eax, dword [rsp + 0x130]
cmp eax, dword [rsp + 0x240]
jne 0x14001233f
mov rax, qword [rsp + 0x134]
cmp rax, qword [rsp + 0x244]
jne 0x14001233f
mov rax, qword [rsp + 0x13c]
cmp rax, qword [rsp + 0x24c]
jne 0x14001233f
mov eax, dword [rsp + 0x144]
cmp eax, dword [rsp + 0x254]
jne 0x14001233f
mov eax, dword [rsp + 0x158]
cmp eax, dword [rsp + 0x268]
jne 0x14001233f
mov eax, dword [rsp + 0x15c]
cmp eax, dword [rsp + 0x26c]
jne 0x14001233f
mov eax, dword [rsp + 0x188]
cmp eax, dword [rsp + 0x298]
jne 0x14001233f
movzx eax, word [rsp + 0x148]
cmp ax, word [rsp + 0x258]
jne 0x14001233f
mov eax, dword [rsp + 0x14c]
cmp eax, dword [rsp + 0x25c]
jne 0x14001233f
mov eax, dword [rsp + 0x180]
cmp eax, dword [rsp + 0x290]
jne 0x14001233f
mov eax, dword [rsp + 0x154]
cmp eax, dword [rsp + 0x264]
jne 0x14001233f
mov eax, dword [rsp + 0x150]
cmp eax, dword [rsp + 0x260]
jne 0x14001233f
mov eax, dword [rsp + 0x184]
cmp eax, dword [rsp + 0x294]
jne 0x14001233f
movzx eax, word [rsp + 0x18c]
cmp ax, word [rsp + 0x29c]
jne 0x14001233f
movzx eax, word [rsp + 0x18e]
cmp ax, word [rsp + 0x29e]
jne 0x14001233f
mov eax, dword [rsp + 0x1b0]
cmp eax, dword [rsp + 0x2c0]
jne 0x14001233f
movzx eax, word [rsp + 0x136]
lea esi, [rax + rax*4]
shl esi, 3
test esi, esi
je 0x14001233f
mov r15d, esi
mov r8d, 0x7076704b
mov edx, esi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x140012822
movzx edx, word [rsp + 0x144]
movsxd rcx, dword [rsp + 0x38c]
add rcx, 0x18
add rdx, rcx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140012822
cmp qword [rsp + 0x88], r15
jne 0x140012822
lfence
mov ecx, 0x10b
test r13, r13
je 0x1400127dc
cmp cx, word [rsp + 0x148]
sete al
mov byte [r13], al
movzx eax, word [rsp + 0x136]
cmp cx, word [rsp + 0x148]
sete cl
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
mov r9, r14
mov r8, qword [rsp + 0x60]
mov rdx, r12
call fcn.14001286c
mov ebx, eax
jmp 0x140012822
test r14, r14
je 0x140012835
mov edx, 0x7076704b
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140012847
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400167f0
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret