Function at 0x18005a6b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x18017a040]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, rcx
lea rcx, [rbp + 0x270]
call fcn.180051890
test al, al
je 0x18005aafa
cmp word [rbp + 0x270], 0
lea rax, [rbp + 0x270]
je 0x18005a70a
nop
add rax, 2
cmp word [rax], 0
jne 0x18005a700
movzx ecx, word [rbx]
test cx, cx
je 0x18005a730
sub rbx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x18005a720
xor r14d, r14d
lea rcx, [rbp + 0x270]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov word [rax], r14w
lea r8d, [r14 + 1]
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18005aafa
mov qword [rsp + 0x5c8], r12
xor ecx, ecx
mov qword [rsp + 0x590], r15
call fcn.1800e7a00
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
call fcn.1800e79f8
movabs rax, 0x385ac44972365cbc
lea r9, [rbp]
mov qword [rsp + 0x40], rax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
lea edx, [r14 + 0x40]
mov qword [rbp - 0x70], rcx
movabs rax, 0xa9f40d2462997399
mov qword [rsp + 0x40], rax
movabs rcx, 0x8a0ee29d662c2864
mov rax, qword [rsp + 0x40]
movabs r15, 0x1d77a96c5f5279e7
mov qword [rbp - 0x68], rax
movabs r12, 0xda952d7936bc53c0
movabs rax, 0x7a228a8fe28c3c29
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x60], rax
movabs rax, 0xf7b28b65813c6fe2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x58], rax
movabs rax, 0x4871fac060a0b13b
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x240], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x248], rax
movabs rax, 0x602ebe69af55459
movdqa xmm0, xmmword [rbp + 0x240]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x250], rax
movabs rax, 0x84c0ea13ef530cc2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x258], rax
movabs rax, 0x487bf0b00dd5d51b
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x260], rax
mov rax, qword [rsp + 0x40]
xorps xmm0, xmmword [rbp - 0x70]
movdqa xmm1, xmmword [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x250]
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp + 0x268], rax
movdqa xmm0, xmmword [rbp + 0x260]
xorps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
call fcn.18005ab80
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x40]
mov r8d, ecx
cmp byte [rbp - 0x40], r14b
je 0x18005a92b
nop dword [rax]
inc rax
mov r8, rax
cmp byte [rax], r14b
jne 0x18005a920
sub r8d, ecx
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea rdx, [rbp - 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x18017c8a0]
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x18005aadd
mov qword [rsp + 0x5c0], rdi
mov qword [rsp + 0x5d0], r13
movabs r13, 0x6f14da093b721689
nop dword [rax]
nop word [rax + rax]
mov edi, eax
mov rax, qword [rcx + 0x40]
add rdi, rdi
mov rbx, qword [rax + rdi*8]
test rbx, rbx
je 0x18005aab9
mov edx, dword [rbx + 0x28]
mov rcx, rsi
call fcn.1800593d0
mov r9, qword [rbx + 0x20]
cmp byte [r9], r14b
jne 0x18005aa06
mov qword [rsp + 0x40], r13
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0xda9543165fc823a9
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov r8, qword [rbx]
lea rdx, [rbp - 0x80]
movabs rax, 0x6e528b4c65720ac2
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x80], rax
movabs rax, 0xda952d7936bc73e2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.18005ab20
lea rcx, [rbp + 0x30]
lea rax, [rbp + 0x30]
mov r8d, ecx
cmp byte [rbp + 0x30], r14b
je 0x18005aa8f
inc rax
mov r8, rax
cmp byte [rax], r14b
jne 0x18005aa84
sub r8d, ecx
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea rdx, [rbp + 0x30]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rbx + 0x30]
mov rcx, rsi
call fcn.180059f90
mov rcx, qword [0x18017c8a0]
mov rax, qword [rcx + 0x40]
movzx eax, word [rax + rdi*8 + 0xa]
cmp eax, 0xffff
jne 0x18005a980
mov r13, qword [rsp + 0x5d0]
mov rdi, qword [rsp + 0x5c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x590]
mov al, 1
mov r12, qword [rsp + 0x5c8]
jmp 0x18005aafc
xor al, al
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1800da960
add rsp, 0x598
pop r14
pop rsi
pop rbx
pop rbp
ret