Function at 0x18024a400
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 - 0xd0]
sub rsp, 0x1d0
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r13, r9
mov qword [rsp + 0x48], r9
mov r14, r8
mov rsi, rdx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x48], r9
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov rax, qword [0x1803cd028]
cmp byte [rax + 4], dil
je 0x18024a510
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x68], rdi
mov rcx, qword [r9 + 0x38]
test rcx, rcx
je 0x18024a498
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
call qword [rax]
mov qword [rbp + 0x68], rax
mov qword [rbp - 0x50], rdi
mov ecx, 0x48
call fcn.1802697d0
mov rbx, rax
lea rax, [0x1802d0be0]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov qword [rcx + 0x38], rdi
lea rdx, [rbp + 0x30]
call fcn.18021ca90
mov qword [rbp - 0x50], rbx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1800be2c0
nop
lea r8, [rsp + 0x78]
movss xmm1, dword [rbp + 0x130]
mov rcx, rax
call fcn.180223710
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x18024a505
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
inc dword [0x18041fbb0]
jmp 0x18024aa98
cmp byte [rbp + 0x138], 0
jne 0x18024a808
mov r10, r14
cmp qword [r8 + 0x18], 0x10
jb 0x18024a52a
mov r10, qword [r8]
mov r11, qword [r8 + 0x10]
mov r9d, edi
add r11, r10
cmp r10, r11
je 0x18024a576
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 0x18024a540
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x40], eax
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18024a59c
mov rcx, qword [rsi]
cmp r8, 4
jne 0x18024a5f9
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18024a5f9
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0xd
mov qword [rbp - 0x18], 0xf
movsd xmm6, qword [0x1802c6e98]
movsd qword [rbp - 0x30], xmm6
mov r12d, dword [0x1802c6ea0]
mov dword [rbp - 0x28], r12d
movzx r13d, byte [0x1802c6ea4]
mov byte [rbp - 0x24], r13b
mov byte [rbp - 0x23], al
lea r15, [rbp - 0x30]
lea ebx, [rax + 1]
jmp 0x18024a624
mov rdx, rsi
lea rcx, [rbp + 0x10]
call fcn.1800be2c0
mov r15, rax
mov ebx, 2
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x1803cd028]
cmp byte [rcx + 4], 0
jne 0x18024a74c
mov ecx, 0x128
call fcn.1802697d0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18024a6d8
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [0x1802dc230]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
lea rcx, [0x180298f79]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x40]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1801d5950
jmp 0x18024a6db
mov rax, rdi
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rax
mov rdx, qword [0x1803cd010]
cmp rdx, qword [0x1803cd018]
je 0x18024a70e
mov qword [rsp + 0x38], rdi
mov qword [rdx], rax
add qword [0x1803cd010], 8
jmp 0x18024a720
lea r8, [rsp + 0x38]
lea rcx, [0x1803cd008]
call fcn.1801c6c80
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18024a735
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
test bl, 2
je 0x18024a7be
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x18024a7ad
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024a791
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024a791
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]
movsd xmm6, qword [0x1802c6e98]
movdqa xmm0, xmmword [0x18029c040]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
test bl, 1
je 0x18024a81f
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18024a81f
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024a803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024a803
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
movsd xmm6, qword [0x1802c6e98]
mov r12d, dword [0x1802c6ea0]
movzx r13d, byte [0x1802c6ea4]
mov rax, qword [0x1803cd028]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x50], rcx
mov qword [rbp + 0xa8], rdi
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x18024a870
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
call qword [rax]
mov qword [rbp + 0xa8], rax
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
mov r9, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18024a87d
mov r9, qword [r14]
mov r11, qword [r14 + 0x10]
mov r10d, edi
add r11, r9
cmp r9, r11
je 0x18024a8c6
nop dword [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 0x18024a890
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 0x18024a8ef
mov rcx, qword [rsi]
cmp r15, 4
jne 0x18024a93f
mov r8, r15
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18024a93b
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0xd
mov qword [rbp + 8], 0xf
movsd qword [rbp - 0x10], xmm6
mov dword [rbp - 8], r12d
mov byte [rbp - 4], r13b
mov byte [rbp - 3], al
lea rdx, [rbp - 0x10]
or ebx, r15d
jmp 0x18024a9d4
mov rax, qword [rsi + 0x18]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov r12, rsi
cmp rax, 0x10
jb 0x18024a95a
mov r12, qword [rsi]
movabs r13, 0x7fffffffffffffff
cmp r15, r13
ja 0x18024ab80
cmp r15, 0x10
jae 0x18024a98a
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 0xf
movups xmm0, xmmword [r12]
movups xmmword [rbp - 0x30], xmm0
jmp 0x18024a9cd
mov rax, r15
or rax, 0xf
cmp rax, r13
ja 0x18024a9a5
mov r13, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r13, rcx
lea rdx, [r13 + 1]
lea rcx, [rbp - 0x30]
call fcn.1800c14d0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r13
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x30]
or ebx, 8
mov dword [rsp + 0x30], ebx
lea r9, [rbp + 0x70]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1801c9880
nop
test bl, 8
je 0x18024aa33
and ebx, 0xfffffff7
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18024aa33
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024aa2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024aa2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
nop
test bl, 4
je 0x18024aa77
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18024aa77
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024aa71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024aa71
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 + 0xa8]
test rcx, rcx
je 0x18024aa93
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r13, qword [rsp + 0x48]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18024aad2
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18024aacd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18024ab72
mov rcx, r8
call fcn.18026980c
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18024ab17
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x18024ab12
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18024ab79
mov rcx, r8
call fcn.18026980c
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x18024ab40
mov rax, qword [rcx]
cmp rcx, r13
setne dl
call qword [rax + 0x20]
mov qword [r13 + 0x38], rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180269d00
mov rbx, qword [rsp + 0x210]
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d0
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 fcn.1800c1490
int3