Function at 0x18004d220
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x18015f040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, rdx
test rdx, rdx
je 0x18004d499
mov qword [0x180161718], rdx
lea r8, [0x180161728]
lea rdx, [0x18004af20]
mov rcx, rax
mov qword [0x180161720], rdx
call fcn.1800440b0
test eax, eax
je 0x18004d365
mov dl, 3
call fcn.18005c2c0
movabs rcx, 0x9a998e928d225c5c
lea rdx, [rbp + 7]
movabs rax, 0x83adf278e0bcda43
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0x64f5614daad671dd
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0x7c6ca7546be20ea7
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, 0xf78d961d8cd5bb25
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x1810028d8b551b2
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0x7c6ca73f048d6687
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 0x18004d47c
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18004d355
jmp 0x18004d47c
mov rcx, qword [0x180161718]
test rcx, rcx
je 0x18004d499
cmp byte [0x180161710], 0
jne 0x18004d499
mov edx, 1
call fcn.1800445b0
test eax, eax
je 0x18004d4b0
mov dl, 3
call fcn.18005c2c0
movabs rcx, 0x9a998e928d225c5c
lea rdx, [rbp + 7]
movabs rax, 0x83adf278e0bcda43
mov r8d, edx
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 7], rax
movabs rax, 0x64ed6249b6d071dd
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0xf], rax
movabs rax, 0x7c6ca7546be20ea7
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, 0xf78d961d8cd5bb25
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x27], rax
movabs rax, 0x1810028d8b551b2
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
movabs rax, 0x7c6ca73f048d6687
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 0x18004d47c
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x18004d471
xor r9d, r9d
mov qword [rsp + 0x20], 0
sub r8d, edx
lea rdx, [rbp + 7]
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800c16d0
add rsp, 0x90
pop rbp
ret
mov byte [0x180161710], 1
mov al, 1
jmp 0x18004d49b