Function at 0x18004ff50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x18015f040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x18004fffe
mov rcx, rdi
call fcn.180047dd0
mov r10, qword [rbx + 8]
mov r11, rax
mov rcx, r10
mov r8, rax
test rax, rax
je 0x18004ffc5
mov r9, rdi
sub r9, r10
movzx edx, byte [r9 + rcx]
dec r8
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
cmp dl, al
jne 0x18004ffbf
test dl, dl
je 0x18004ffc5
test r8, r8
jne 0x18004ffa1
jmp 0x18004ffc5
mov ecx, edx
sub ecx, eax
jne 0x18004fff5
cmp byte [r10], 0
mov rax, r10
je 0x18004ffd8
nop
inc rax
cmp byte [rax], 0
jne 0x18004ffd0
sub rax, r10
cmp rax, r11
je 0x1800501ed
lea rcx, [r10 + r11]
call fcn.180050370
test eax, eax
jg 0x1800501ed
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x18004ff81
mov dl, 3
call fcn.18005c2c0
movabs rax, 0xa5ab7fd1a01298b9
lea r8, [rbp - 0x19]
mov qword [rbp - 0x79], rax
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x79]
movabs r15, 0xd18b1bb4cc7bf9df
mov qword [rbp - 0x19], rax
movabs r14, 0x27837a915072df08
movabs rax, 0x4ea31eff3914ff67
mov edx, r8d
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x11], rax
movabs rax, 0x33094db0219bc2af
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 9], rax
movabs rax, 0xc09c08fba6143a92
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 1], rax
mov qword [rbp - 0x79], r15
mov rax, qword [rbp - 0x79]
mov qword [rbp + 7], rax
mov qword [rbp - 0x79], r14
mov rax, qword [rbp - 0x79]
mov qword [rbp + 0xf], rax
movabs rax, 0x566a2cd653feb6c1
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp + 0x17], rax
movabs rax, 0xc09c08fba61418b2
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
movdqa xmm1, xmmword [rbp - 0x19]
xorps xmm1, xmmword [rbp + 7]
movdqa xmm0, xmmword [rbp - 9]
mov qword [rbp + 0x1f], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmmword [rbp - 9], xmm0
test al, al
je 0x1800500f4
inc rcx
cmp byte [rcx], 0
jne 0x1800500e5
mov r8d, ecx
lea rdx, [rbp - 0x19]
xor esi, esi
sub r8d, edx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x19]
lea rcx, [rsi - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov r8d, edi
cmp byte [rdi], sil
je 0x18005012b
nop word [rax + rax]
inc rax
mov r8, rax
cmp byte [rax], sil
jne 0x180050120
xor r9d, r9d
mov qword [rsp + 0x20], rsi
sub r8d, edi
mov rdx, rdi
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xd18b1bb4cc7bf9fd
lea r8, [rbp - 0x29]
mov qword [rbp - 0x79], rax
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x79]
mov edx, r8d
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x79], r14
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x79], r15
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x79], r14
mov rax, qword [rbp - 0x79]
movdqa xmm0, xmmword [rbp - 0x29]
mov qword [rbp - 0x61], rax
xorps xmm0, xmmword [rbp - 0x69]
movq rax, xmm0
movdqa xmmword [rbp - 0x29], xmm0
test al, al
je 0x1800501af
nop
inc rcx
cmp byte [rcx], sil
jne 0x1800501a0
mov r8d, ecx
lea rdx, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
sub r8d, edx
lea rdx, [rbp - 0x29]
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800c16d0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [rbx]
mov dl, 1
mov rdi, rax
call fcn.18005c2c0
movabs rax, 0xb5ee69c1b80b98bc
lea r8, [rbp - 0x49]
mov qword [rbp - 0x79], rax
movabs r15, 0xd18b1bb4cc7bf9df
mov rcx, qword [rbp - 0x79]
movabs rax, 0x27837a915072fd28
mov qword [rbp - 0x49], rcx
movabs r14, 0x27837a915072df08
mov qword [rbp - 0x79], rax
mov edx, r8d
mov rcx, qword [rbp - 0x79]
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x79], r15
mov rcx, qword [rbp - 0x79]
mov qword [rbp - 0x59], rcx
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x79], r14
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x51], rax
movdqa xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp - 0x49]
movq rax, xmm0
movdqa xmmword [rbp - 0x49], xmm0
test al, al
je 0x180050282
inc rcx
cmp byte [rcx], 0
jne 0x180050273
mov r8d, ecx
lea rdx, [rbp - 0x49]
xor esi, esi
sub r8d, edx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x49]
lea rcx, [rsi - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 8]
mov rax, rdx
mov r8d, edx
cmp byte [rdx], sil
je 0x1800502bb
nop dword [rax]
inc rax
mov r8, rax
cmp byte [rax], sil
jne 0x1800502b0
xor r9d, r9d
mov qword [rsp + 0x20], rsi
sub r8d, edx
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xb7f97ec0a212d9fd
lea r8, [rbp - 0x39]
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x39]
mov rax, qword [rbp - 0x79]
mov ecx, r8d
mov qword [rbp - 0x39], rax
movabs rax, 0x27837a915017bc69
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x79], r15
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x79], r14
mov rax, qword [rbp - 0x79]
movdqa xmm0, xmmword [rbp - 0x39]
mov qword [rbp - 0x61], rax
xorps xmm0, xmmword [rbp - 0x69]
movq rax, xmm0
movdqa xmmword [rbp - 0x39], xmm0
test al, al
je 0x180050345
inc rdx
cmp byte [rdx], sil
jne 0x180050336
mov r8d, edx
lea rcx, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
sub r8d, ecx
lea rdx, [rbp - 0x39]
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
jmp 0x1800501ca