Function at 0x180001c80
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.180011730
sub rsp, rax
mov rax, qword [0x18004c040]
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.180001b30
test eax, eax
jne 0x180001d66
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 0x180001d90
bt r11d, r8d
jae 0x180001d90
cmp al, 0x2d
je 0x180001dcb
mov eax, r14d
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.180010ec0
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 0x180001d9c
sub al, 0x57
jmp 0x180001dae
lea ecx, [rax - 0x41]
cmp cl, 5
ja 0x180001da8
sub al, 0x37
jmp 0x180001dae
sub al, 0x30
cmp al, 9
ja 0x180001d66
test r14b, r9b
jne 0x180001dbb
movzx edx, al
shl dl, 4
jmp 0x180001dc8
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 0x180001d52
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 0x180001d66
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 0x180001d66
inc dword [rdi + 8]
lea rcx, [rbp - 0x70]
mov r8, rsi
xor edx, edx
call fcn.180035840
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 0x180001d66
cmp word [rbp - 0x70], 5
jne 0x180001d66
cmp byte [rbp - 0x6e], 0xc
jne 0x180001d66
cmp byte [rbp - 0x6d], 3
jne 0x180001d66
movzx eax, word [rbp - 0x68]
cmp eax, dword [rsp + 0x34]
jne 0x180001d66
movzx eax, word [rbp - 0x58]
mov ecx, 0x100
cmp ax, cx
ja 0x180001d66
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 0x180001d66
cmp word [rbp + rcx - 0x52], bx
setne bl
mov eax, ebx
jmp 0x180001d69