Function at 0x1800bebc0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xe0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r15, r9
mov rdi, r8
mov r12, rdx
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x61], rsi
mov dword [rbp + 0x7f], esi
mov dword [rbp + 0x77], esi
mov r13d, esi
mov dword [rbp + 0x57], esi
cmp byte [rcx + 3], sil
je 0x1800bec1f
mov edx, 0x8000b
mov r8d, 0x8fe
jmp 0x1800bf189
test r12, r12
je 0x1800bf17e
test rdi, rdi
je 0x1800bf17e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rbx + 0x409], sil
jne 0x1800bec90
test r15, r15
je 0x1800bec9e
mov rax, r15
shr rax, 0x20
mov dword [rbp + 0x77], eax
xor r9d, r9d
lea r8, [rbp + 0x77]
mov edx, r15d
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, eax
cmp eax, 0xffffffff
je 0x1800bec7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800bec9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x91d
mov edx, eax
mov rcx, rbx
jmp 0x1800bf189
mov r13d, dword [rbx + 0x470]
mov qword [rbx + 0x470], r15
cmp byte [rbx + 0x409], sil
je 0x1800bf107
cmp byte [rbx + 4], sil
je 0x1800bf107
mov rcx, qword [rbx + 0x470]
mov rdx, qword [rbx + 0x3f0]
add rdx, rcx
mov qword [rbp - 0x51], rdx
mov r14, qword [rbx + 0x478]
add r14, rcx
mov ecx, dword [0x180195f94]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18019d590], ecx
jle 0x1800befb1
lea rcx, [0x18019d590]
call fcn.180157af0
or rsi, 0xffffffffffffffff
cmp dword [0x18019d590], esi
jne 0x1800befaf
lea rax, [rbp - 0x29]
mov qword [rbp - 0x59], rax
mov dword [rsp + 0x30], 0x56
mov eax, dword [rsp + 0x30]
xor al, 0x57
mov byte [rsp + 0x34], al
mov eax, dword [rsp + 0x30]
inc al
mov dl, 0x72
xor al, dl
mov byte [rsp + 0x35], al
mov eax, dword [rsp + 0x30]
add al, 2
xor al, 0x69
mov byte [rsp + 0x36], al
mov eax, dword [rsp + 0x30]
add al, 3
xor al, 0x74
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x30]
add al, 4
mov cl, 0x65
xor al, cl
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x30]
add al, 5
xor al, 0x50
mov byte [rbp - 0x80], al
mov eax, dword [rsp + 0x30]
add al, 6
xor al, dl
mov byte [rbp - 0x7f], al
mov eax, dword [rsp + 0x30]
add al, 7
xor al, 0x6f
mov byte [rbp - 0x7e], al
mov eax, dword [rsp + 0x30]
add al, 8
xor al, 0x63
mov byte [rbp - 0x7d], al
mov eax, dword [rsp + 0x30]
add al, 9
xor al, cl
mov byte [rbp - 0x7c], al
mov eax, dword [rsp + 0x30]
add al, 0xa
xor al, 0x73
mov byte [rbp - 0x7b], al
mov eax, dword [rsp + 0x30]
add al, 0xb
xor al, 0x73
mov byte [rbp - 0x7a], al
mov eax, dword [rsp + 0x30]
add al, 0xc
xor al, 0x4d
mov byte [rbp - 0x79], al
mov eax, dword [rsp + 0x30]
add al, 0xd
xor al, cl
mov byte [rbp - 0x78], al
mov eax, dword [rsp + 0x30]
add al, 0xe
xor al, 0x6d
mov byte [rbp - 0x77], al
mov eax, dword [rsp + 0x30]
add al, 0xf
xor al, 0x6f
mov byte [rbp - 0x76], al
mov eax, dword [rsp + 0x30]
add al, 0x10
xor al, dl
mov byte [rbp - 0x75], al
mov eax, dword [rsp + 0x30]
add al, 0x11
xor al, 0x79
mov byte [rbp - 0x74], al
xor eax, eax
mov byte [rbp - 0x73], al
mov al, byte [rsp + 0x34]
xor r9d, r9d
mov edx, r9d
mov al, byte [rsp + rdx + 0x34]
mov ecx, dword [rsp + 0x30]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x34], cl
inc rdx
cmp rdx, 0x12
jb 0x1800bee03
mov byte [rbp - 0x73], r9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r9
mov qword [rbp - 0x11], r9
lea rax, [rsp + 0x34]
mov r8, rsi
inc r8
cmp byte [rax + r8], r9b
jne 0x1800bee37
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x29]
call fcn.18000c7ac
nop
mov dword [rbp - 0x71], 0x1a
mov eax, dword [rbp - 0x71]
xor al, 0x6b
mov byte [rbp - 0x6d], al
mov eax, dword [rbp - 0x71]
inc al
xor al, 0x65
mov byte [rbp - 0x6c], al
mov eax, dword [rbp - 0x71]
add al, 2
xor al, 0x72
mov byte [rbp - 0x6b], al
mov eax, dword [rbp - 0x71]
add al, 3
xor al, 0x6e
mov byte [rbp - 0x6a], al
mov eax, dword [rbp - 0x71]
add al, 4
xor al, 0x65
mov byte [rbp - 0x69], al
mov eax, dword [rbp - 0x71]
add al, 5
xor al, 0x6c
mov byte [rbp - 0x68], al
mov eax, dword [rbp - 0x71]
add al, 6
xor al, 0x33
mov byte [rbp - 0x67], al
mov eax, dword [rbp - 0x71]
add al, 7
xor al, 0x32
mov byte [rbp - 0x66], al
xor eax, eax
mov byte [rbp - 0x65], al
mov al, byte [rbp - 0x6d]
xor edx, edx
mov al, byte [rbp + rdx - 0x6d]
mov ecx, dword [rbp - 0x71]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x6d], cl
inc rdx
cmp rdx, 8
jb 0x1800beeae
mov byte [rbp - 0x65], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
lea rax, [rbp - 0x6d]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1800beedd
mov r8, rsi
lea rdx, [rbp - 0x6d]
lea rcx, [rbp - 0x49]
call fcn.18000c7ac
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 7]
call fcn.1800ceb58
nop
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x29]
mov rdx, rax
lea rcx, [0x18019d370]
call fcn.1800c5e3c
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x1800bef61
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800bef5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800bef5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165930]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], sil
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rbp - 0x6d]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x13]
lea rcx, [rsp + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x1801635fc]
call fcn.1801579fc
nop
lea rcx, [0x18019d590]
call fcn.180157a84
jmp 0x1800befb1
xor esi, esi
mov rcx, qword [rbx + 0x478]
cmp r14, rcx
ja 0x1800befca
add rcx, qword [rbx + 0x68]
cmp r14, rcx
jae 0x1800bf083
lea rax, [rbp + 0x57]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1800be190
cmp byte [rbx + 0x48a], sil
je 0x1800bf008
mov r8, rdi
mov rdx, r12
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbp - 0x61], rdi
mov sil, 1
jmp 0x1800bf02e
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, r14
mov rdx, qword [rbx + 0x400]
call fcn.1800bf1b4
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x59], eax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x57]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1800be190
test sil, sil
jne 0x1800bf065
mov r8d, 0x978
mov edx, dword [rbp - 0x59]
jmp 0x1800bec88
cmp rdi, qword [rbp - 0x61]
je 0x1800bf07b
mov edx, 0x80006
mov r8d, 0x97c
jmp 0x1800bec88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [rbx + 0x3f0]
mov rcx, qword [rbp - 0x51]
cmp rcx, r8
ja 0x1800bf09f
mov rdx, qword [rbx + 0x68]
add rdx, r8
cmp rcx, rdx
jae 0x1800bf0b8
cmp r8, qword [rbx + 0x478]
je 0x1800bf0b4
mov r8, rdi
mov rdx, r12
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbp - 0x61], rdi
xor esi, esi
cmp byte [rbx + 0x409], sil
jne 0x1800bf152
test r15, r15
je 0x1800bf15c
xor r9d, r9d
lea r8, [rbp + 0x77]
mov edx, r13d
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800bf0f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800bf15c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x99f
jmp 0x1800bec86
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x7f]
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x400], rsi
jne 0x1800bf16d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800bf16d
mov eax, dword [rbp + 0x7f]
cmp rdi, rax
je 0x1800bf0ba
mov edx, 0x80007
mov r8d, 0x992
jmp 0x1800bec88
mov ecx, r13d
mov qword [rbx + 0x470], rcx
cmp byte [rbx + 4], sil
je 0x1800bf169
add qword [rbx + 0x470], rdi
mov al, 1
jmp 0x1800bf190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x98e
jmp 0x1800bec86
mov edx, 0x57
mov r8d, 0x903
call fcn.1800bb4fc
xor al, al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret