Function at 0x140074820
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1400f1080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rdx
movss dword [rbp - 1], xmm2
xor esi, esi
lea r9, [rbp + 0x44]
movabs rdi, 0xcccccccccccccccd
mov r8d, 4
nop dword [rax + rax]
dec r9
mov rax, rdi
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x140074870
lea r8, [rbp + 0x44]
mov rdx, r9
lea rcx, [rbp - 0x29]
call fcn.14000b130
nop
lea r9, [rbp + 0x44]
nop
dec r9
mov rax, rdi
mul rbx
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov rbx, rdx
test rdx, rdx
jne 0x1400748b0
lea r8, [rbp + 0x44]
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.14000b130
nop
mov r9d, 6
lea r8, str.WRITE
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.14000afc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], rsi
mov byte [rax], bl
mov r8d, 1
lea rdx, [0x1400d1b50]
lea rcx, [rbp - 0x69]
call fcn.140006a70
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
lea r9, [rbp - 0x29]
lea r8, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.14000ab70
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 0xf
jbe 0x1400749ae
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400749a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074bff
call fcn.140076520
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x1400749e9
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400749e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074c05
call fcn.140076520
movdqa xmm0, xmmword [0x1400dd3b0]
movdqu xmmword [rbp - 0x59], xmm0
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140074a3d
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074a30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074c0b
call fcn.140076520
movdqa xmm0, xmmword [0x1400dd3b0]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140074a81
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074a7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074c11
call fcn.140076520
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rdx, qword [rbp + 0xf]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 5]
mov r8d, dword [rbp + 0x1f]
mov rcx, qword [0x1400f4348]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 5]
mov r8d, 4
lea rdx, [rbp - 1]
mov rcx, qword [0x1400f4348]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 7]
mov r8d, 2
lea rdx, [rbp - 9]
mov rcx, qword [0x1400f4348]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rbp - 7], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x3f], xmm1
lea rax, [rbp - 9]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140074b10
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x2f]
call fcn.140003410
lea rcx, [rbp + 0x2f]
mov rbx, qword [rbp + 0x2f]
mov rdi, qword [rbp + 0x47]
cmp rdi, 0xf
cmova rcx, rbx
mov r8, qword [rbp + 0x3f]
cmp r8, 2
jne 0x140074b5a
lea rdx, [0x1400d1df8]
call fcn.1400a4ad0
test eax, eax
jne 0x140074b5a
xor sil, sil
jmp 0x140074b5d
mov sil, 1
cmp rdi, 0xf
jbe 0x140074b94
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140074b8c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074c17
mov rcx, rbx
call fcn.140076520
test sil, sil
jne 0x140074c1d
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140074bd4
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074bcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074bf9
call fcn.140076520
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140076500
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400801f4
nop
call fcn.1400801f4
nop
call fcn.1400801f4
nop
call fcn.1400801f4
nop
call fcn.1400801f4
int3
call fcn.1400801f4
int3
lea rdx, str.Failed_to_write_memory
lea rcx, [rbp + 0x2f]
call fcn.140002910
lea rdx, [0x1400ef070]
lea rcx, [rbp + 0x2f]
call fcn.1400786e4
int3