Function at 0x1800584b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x478]
sub rsp, 0x578
mov rax, qword [0x180175010]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rbx, rcx
lea rcx, [rbp + 0x250]
call fcn.18004f4a0
test al, al
je 0x18005888d
cmp word [rbp + 0x250], 0
lea rax, [rbp + 0x250]
je 0x18005850a
nop
add rax, 2
cmp word [rax], 0
jne 0x180058500
movzx ecx, word [rbx]
test cx, cx
je 0x180058530
sub rbx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x180058520
xor r14d, r14d
lea rcx, [rbp + 0x250]
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 0x18005888d
mov qword [rsp + 0x5a8], r12
xor ecx, ecx
mov qword [rsp + 0x570], r15
call fcn.1800e3918
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x10]
call fcn.1800e3910
movabs rax, 0x6a1c28d02529a45e
lea r9, [rbp - 0x10]
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, 0xb941ad35dddb9b
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x50]
mov rax, qword [rsp + 0x40]
movabs r15, 0x4f3145f5084d8105
mov qword [rbp - 0x68], rax
movabs r12, 0x6fda61f061f8fbc2
movabs rax, 0xc5270944c1558a9
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x60], rax
movabs rax, 0x44ccc44abacc1861
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x230], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x238], rax
movabs rax, 0x793650e73e742ec7
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x240], rax
movabs rax, 0x44ccc44ab0c6680c
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movdqa xmm0, xmmword [rbp - 0x70]
movdqa xmm1, xmmword [rbp - 0x60]
pxor xmm0, xmmword [rbp + 0x230]
mov qword [rbp + 0x248], rax
pxor xmm1, xmmword [rbp + 0x240]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x70], xmm0
call fcn.180058910
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x50]
mov ecx, edx
cmp byte [rbp - 0x50], r14b
je 0x1800586bc
inc rax
mov rcx, rax
cmp byte [rax], r14b
jne 0x1800586b1
sub ecx, edx
mov qword [rsp + 0x20], r14
mov r8d, ecx
lea rdx, [rbp - 0x50]
mov rcx, rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180177870]
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x180058870
mov qword [rsp + 0x5a0], rdi
mov qword [rsp + 0x5b0], r13
movabs r13, 0x3d5236906c6dee6b
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 0x18005884c
mov edx, dword [rbx + 0x28]
mov rcx, rsi
call fcn.1800571b0
mov r9, qword [rbx + 0x20]
cmp byte [r9], r14b
jne 0x180058797
mov qword [rsp + 0x40], r13
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0x6fda0f9f088c8bab
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]
pxor xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov r8, qword [rbx]
lea rdx, [rbp - 0x80]
movabs rax, 0x3c1467d5326df220
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x80], rax
movabs rax, 0x6fda61f061f8dbe0
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]
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.1800588b0
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x20]
mov ecx, edx
cmp byte [rbp + 0x20], r14b
je 0x180058820
inc rax
mov rcx, rax
cmp byte [rax], r14b
jne 0x180058815
sub ecx, edx
mov qword [rsp + 0x20], r14
mov r8d, ecx
lea rdx, [rbp + 0x20]
mov rcx, rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rbx + 0x30]
mov rcx, rsi
call fcn.180057d70
mov rcx, qword [0x180177870]
mov rax, qword [rcx + 0x40]
movzx eax, word [rax + rdi*8 + 0xa]
cmp eax, 0xffff
jne 0x180058710
mov r13, qword [rsp + 0x5b0]
mov rdi, qword [rsp + 0x5a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x570]
mov al, 1
mov r12, qword [rsp + 0x5a8]
jmp 0x18005888f
xor al, al
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1800d6d50
add rsp, 0x578
pop r14
pop rsi
pop rbx
pop rbp
ret