Function at 0x18002e570
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x418
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x390], 0xfffffffffffffffe
mov rdi, r8
mov qword [rbp + 0x338], rdx
mov r15, rcx
mov rax, qword [0x180277178]
movzx eax, byte [rax]
test al, al
mov qword [rbp + 0x348], r8
jne 0x18002e6ec
mov ecx, dword [0x18028e888]
test cl, 1
jne 0x18002e6e5
cmp ecx, 0x100
jae 0x18002e5f9
mov edx, ecx
or edx, 0x20000000
mov eax, ecx
lock cmpxchg dword [0x18028e888], edx
jne 0x18002e5f9
lea rax, [0x18028e888]
movd xmm0, ecx
pshufd xmm0, xmm0, 0x50
jmp 0x18002e634
lea rdx, [0x18028e888]
lea r9, [0x18028e868]
lea rcx, [rbp - 0x50]
lea r8, [rbp + 0x220]
call fcn.1801844d0
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x18002e6af
cmp eax, 2
je 0x18002e6e5
mov rax, qword [rbp - 0x48]
movq xmm0, qword [rbp - 0x40]
lea rcx, [0x18028e868]
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rax
movq qword [rbp + 0x110], xmm0
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x100]
call fcn.18018e600
mov r8d, dword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
mov eax, r8d
or eax, 0x20000000
mov edx, dword [rbp - 0x3c]
lock cmpxchg dword [rcx], edx
je 0x18002e6e5
xor edx, r8d
or edx, 0x20000000
mov eax, dword [rcx]
nop word cs:[rax + rax]
mov r8d, eax
xor r8d, edx
lock cmpxchg dword [rcx], r8d
jne 0x18002e690
cmp eax, 0x40000000
jb 0x18002e6e5
xor eax, edx
mov edx, eax
call fcn.18018e0a0
jmp 0x18002e6e5
mov rcx, qword [rbp - 0x48]
mov edx, 0xffffff00
lock xadd dword [rcx], edx
mov eax, edx
and eax, 0x3fffff00
cmp eax, 0x100
setne al
cmp edx, 0x40000000
setb r8b
or r8b, al
jne 0x18002e6e5
add edx, 0xffffff00
call fcn.18018e0a0
mov rdi, qword [rbp + 0x348]
mov rax, qword [rdi + 8]
mov qword [rbp + 0x380], rax
mov rbx, qword [rdi + 0x10]
mov rsi, qword [0x18028e870]
call fcn.180088b70
cmp dword [rax], 1
jne 0x18002e712
add rax, 8
jmp 0x18002e71c
mov rcx, rax
xor edx, edx
call fcn.180197600
mov r8, qword [rax]
mov r9, qword [rsi + 0x28]
cmp r8, r9
jne 0x18002e752
mov qword [rsi + 0x28], 1
mov qword [rbp + 0x230], rsi
mov qword [rbp + 0x220], 1
mov qword [rbp + 0x228], r8
mov byte [rbp + 0x238], 0
jmp 0x18002e761
lea rcx, [rbp + 0x220]
mov rdx, rsi
call fcn.1801861a0
lea rsi, [0x18028e868]
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.180097b30
movups xmm0, xmmword [rbp + 0x220]
movups xmm1, xmmword [rbp + 0x230]
movaps xmmword [rbp + 0x110], xmm1
movaps xmmword [rbp + 0x100], xmm0
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x160], xmm0
movaps xmmword [rbp + 0x170], xmm1
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x180], rax
mov dword [rbp + 0x130], 0
mov rdx, qword [rbp + 0x380]
mov qword [rbp + 0x138], rdx
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x150], rbx
mov byte [rbp + 0x158], 0
mov eax, dword [rbp - 0x50]
mov ecx, dword [rbp - 0x4d]
mov dword [rbp + 0x15c], ecx
mov dword [rbp + 0x159], eax
mov qword [rbp + 0x120], 0
mov qword [rbp + 0x188], rsi
mov qword [rbp + 0x190], rdx
mov qword [rbp + 0x198], rbx
mov qword [rbp + 0x1a0], 0
mov qword [rbp + 0x1b0], 3
movdqu xmm0, xmmword [rbp + 0xc0]
movups xmm1, xmmword [rbp + 0xd0]
movups xmm2, xmmword [rbp + 0xe0]
movups xmm3, xmmword [rbp + 0xf0]
movups xmmword [rbp + 0x1e8], xmm3
movups xmmword [rbp + 0x1d8], xmm2
movups xmmword [rbp + 0x1c8], xmm1
movdqu xmmword [rbp + 0x1b8], xmm0
mov byte [rbp + 0x38f], 1
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x100]
call fcn.18002c8a0
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbp + 0x1e8], xmm0
movdqu xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
movups xmm2, xmmword [rbp - 0x30]
movups xmm3, xmmword [rbp - 0x20]
movups xmmword [rbp + 0x1d8], xmm3
movups xmmword [rbp + 0x1c8], xmm2
movups xmmword [rbp + 0x1b8], xmm1
movdqu xmmword [rbp + 0x1a8], xmm0
cmp qword [rbp + 0x1b0], 2
jne 0x18002e8dd
lea rcx, [rbp + 0x100]
call fcn.18002d670
mov r14, qword [rbp + 0x380]
jmp 0x18002f044
test rbx, rbx
js 0x18002f15a
mov qword [rbp + 0x2a0], r15
je 0x18002e912
movzx eax, byte [0x18028ecd1]
mov esi, 1
mov edx, 1
mov rcx, rbx
call fcn.18006a570
test rax, rax
jne 0x18002e917
jmp 0x18002f15c
mov eax, 1
mov qword [rbp + 0x368], rbx
mov qword [rbp + 0x370], rax
mov qword [rbp + 0x378], 0
lea r15, [rbp - 0x50]
lea rdx, [rbp + 0x100]
mov r8d, 0xf8
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
add qword [rbp + 0x338], 0x18
xor esi, esi
jmp 0x18002e966
dec rdi
mov rsi, rdi
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x60]
movups xmm0, xmmword [r15 + 0xb8]
movups xmm1, xmmword [r15 + 0xc8]
movups xmm2, xmmword [r15 + 0xd8]
movups xmm3, xmmword [r15 + 0xe8]
movaps xmmword [rbp + 0x2e0], xmm0
movaps xmmword [rbp + 0x2f0], xmm1
movaps xmmword [rbp + 0x300], xmm2
movaps xmmword [rbp + 0x310], xmm3
mov qword [rbp + 0x60], 3
movups xmm0, xmmword [rbp + 0xc0]
movups xmm1, xmmword [rbp + 0xd0]
movups xmm2, xmmword [rbp + 0xe0]
movups xmm3, xmmword [rbp + 0xf0]
movups xmmword [r15 + 0xe8], xmm3
movups xmmword [r15 + 0xd8], xmm2
movups xmmword [r15 + 0xc8], xmm1
movups xmmword [r15 + 0xb8], xmm0
cmp rax, 3
jne 0x18002ea20
lea rcx, [rbp + 0x220]
mov rdx, r15
call fcn.18002c8a0
mov rax, qword [rbp + 0x228]
cmp rax, 2
jne 0x18002ea6b
jmp 0x18002ef82
movaps xmm0, xmmword [rbp + 0x2e0]
movaps xmm1, xmmword [rbp + 0x2f0]
movaps xmm2, xmmword [rbp + 0x300]
movaps xmm3, xmmword [rbp + 0x310]
lea rdx, [rbp + 0x228]
movups xmmword [rdx + 0x38], xmm3
movups xmmword [rdx + 0x28], xmm2
movups xmmword [rdx + 0x18], xmm1
movups xmmword [rdx + 8], xmm0
mov qword [rbp + 0x220], rcx
mov qword [rbp + 0x228], rax
cmp rax, 2
je 0x18002ef82
lea rax, [rbp + 0x228]
movdqu xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x300], xmm2
mov rax, qword [rax + 0x40]
mov qword [rbp + 0x320], rax
movaps xmmword [rbp + 0x310], xmm3
movaps xmmword [rbp + 0x2f0], xmm1
movdqa xmmword [rbp + 0x2e0], xmm0
cmp dword [rbp + 0x308], 1
jne 0x18002f0d6
mov rax, qword [rbp + 0x310]
mov rax, qword [rax + 0x20]
cmp rax, 1
jne 0x18002eae0
mov eax, 1
xor ecx, ecx
jmp 0x18002eafa
mov ecx, dword [rbp + 0x30c]
cmp rax, rcx
jbe 0x18002f0d6
lea rax, [rcx*2 + 1]
add rcx, rcx
mov rdx, qword [rbp + 0x300]
cmp rcx, rdx
jae 0x18002f0d6
mov r8, qword [rbp + 0x2f8]
mov r9, qword [r8 + rcx*8]
test r9, r9
je 0x18002f0d6
cmp rax, rdx
jae 0x18002f0d6
mov rdi, qword [r8 + rax*8]
test rdi, rdi
je 0x18002f0d6
dec r9
mov r13, r9
sub r13, rsi
jb 0x18002f0e7
test rsi, rsi
je 0x18002eb66
cmp rbx, rsi
jbe 0x18002eb60
mov rax, qword [rbp + 0x380]
cmp byte [rax + rsi], 0xbf
jg 0x18002eb66
jmp 0x18002f0e7
jne 0x18002f0e7
test r9, r9
je 0x18002eb96
cmp r9, rbx
jae 0x18002eb90
mov rax, qword [rbp + 0x380]
cmp byte [rax + r9], 0xbf
jg 0x18002eb96
jmp 0x18002f0e7
jne 0x18002f0e7
mov rax, qword [rbp + 0x368]
mov r12, qword [rbp + 0x378]
sub rax, r12
cmp rax, r13
jae 0x18002ebd4
mov qword [rsp + 0x20], 1
mov r9d, 1
lea rcx, [rbp + 0x368]
mov rdx, r12
mov r8, r13
call fcn.180186540
mov r12, qword [rbp + 0x378]
add rsi, qword [rbp + 0x380]
mov r14, qword [rbp + 0x370]
lea rcx, [r14 + r12]
mov rdx, rsi
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
add r12, r13
mov qword [rbp + 0x378], r12
lea rcx, [rbp + 0x2e0]
xor edx, edx
lea r8, str.src_translatorlookuplookup_table.rs
call fcn.18007e100
mov r8, rdx
lea rcx, [rbp + 0x2a8]
mov rdx, rax
call fcn.1801780b0
mov rsi, qword [rbp + 0x2b8]
test rsi, rsi
je 0x18002ece0
mov r13, qword [rbp + 0x2b0]
cmp byte [r13], 0x7b
jne 0x18002ece0
cmp byte [r13 + rsi - 1], 0x7d
jne 0x18002ece0
cmp rsi, 1
je 0x18002f107
cmp byte [r13 + 1], 0xbf
jle 0x18002f107
add rsi, 0xfffffffffffffffe
js 0x18002f12a
inc r13
test rsi, rsi
je 0x18002ede4
movzx eax, byte [0x18028ecd1]
mov edx, 1
mov rcx, rsi
call fcn.18006a570
test rax, rax
je 0x18002f12e
mov rcx, rax
mov rdx, r13
mov r8, rsi
mov r13, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x350], rsi
mov qword [rbp + 0x358], r13
mov qword [rbp + 0x360], rsi
cmp byte [r13], 0x3a
mov qword [rbp + 0x340], r13
mov rax, r13
jne 0x18002ee1d
jmp 0x18002eee1
lea rcx, [rbp + 0x2c0]
lea rdx, [rbp + 0x2a8]
call fcn.180178bb0
mov rdx, qword [rbp + 0x2a8]
test rdx, rdx
je 0x18002ed11
mov rcx, qword [rbp + 0x2b0]
mov r8d, 1
call fcn.18006a580
mov r13, qword [rbp + 0x2c8]
mov rsi, qword [rbp + 0x2d0]
mov rax, qword [rbp + 0x368]
sub rax, r12
cmp rax, rsi
jae 0x18002ed6b
mov qword [rbp + 0x330], r13
mov qword [rsp + 0x20], 1
mov r9d, 1
lea rcx, [rbp + 0x368]
mov rdx, r12
mov r8, rsi
call fcn.180186540
mov r14, qword [rbp + 0x370]
mov r12, qword [rbp + 0x378]
mov r13, qword [rbp + 0x330]
add r14, r12
mov rcx, r14
mov rdx, r13
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add r12, rsi
mov qword [rbp + 0x378], r12
mov rdx, qword [rbp + 0x2c0]
test rdx, rdx
je 0x18002eda0
mov r8d, 1
mov rcx, r13
call fcn.18006a580
mov rax, qword [rbp + 0x310]
lock dec qword [rax]
jne 0x18002edb9
lea rcx, [rbp + 0x310]
call fcn.1800297a0
mov rdx, qword [rbp + 0x2f0]
test rdx, rdx
je 0x18002e960
mov rcx, qword [rbp + 0x2f8]
shl rdx, 3
mov r8d, 8
call fcn.18006a580
jmp 0x18002e960
mov eax, 1
mov qword [rbp + 0x340], rax
mov ecx, 1
mov rdx, r13
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x350], 0
mov qword [rbp + 0x358], 1
mov qword [rbp + 0x360], rsi
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x2c0], rax
lea rax, [0x180015400]
mov qword [rbp + 0x2c8], rax
lea rcx, [rbp + 0x350]
mov qword [rbp + 0x2d0], rcx
mov qword [rbp + 0x2d8], rax
lea rax, [0x1801a28c0]
mov qword [rbp + 0x270], rax
mov qword [rbp + 0x278], 2
mov qword [rbp + 0x290], 0
lea rax, [rbp + 0x2c0]
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x288], 2
lea rcx, [rbp + 0xa8]
lea rdx, [rbp + 0x270]
call fcn.1801776a0
mov rdx, qword [rbp + 0x350]
test rdx, rdx
je 0x18002eebc
mov rcx, qword [rbp + 0x358]
mov r8d, 1
call fcn.18006a580
movdqu xmm0, xmmword [rbp + 0xa8]
movdqa xmmword [rbp + 0x350], xmm0
mov rsi, qword [rbp + 0xb8]
mov qword [rbp + 0x360], rsi
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x210], rax
mov qword [rbp + 0x218], rsi
lea rax, [rbp + 0x210]
mov qword [rbp + 0x200], rax
lea rax, [0x180067d10]
mov qword [rbp + 0x208], rax
lea rax, [0x1801a2880]
mov qword [rbp + 0x270], rax
mov qword [rbp + 0x278], 2
mov qword [rbp + 0x290], 0
lea rax, [rbp + 0x200]
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x288], 1
lea rcx, [rbp + 0x2c0]
lea rdx, [rbp + 0x270]
call fcn.1801776a0
mov rdx, qword [rbp + 0x350]
test rdx, rdx
je 0x18002ecf3
mov rcx, qword [rbp + 0x358]
mov r8d, 1
call fcn.18006a580
jmp 0x18002ecf3
lea rcx, [rbp - 0x50]
call fcn.18002d670
test rsi, rsi
je 0x18002efca
cmp rbx, rsi
jbe 0x18002efc8
mov rax, qword [rbp + 0x380]
cmp byte [rax + rsi], 0xbf
jg 0x18002efca
lea rax, [0x1801a27d8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x380]
mov rdx, rbx
mov r8, rsi
mov r9, rbx
call fcn.18019e810
jmp 0x18002f16e
jne 0x18002efa2
sub rbx, rsi
mov rdi, qword [rbp + 0x368]
mov r15, qword [rbp + 0x378]
mov rax, rdi
sub rax, r15
cmp rax, rbx
jae 0x18002f015
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x368]
mov r9d, 1
mov rdx, r15
mov r8, rbx
call fcn.180186540
mov rdi, qword [rbp + 0x368]
mov r15, qword [rbp + 0x378]
add rsi, qword [rbp + 0x380]
mov r14, qword [rbp + 0x370]
lea rcx, [r14 + r15]
mov rdx, rsi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, r15
mov rax, rdi
neg rax
mov r15, qword [rbp + 0x2a0]
jno 0x18002f095
test rbx, rbx
js 0x18002f148
je 0x18002f07c
movzx eax, byte [0x18028ecd1]
mov rcx, rbx
mov ebx, 1
mov edx, 1
mov rdi, rcx
call fcn.18006a570
test rax, rax
je 0x18002f14d
mov rsi, rax
mov rbx, rdi
jmp 0x18002f081
mov esi, 1
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdi, rbx
mov r14, rsi
mov qword [r15], rdi
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], rbx
mov rax, qword [rbp + 0x348]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002f0c1
mov r8d, 1
mov rcx, qword [rbp + 0x380]
call fcn.18006a580
nop
add rsp, 0x418
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1801a27a8]
call fcn.18019e0f0
jmp 0x18002f16e
lea rax, [0x1801a27c0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x380]
mov rdx, rbx
mov r8, rsi
call fcn.18019e810
jmp 0x18002f16e
lea r9, [rsi - 1]
lea rax, str.src_translatorlookuplookup_table.rs
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, r13
mov rdx, rsi
call fcn.18019e810
jmp 0x18002f16e
xor ecx, ecx
jmp 0x18002f13a
mov ecx, 1
mov qword [rbp + 0x340], rsi
mov rdx, qword [rbp + 0x340]
call fcn.18019deb5
jmp 0x18002f16e
mov rdi, rbx
xor ebx, ebx
mov rcx, rbx
mov rdx, rdi
call fcn.18019deb5
jmp 0x18002f16e
xor esi, esi
mov byte [rbp + 0x38f], 1
mov rcx, rsi
mov rdx, rbx
call fcn.18019deb5
ud2