Function at 0x180249a40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
movaps xmmword [rsp + 0x2a0], xmm6
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13, r9
mov qword [rsp + 0x50], r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp - 0x20], r9
mov r12, qword [rbp + 0x220]
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x18], r12
xor edi, edi
mov dword [rsp + 0x30], edi
mov rax, qword [0x1803cd028]
cmp byte [rax + 4], dil
je 0x180249c2f
cmp byte [0x18041fbb4], dil
jne 0x180249b68
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rbp + 0xc8], rdi
mov rcx, qword [r9 + 0x38]
test rcx, rcx
je 0x180249afe
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
call qword [rax]
mov qword [rbp + 0xc8], rax
mov qword [rbp - 0x28], rdi
mov ecx, 0x48
call fcn.1802697d0
mov rbx, rax
lea rax, [0x1802d0c18]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov qword [rcx + 0x38], rdi
lea rdx, [rbp + 0x90]
call fcn.18021ca90
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x60]
lea rcx, [0x1803cd040]
call fcn.1800e5450
nop
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x180249b61
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov byte [0x18041fbb4], 1
cmp byte [rsi], 0
je 0x180249b77
mov byte [0x18041fbb4], 0
mov byte [rsi], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x108], rdi
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x180249bb1
mov rax, qword [rcx]
lea rdx, [rbp + 0xd0]
call qword [rax]
mov qword [rbp + 0x108], rax
mov qword [rbp - 0x68], rdi
mov ecx, 0x48
call fcn.1802697d0
mov rbx, rax
lea rax, [0x1802d0c50]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov qword [rcx + 0x38], rdi
lea rdx, [rbp + 0xd0]
call fcn.18021ca90
mov qword [rbp - 0x68], rbx
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.1800be2c0
nop
lea r8, [rsp + 0x60]
movss xmm1, dword [0x1802de080]
mov rcx, rax
call fcn.180223710
nop
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x18024a2eb
mov rax, qword [rcx]
lea rdx, [rbp + 0xd0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x18024a2eb
lea rax, [rbp + 0x110]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x148], rdi
mov rcx, qword [r9 + 0x38]
test rcx, rcx
je 0x180249c5e
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
call qword [rax]
mov qword [rbp + 0x148], rax
mov r10, r15
cmp qword [r15 + 0x18], 0x10
jb 0x180249c6b
mov r10, qword [r15]
mov r11, qword [r15 + 0x10]
mov r9d, edi
add r11, r10
cmp r10, r11
je 0x180249cb6
nop word [rax + 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 0x180249c80
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x40], eax
mov rsi, qword [r14 + 0x10]
mov rcx, r14
mov rbx, qword [r14 + 0x18]
cmp rbx, 0x10
jb 0x180249cdf
mov rcx, qword [r14]
mov eax, 0x16
movabs r13, 0x7fffffffffffffff
cmp rsi, 4
jne 0x180249d60
mov r8, rsi
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180249d5b
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], 0xd
mov qword [rbp + 0x80], 0xf
movsd xmm6, qword [0x1802c6e98]
movsd qword [rbp + 0x68], xmm6
mov r12d, dword [0x1802c6ea0]
mov dword [rbp + 0x70], r12d
movzx r13d, byte [0x1802c6ea4]
mov byte [rbp + 0x74], r13b
mov byte [rbp + 0x75], al
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
mov esi, 1
jmp 0x180249e0c
mov eax, 0x16
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
mov r12, r14
cmp rbx, 0x10
jb 0x180249d7b
mov r12, qword [r14]
cmp rsi, r13
ja 0x18024a3f5
cmp rsi, 0x10
jae 0x180249da6
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], 0xf
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x48], xmm0
movq qword [rbp + 0x48], xmm0
jmp 0x180249de7
mov rbx, rsi
or rbx, 0xf
cmp rbx, r13
jbe 0x180249db7
mov rbx, r13
jmp 0x180249dbf
cmp rbx, 0x16
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x48]
call fcn.1800c14d0
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rbx
lea r8, [rsi + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov esi, 2
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
mov dword [rsp + 0x30], esi
mov rax, qword [0x1803cd028]
cmp byte [rax + 4], 0
jne 0x180249f56
mov ecx, 0x128
call fcn.1802697d0
mov r12, rax
mov qword [rbp - 0x10], rax
test rax, rax
je 0x180249ee2
lea rax, [rbp - 8]
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x30], rdi
mov ecx, 0x48
call fcn.1802697d0
mov rbx, rax
lea rax, [0x1802dc380]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov qword [rcx + 0x38], rdi
lea rdx, [rbp + 0x110]
call fcn.18021ca90
mov qword [rbp + 0x30], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [0x180298f79]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.1801d5950
jmp 0x180249ee5
mov rax, rdi
or esi, 0x10
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x38], rax
mov rdx, qword [0x1803cd010]
cmp rdx, qword [0x1803cd018]
je 0x180249f18
mov qword [rsp + 0x38], rdi
mov qword [rdx], rax
add qword [0x1803cd010], 8
jmp 0x180249f2a
lea r8, [rsp + 0x38]
lea rcx, [0x1803cd008]
call fcn.1801c6c80
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180249f3f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
test sil, 2
je 0x180249fb8
and esi, 0xfffffffd
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x180249fb8
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180249f9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180249f9c
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]
test sil, 1
je 0x18024a01d
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x18024a01d
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024a001
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024a001
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]
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x18024a053
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
mov rax, qword [0x1803cd028]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x58], rcx
mov qword [rbp + 0x188], rdi
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x18024a0aa
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
call qword [rax]
mov qword [rbp + 0x188], rax
movzx r13d, byte [0x1802c6ea4]
mov r12d, dword [0x1802c6ea0]
movsd xmm6, qword [0x1802c6e98]
mov r10, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18024a0b7
mov r10, qword [r15]
mov r11, qword [r15 + 0x10]
mov r9d, edi
add r11, r10
cmp r10, r11
je 0x18024a106
nop word [rax + 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 0x18024a0d0
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x40], eax
mov rbx, qword [r14 + 0x10]
mov rcx, r14
mov rax, qword [r14 + 0x18]
cmp rax, 0x10
jb 0x18024a12f
mov rcx, qword [r14]
cmp rbx, 4
jne 0x18024a181
mov r8, rbx
lea rdx, str.Misc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18024a17d
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], 0xd
mov qword [rbp + 0x80], 0xf
movsd qword [rbp + 0x68], xmm6
mov dword [rbp + 0x70], r12d
mov byte [rbp + 0x74], r13b
mov byte [rbp + 0x75], al
lea rdx, [rbp + 0x68]
or esi, ebx
jmp 0x18024a217
mov rax, qword [r14 + 0x18]
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
mov r12, r14
cmp rax, 0x10
jb 0x18024a19c
mov r12, qword [r14]
movabs r13, 0x7fffffffffffffff
cmp rbx, r13
ja 0x18024a3ef
cmp rbx, 0x10
jae 0x18024a1cc
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], 0xf
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x48], xmm0
jmp 0x18024a210
mov rax, rbx
or rax, 0xf
cmp rax, r13
ja 0x18024a1e8
mov r13, rax
cmp rax, 0x16
mov eax, 0x16
cmovb r13, rax
lea rdx, [r13 + 1]
lea rcx, [rbp + 0x48]
call fcn.1800c14d0
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], r13
lea r8, [rbx + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 0x48]
or esi, 8
mov dword [rsp + 0x30], esi
lea r9, [rbp + 0x150]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1801c9bc0
nop
test sil, 8
je 0x18024a27a
and esi, 0xfffffff7
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x18024a27a
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024a274
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024a274
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
nop
test sil, 4
je 0x18024a2c2
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x18024a2c2
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18024a2bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18024a2bc
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 + 0x188]
test rcx, rcx
je 0x18024a2e1
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18024a325
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x18024a320
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18024a3e1
mov rcx, r8
call fcn.18026980c
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18024a36f
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x18024a36a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18024a3e8
mov rcx, r8
call fcn.18026980c
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x18024a39b
mov rax, qword [rcx]
cmp rcx, r13
sete dl
xor dl, 1
call qword [rax + 0x20]
mov qword [r13 + 0x38], rdi
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x18024a3b6
mov rax, qword [rcx]
cmp rcx, r12
setne dl
call qword [rax + 0x20]
mov qword [r12 + 0x38], rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180269d00
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
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
nop
call fcn.1800c1490
int3