Function at 0x18005f5b0
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x18017c040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, rdx
test rdx, rdx
je 0x18005f82c
mov qword [0x18017ea68], rdx
lea r8, [0x18017ea78]
lea rdx, [0x18005f1e0]
mov rcx, rax
mov qword [0x18017ea70], rdx
call fcn.180050c90
test eax, eax
je 0x18005f6f5
mov dl, 3
call fcn.180076910
movabs rcx, 0xbe91939255bd1558
lea rdx, [rbp + 7]
movabs rax, 0x9db65c547adec4e3
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0x441b966172dfa5a9
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0xb9d6aea47ba00dc7
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, 0xe996383116b7a585
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x216ff70400bc85c6
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0xb9d6aecf14cf65e7
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]
movdqa xmm1, xmmword [rbp + 7]
xorps xmm1, xmmword [rbp + 0x27]
movdqa xmm0, xmmword [rbp + 0x17]
mov qword [rbp + 0x3f], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp + 7], xmm1
movdqa xmmword [rbp + 0x17], xmm0
test al, al
je 0x18005f80c
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18005f6e5
jmp 0x18005f80c
mov rcx, qword [0x18017ea68]
test rcx, rcx
je 0x18005f82c
cmp byte [0x18017ea60], 0
jne 0x18005f82c
mov edx, 1
call fcn.180051190
test eax, eax
je 0x18005f843
mov dl, 3
call fcn.180076910
movabs rcx, 0xbe91939255bd1558
lea rdx, [rbp + 7]
movabs rax, 0x9db65c547adec4e3
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0x440395656ed9a5a9
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0xb9d6aea47ba00dc7
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, 0xe996383116b7a585
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x216ff70400bc85c6
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0xb9d6aecf14cf65e7
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]
movdqa xmm1, xmmword [rbp + 7]
xorps xmm1, xmmword [rbp + 0x27]
movdqa xmm0, xmmword [rbp + 0x17]
movq rcx, xmm1
mov qword [rbp + 0x3f], rax
lea rax, [rbp + 7]
xorps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp + 7], xmm1
movdqa xmmword [rbp + 0x17], xmm0
test cl, cl
je 0x18005f80c
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x18005f801
mov rcx, qword [0x18017ced8]
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.1800dbf50
add rsp, 0x90
pop rbp
ret
mov byte [0x18017ea60], 1
mov al, 1
jmp 0x18005f82e