Function at 0x18013d230
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13d, edx
mov r15, rcx
xor ecx, ecx
mov dword [rbp + 0x7f], ecx
mov esi, dword [0x1801912a8]
mov eax, dword [0x1801912ac]
mov dword [rsp + 0x20], eax
mov rdi, qword [0x1801912b8]
mov rbx, qword [0x1801912d0]
mov r12, qword [0x1801912e0]
mov rax, qword [0x1801912d8]
mov qword [rsp + 0x48], rax
mov eax, dword [0x180191258]
lea r14d, [rcx + 1]
test eax, eax
je 0x18013d7e6
cmp eax, r14d
je 0x18013d2bb
cmp eax, 3
jne 0x18013d2b2
mov byte [rbp + 0x77], cl
jmp 0x18013d2bf
cmp eax, 2
jne 0x18013d812
mov byte [rbp + 0x77], r14b
mov r8d, 4
lea rdx, [0x1801912b0]
lea rcx, [rbp + 0x7f]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor ecx, ecx
cmp qword [0x1801901a8], rcx
je 0x18013d332
xorps xmm0, xmm0
cvtsi2sd xmm0, r13
divsd xmm0, qword [0x180165910]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
cvttsd2si rcx, xmm0
mov eax, dword [0x1801912b0]
and ecx, 0x1f
rol eax, cl
mov dword [rsp + 0x40], eax
mov edx, 8
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x7f]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
jmp 0x18013d342
mov edx, 8
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
xor r13d, r13d
test rbx, rbx
je 0x18013d812
test r12, r12
je 0x18013d812
test esi, esi
jne 0x18013d361
mov byte [rbp + 0x77], r13b
jmp 0x18013d3b8
cmp esi, r14d
jne 0x18013d381
movzx edx, byte [rbp + 0x7f]
test rbx, rbx
je 0x18013d3b8
mov rax, rdi
mov rcx, rbx
xor byte [rax], dl
add rax, r14
sub rcx, r14
jne 0x18013d375
jmp 0x18013d3b8
cmp esi, 2
jne 0x18013d3b8
mov edx, dword [rbp + 0x7f]
mov rcx, rbx
shr rcx, 2
mov rax, r13
test rcx, rcx
je 0x18013d3a3
xor dword [rdi + rax*4], edx
add rax, r14
cmp rax, rcx
jb 0x18013d398
lea rax, [rcx*4]
jmp 0x18013d3b3
xor byte [rax + rdi], dl
add rax, r14
cmp rax, rbx
jb 0x18013d3ad
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r13
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r13
mov rdx, rbx
lea rcx, [rbp - 0x79]
call fcn.1800255bc
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800255bc
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x79]
call fcn.18002195c
test al, al
jne 0x18013d498
mov qword [r15], r13
mov qword [r15 + 8], r13
mov ebx, 0x1000
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x18013d458
mov rdx, qword [rbp - 0x69]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x18013d452
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013d7df
call fcn.180157a14
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18013d74f
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x18013d74a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013d740
jmp 0x18013d74a
mov rdi, qword [rsp + 0x28]
cmp byte [0x180190191], r13b
mov r13, qword [rsp + 0x30]
je 0x18013d4b9
mov r8, r13
sub r8, rdi
mov rdx, rdi
call fcn.18009f990
sub r13, rdi
mov rdx, r13
lea rcx, [0x1801912b8]
call fcn.1800255bc
mov r8, r13
mov rdx, rdi
mov rcx, qword [0x1801912b8]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov r12, qword [0x1801912b8]
mov rbx, qword [rbp - 0x71]
mov r8, rbx
mov rsi, qword [rbp - 0x79]
sub r8, rsi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov r8, r13
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rax, qword [rsp + 0x30]
cmp rdi, rax
cmovne rax, rdi
mov qword [rsp + 0x30], rax
cmp rsi, rbx
cmovne rbx, rsi
mov qword [rbp - 0x71], rbx
mov r8, r13
mov eax, 0x90
cmp r13, rax
cmova r8, rax
mov rdx, r12
lea rcx, [rbp - 0x19]
call fcn.1800b98f4
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
movdqa xmm1, xmmword [0x180165920]
movdqu xmmword [rbp - 0x51], xmm1
xor eax, eax
mov word [rbp - 0x61], ax
lea rax, [r13 - 0x10]
mov ebx, 0x1000
cmp rax, 0x90
jbe 0x18013d61f
lea rdx, [r12 - 0x10]
add rdx, r13
mov r8d, 0x10
lea rcx, [rbp - 0x41]
call fcn.1800b98f4
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x61]
cmp rcx, rax
je 0x18013d616
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x18013d5dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, rbx
jb 0x18013d5d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013d5d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
mov rax, qword [rsp + 0x20]
movdqa xmm0, xmmword [0x180165920]
movdqu xmmword [rbp - 0x51], xmm0
xor ecx, ecx
mov word [rbp - 0x61], cx
lea r8d, [rcx + 0x20]
mov rdx, rax
lea rcx, [rbp - 0x61]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov rax, qword [rsp + 0x20]
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 7
mov word [rax], cx
lea rcx, [rbp - 0x41]
call fcn.18000bd8c
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov r8d, 6
lea rdx, str._t_n_v_f_r
lea rcx, [rbp - 0x41]
call fcn.18000c67c
nop
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.1800ab28c
mov rcx, rax
call fcn.18000bd8c
nop
lea rcx, [rbp - 0x41]
call fcn.18000bd8c
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 7]
call fcn.18000be28
mov rcx, rax
call fcn.18000bd8c
xor eax, eax
cmp byte [rbp + 0x77], al
je 0x18013d76d
cmp dword [r12 + r13 - 4], 0xdeadbeef
je 0x18013d76d
xor r13d, r13d
mov r12d, r13d
movabs rax, 0xe000000000000000
mov rcx, r12
or rcx, rax
mov dl, r14b
call fcn.180035dd0
add r12, 0x3e8
cmp r12, 0x493e0
jb 0x18013d69d
mov qword [r15], r13
mov qword [r15 + 8], r13
lea rcx, [rbp - 0x61]
call fcn.18000bd8c
nop
lea rcx, [rbp - 0x19]
call fcn.18000bd8c
nop
test rsi, rsi
je 0x18013d716
mov rdx, qword [rbp - 0x69]
sub rdx, rsi
cmp rdx, rbx
mov rax, rsi
jb 0x18013d70d
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013d7df
mov rcx, rsi
call fcn.180157a14
nop
test rdi, rdi
je 0x18013d74f
mov rdx, qword [rsp + 0x38]
sub rdx, rdi
cmp rdx, rbx
mov rax, rdi
jb 0x18013d747
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013d747
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180157a14
mov rax, r15
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x180191280]
xor r14d, r14d
test rax, rax
je 0x18013d782
add r12, rax
sub r13, rax
mov qword [r15], r12
mov qword [r15 + 8], r13
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x18013d7c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, rbx
jb 0x18013d7c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013d7c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165920]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], r14w
jmp 0x18013d6d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, r14
lea rcx, [0x1801912b8]
call fcn.1800255bc
mov r8, r14
lea rdx, [0x180196539]
mov rcx, qword [0x1801912b8]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
call fcn.1800a9ce8
int3
call fcn.1800a9ce8
int3