Function at 0x180058010
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x180141040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, rdx
test rdx, rdx
je 0x18005829b
mov qword [0x180142068], rdx
lea r8, [0x180142078]
lea rdx, [0x180057b50]
mov rcx, rax
mov qword [0x180142070], rdx
call fcn.18004fb90
test eax, eax
je 0x180058160
mov dl, 3
call fcn.180072d40
movabs rcx, 0x374c07797228bb32
lea rdx, [rbp + 7]
movabs rax, 0xa298e65bcac4b009
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0xf09d39523750929f
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0x3904104b21f21ab1
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x17], rax
mov qword [rbp - 9], rcx
mov rax, qword [rbp - 9]
mov qword [rbp + 0x1f], rax
movabs rax, 0xd6b8823ea6add16f
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x95e958374533b2f0
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0x390410204e9d7291
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x37], rax
mov qword [rbp - 9], rcx
lea rcx, [rbp + 7]
mov rax, qword [rbp - 9]
vmovdqu xmm0, xmmword [rbp + 7]
vpxor xmm2, xmm0, xmmword [rbp + 0x27]
vmovdqu xmm0, xmmword [rbp + 0x17]
mov qword [rbp + 0x3f], rax
vpxor xmm1, xmm0, xmmword [rbp + 0x37]
vmovq rax, xmm2
vmovdqu xmmword [rbp + 0x17], xmm1
vmovdqu xmmword [rbp + 7], xmm2
test al, al
je 0x18005827b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180058150
jmp 0x18005827b
mov rcx, qword [0x180142068]
test rcx, rcx
je 0x18005829b
cmp byte [0x180142060], 0
jne 0x18005829b
mov edx, 1
call fcn.180050080
test eax, eax
je 0x1800582b2
mov dl, 3
call fcn.180072d40
movabs rcx, 0x374c07797228bb32
lea rdx, [rbp + 7]
movabs rax, 0xa298e65bcac4b009
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0xf0853a562b56929f
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0x3904104b21f21ab1
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x17], rax
mov qword [rbp - 9], rcx
mov rax, qword [rbp - 9]
mov qword [rbp + 0x1f], rax
movabs rax, 0xd6b8823ea6add16f
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x95e958374533b2f0
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0x390410204e9d7291
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x37], rax
mov qword [rbp - 9], rcx
mov rax, qword [rbp - 9]
vmovdqu xmm0, xmmword [rbp + 7]
vpxor xmm2, xmm0, xmmword [rbp + 0x27]
vmovdqu xmm0, xmmword [rbp + 0x17]
mov qword [rbp + 0x3f], rax
lea rax, [rbp + 7]
vpxor xmm1, xmm0, xmmword [rbp + 0x37]
vmovq rcx, xmm2
vmovdqu xmmword [rbp + 0x17], xmm1
vmovdqu xmmword [rbp + 7], xmm2
test cl, cl
je 0x18005827b
nop
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x180058270
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rbp + 7]
mov qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800d7380
add rsp, 0x90
pop rbp
ret
mov byte [0x180142060], 1
mov al, 1
jmp 0x18005829d