Function at 0x180249250
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, r9
mov qword [rsp + 0x50], r9
mov r14, r8
mov rsi, rdx
mov qword [rbp - 8], rdx
mov qword [rbp], r8
mov qword [rbp + 8], r9
mov r15, qword [rbp + 0x100]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x60], r15
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rax, qword [0x1803cd028]
cmp byte [rax + 4], bl
je 0x180249310
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1802492ca
mov rcx, qword [rdx]
call fcn.1801ab770
test al, al
je 0x1802492eb
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x180249a2e
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.1801ac150
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x30]
call fcn.180223640
jmp 0x1802498f8
mov r10, r14
cmp qword [r8 + 0x18], 0x10
jb 0x18024931d
mov r10, qword [r8]
mov r11, qword [r8 + 0x10]
mov r9d, ebx
add r11, r10
cmp r10, r11
je 0x180249366
nop dword [rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x180249330
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x40], eax
mov r15, qword [rsi + 0x10]
mov rcx, rsi
mov rdi, qword [rsi + 0x18]
cmp rdi, 0x10
jb 0x18024938f
mov rcx, qword [rsi]
mov eax, 0x16
movabs r13, 0x7fffffffffffffff
cmp r15, 4
jne 0x18024940c
mov r8, r15
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180249407
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], 0xd
mov qword [rbp + 0x48], 0xf
movsd xmm0, qword [0x1802c6e98]
movsd qword [rbp + 0x30], xmm0
mov r12d, dword [0x1802c6ea0]
mov dword [rbp + 0x38], r12d
movzx r13d, byte [0x1802c6ea4]
mov byte [rbp + 0x3c], r13b
mov byte [rbp + 0x3d], al
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
lea edi, [r15 - 3]
jmp 0x1802494b0
mov eax, 0x16
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
mov r12, rsi
cmp rdi, 0x10
jb 0x180249427
mov r12, qword [rsi]
cmp r15, r13
ja 0x180249a34
cmp r15, 0x10
jae 0x180249452
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x10], xmm0
movq qword [rbp + 0x10], xmm0
jmp 0x180249493
mov rdi, r15
or rdi, 0xf
cmp rdi, r13
jbe 0x180249463
mov rdi, r13
jmp 0x18024946b
cmp rdi, 0x16
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x10]
call fcn.1800c14d0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], rdi
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov edi, 2
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
mov dword [rsp + 0x30], edi
mov rax, qword [0x1803cd028]
cmp byte [rax + 4], 0
jne 0x1802495c2
mov ecx, 0x128
call fcn.1802697d0
mov r15, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180249556
lea rax, [rbp - 0x68]
mov qword [rsp + 0x70], rax
lea rax, [0x1802dc310]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x30], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.1800be2c0
mov rcx, qword [rsp + 0x38]
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
lea rcx, [0x180298f79]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x40]
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.1801d5950
jmp 0x180249559
mov rax, rbx
or edi, 0x10
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x38], rax
mov rdx, qword [0x1803cd010]
cmp rdx, qword [0x1803cd018]
je 0x18024958c
mov qword [rsp + 0x38], rbx
mov qword [rdx], rax
add qword [0x1803cd010], 8
jmp 0x18024959e
lea r8, [rsp + 0x38]
lea rcx, [0x1803cd008]
call fcn.1801c6c80
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1802495b3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
test dil, 2
je 0x18024961c
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x18024961c
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180249608
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180249608
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
test dil, 1
je 0x180249676
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x180249676
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180249662
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180249662
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
mov rax, qword [0x1803cd028]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rbp + 0x88], rbx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1802496bf
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
call qword [rax]
mov qword [rbp + 0x88], rax
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
mov r9, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1802496cc
mov r9, qword [r14]
mov r11, qword [r14 + 0x10]
mov r10d, ebx
add r11, r9
cmp r9, r11
je 0x180249716
nop dword [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x1802496e0
lea ecx, [r10 + r10*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x40], eax
mov r15, qword [rsi + 0x10]
mov rcx, rsi
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x18024973f
mov rcx, qword [rsi]
cmp r15, 4
jne 0x180249797
mov r8, r15
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180249793
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], 0xd
mov qword [rbp + 0x48], 0xf
movsd xmm0, qword [0x1802c6e98]
movsd qword [rbp + 0x30], xmm0
mov dword [rbp + 0x38], r12d
mov byte [rbp + 0x3c], r13b
mov byte [rbp + 0x3d], al
lea rdx, [rbp + 0x30]
or edi, r15d
jmp 0x18024982d
mov rax, qword [rsi + 0x18]
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
mov r12, rsi
cmp rax, 0x10
jb 0x1802497b2
mov r12, qword [rsi]
movabs r13, 0x7fffffffffffffff
cmp r15, r13
ja 0x180249a28
cmp r15, 0x10
jae 0x1802497e2
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x10], xmm0
jmp 0x180249826
mov rax, r15
or rax, 0xf
cmp rax, r13
ja 0x1802497fe
mov r13, rax
cmp rax, 0x16
mov eax, 0x16
cmovb r13, rax
lea rdx, [r13 + 1]
lea rcx, [rbp + 0x10]
call fcn.1800c14d0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], r13
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 0x10]
or edi, 8
mov dword [rsp + 0x30], edi
lea r9, [rbp + 0x50]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1801c9540
nop
test dil, 8
je 0x18024988d
and edi, 0xfffffff7
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x18024988d
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180249887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180249887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
nop
test dil, 4
je 0x1802498d2
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1802498d2
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802498cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802498cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
nop
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x1802498ee
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180249932
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18024992d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180249a13
mov rcx, r8
call fcn.18026980c
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18024997b
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x180249976
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180249a1a
mov rcx, r8
call fcn.18026980c
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1802499c1
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1802499bc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180249a21
mov rcx, r8
call fcn.18026980c
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1802499e9
mov rax, qword [rcx]
cmp rcx, r15
setne dl
call qword [rax + 0x20]
mov qword [r15 + 0x38], rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180269d00
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800c1490
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
call fcn.1800c1490
int3