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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.1400142e0
sub rsp, rax
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov eax, dword [rcx + 8]
lea rdx, [rsp + 0x58]
xorps xmm0, xmm0
mov dword [rsp + 0x44], eax
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov dword [rsp + 0x38], 0x30b0005
xor eax, eax
mov dword [rsp + 0x30], edi
mov rbx, rcx
mov qword [rsp + 0x78], rax
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x7c], 2
lea r14d, [rdi + 1]
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x3c], 0x10
mov esi, 0x1000
mov dword [rsp + 0x40], 0x48
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x48], 0x10001000
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x50], 1
mov dword [rsp + 0x54], 0x10000
call fcn.1400010d0
test eax, eax
jne 0x140001306
mov dword [rsp + 0x68], 2
lea r10, str.8a885d04_1ceb_11c9_9fe8_08002b104860
mov r9d, edi
xor dl, dl
mov r8d, edi
mov r11d, 0x842100
movzx eax, byte [r10]
cmp r8d, 0x17
ja 0x140001330
bt r11d, r8d
jae 0x140001330
cmp al, 0x2d
je 0x14000136b
mov eax, r14d
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1400029b0
lea r11, [rsp + 0x10a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea ecx, [rax - 0x61]
cmp cl, 5
ja 0x14000133c
sub al, 0x57
jmp 0x14000134e
lea ecx, [rax - 0x41]
cmp cl, 5
ja 0x140001348
sub al, 0x37
jmp 0x14000134e
sub al, 0x30
cmp al, 9
ja 0x140001306
test r14b, r9b
jne 0x14000135b
movzx edx, al
shl dl, 4
jmp 0x140001368
add dl, al
lea ecx, [r9 - 1]
shr rcx, 1
mov byte [rbp + rcx - 0x80], dl
inc r9d
inc r8d
inc r10
cmp r8d, 0x24
jb 0x1400012f2
movaps xmm1, xmmword [rbp - 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 3
mov r8d, 0x10
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
mov qword [rsp + 0x20], rdi
mov byte [rbp - 0x80], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
mov byte [rbp - 0x7f], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 5
mov byte [rbp - 0x7e], al
movd eax, xmm1
mov byte [rbp - 0x7d], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
mov byte [rbp - 0x7c], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 7
psrldq xmm1, 6
mov byte [rbp - 0x7b], al
movd eax, xmm0
mov byte [rbp - 0x7a], al
movd eax, xmm1
mov byte [rbp - 0x79], al
movaps xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x6c], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001306
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, 0x38
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001306
inc dword [rbx + 8]
lea rcx, [rbp - 0x70]
mov r8, rsi
xor edx, edx
call fcn.1400039b0
mov rcx, qword [rbx]
lea r9, [rsp + 0x34]
mov r8d, esi
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001306
cmp word [rbp - 0x70], 5
jne 0x140001306
cmp byte [rbp - 0x6e], 0xc
jne 0x140001306
cmp byte [rbp - 0x6d], 3
jne 0x140001306
movzx eax, word [rbp - 0x68]
cmp eax, dword [rsp + 0x34]
jne 0x140001306
mov rax, qword [rbp - 0x58]
mov ecx, 0x100
cmp ax, cx
ja 0x140001306
movzx ecx, ax
lea rax, [rcx + 5]
and rax, 0xfffffffffffffffc
sub rax, rcx
sub rax, 2
mov eax, eax
add rax, rcx
cmp dword [rbp + rax - 0x56], r14d
jne 0x140001306
cmp word [rbp + rax - 0x52], di
jne 0x140001306
xor eax, eax
jmp 0x140001309