Function at 0x180001220
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.180016790
sub rsp, rax
mov rax, qword [section..data]
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 ebx, ebx
mov dword [rsp + 0x38], 0x30b0005
xor eax, eax
mov dword [rsp + 0x30], ebx
mov rdi, rcx
mov qword [rsp + 0x78], rax
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x7c], 2
lea r14d, [rbx + 1]
mov dword [rsp + 0x34], ebx
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.1800010d0
test eax, eax
jne 0x180001306
mov dword [rsp + 0x68], 2
lea r10, str.8a885d04_1ceb_11c9_9fe8_08002b104860
mov r9d, ebx
xor dl, dl
mov r8d, ebx
mov r11d, 0x842100
movzx eax, byte [r10]
cmp r8d, 0x17
ja 0x180001330
bt r11d, r8d
jae 0x180001330
cmp al, 0x2d
je 0x18000136b
mov eax, r14d
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1800027d0
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 0x18000133c
sub al, 0x57
jmp 0x18000134e
lea ecx, [rax - 0x41]
cmp cl, 5
ja 0x180001348
sub al, 0x37
jmp 0x18000134e
sub al, 0x30
cmp al, 9
ja 0x180001306
test r14b, r9b
jne 0x18000135b
movzx edx, al
shl dl, 4
jmp 0x180001368
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 0x1800012f2
movaps xmm1, xmmword [rbp - 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x38]
movdqa xmm0, xmm1
movdqa xmmword [rbp - 0x80], xmm1
psrldq xmm0, 3
mov r8d, 0x10
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x6c], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
mov byte [rsp + 0x6d], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 5
mov byte [rsp + 0x6e], al
movd eax, xmm1
mov byte [rsp + 0x6f], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
mov byte [rsp + 0x70], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 7
psrldq xmm1, 6
mov byte [rsp + 0x71], al
movd eax, xmm0
mov byte [rsp + 0x72], al
movd eax, xmm1
mov byte [rsp + 0x73], al
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x74], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001306
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x38
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001306
inc dword [rdi + 8]
lea rcx, [rbp - 0x70]
mov r8, rsi
xor edx, edx
call fcn.1800169e0
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001306
cmp word [rbp - 0x70], 5
jne 0x180001306
cmp byte [rbp - 0x6e], 0xc
jne 0x180001306
cmp byte [rbp - 0x6d], 3
jne 0x180001306
movzx eax, word [rbp - 0x68]
cmp eax, dword [rsp + 0x34]
jne 0x180001306
movzx eax, word [rbp - 0x58]
mov ecx, 0x100
cmp ax, cx
ja 0x180001306
lea rcx, [rax + 5]
and rcx, 0xfffffffffffffffc
sub rcx, rax
sub rcx, 2
mov ecx, ecx
add rcx, rax
cmp dword [rbp + rcx - 0x56], r14d
jne 0x180001306
cmp word [rbp + rcx - 0x52], bx
setne bl
mov eax, ebx
jmp 0x180001309