Function at 0x180058ad0
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 0x180058d5b
mov qword [0x180142028], rdx
lea r8, [0x180142038]
lea rdx, [0x180057680]
mov rcx, rax
mov qword [0x180142030], rdx
call fcn.18004fb90
test eax, eax
je 0x180058c20
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 0x180058d3b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180058c10
jmp 0x180058d3b
mov rcx, qword [0x180142028]
test rcx, rcx
je 0x180058d5b
cmp byte [0x180142020], 0
jne 0x180058d5b
mov edx, 1
call fcn.180050080
test eax, eax
je 0x180058d72
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 0x180058d3b
nop
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x180058d30
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 [0x180142020], 1
mov al, 1
jmp 0x180058d5d