Function at 0x140029440
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x318
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
lea r12, [rdx + 0x30]
movups xmm0, xmmword [rdx + 0x30]
movups xmm1, xmmword [rdx + 0x40]
movups xmm2, xmmword [rdx + 0x50]
movups xmm3, xmmword [rdx + 0x60]
movups xmmword [rsp + 0x140], xmm3
movups xmmword [rsp + 0x130], xmm2
movups xmmword [rsp + 0x120], xmm1
movups xmmword [rsp + 0x110], xmm0
movzx eax, byte [0x140228120]
cmp al, 2
jne 0x140029925
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x190], xmm3
movups xmmword [rsp + 0x180], xmm2
movups xmmword [rsp + 0x170], xmm1
movups xmmword [rsp + 0x160], xmm0
movzx eax, byte [0x140228120]
cmp al, 2
jne 0x14002992f
mov qword [rsp + 0x108], r15
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], r15
mov qword [rsp + 0x1a0], 0
mov rdi, qword [r15 + 0x20]
cmp rdi, rbx
jae 0x14002969a
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x1e0], xmm3
movups xmmword [rsp + 0x1d0], xmm2
movups xmmword [rsp + 0x1c0], xmm1
movups xmmword [rsp + 0x1b0], xmm0
movzx eax, byte [0x140228120]
cmp al, 2
jne 0x140029939
xorps xmm0, xmm0
movups xmmword [rsp + 0x268], xmm0
movups xmmword [rsp + 0x258], xmm0
movups xmmword [rsp + 0x248], xmm0
movups xmmword [rsp + 0x238], xmm0
movups xmmword [rsp + 0x228], xmm0
movups xmmword [rsp + 0x218], xmm0
movups xmmword [rsp + 0x208], xmm0
movups xmmword [rsp + 0x1f8], xmm0
mov qword [rsp + 0x1a8], r15
mov qword [rsp + 0x1f0], 0
mov qword [rsp + 0x278], 0
lea r12, [rsp + 0x1a8]
mov rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.140029100
lea rcx, [rsp + 0x30]
mov r8d, 0xd8
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x1e8]
movaps xmmword [rsp + 0x2c0], xmm0
movups xmm0, xmmword [rsp + 0x1a8]
movups xmm1, xmmword [rsp + 0x1b8]
movups xmm2, xmmword [rsp + 0x1c8]
movups xmm3, xmmword [rsp + 0x1d8]
movaps xmmword [rsp + 0x2b0], xmm3
movaps xmmword [rsp + 0x2a0], xmm2
movaps xmmword [rsp + 0x290], xmm1
movaps xmmword [rsp + 0x280], xmm0
cmp r9, 0x81
jae 0x140029a0b
lea r8, [rsp + 0x80]
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x2d0]
lea rdx, [rsp + 0x280]
call fcn.140029310
mov rax, qword [rsp + 0x2d0]
mov rbx, qword [rax + 0x10]
cmp rbx, 0x41
jae 0x140029a0b
lea r14, [rsp + 0x2d8]
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_b]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp rdi, 0x81
jae 0x140029a0b
cmp rdi, rbx
cmovb rbx, rdi
mov rcx, rdi
test rbx, rbx
je 0x140029811
cmp rbx, 8
jae 0x1400296ff
xor eax, eax
jmp 0x1400297f0
cmp rbx, 0x20
jae 0x14002970c
xor eax, eax
jmp 0x1400297b8
mov rax, rbx
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
xorps xmm0, xmmword [rsp + 0x30]
xorps xmm1, xmmword [rsp + 0x40]
and rax, 0xffffffffffffffe0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
cmp rax, 0x20
je 0x1400297ae
movups xmm0, xmmword [r14 + 0x20]
movups xmm1, xmmword [r14 + 0x30]
xorps xmm0, xmmword [rsp + 0x50]
xorps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
cmp rax, 0x40
je 0x1400297ae
movups xmm0, xmmword [r14 + 0x40]
movups xmm1, xmmword [r14 + 0x50]
xorps xmm0, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
cmp rax, 0x60
je 0x1400297ae
movups xmm0, xmmword [r14 + 0x60]
movups xmm1, xmmword [r14 + 0x70]
xorps xmm0, xmmword [rsp + 0x90]
xorps xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm1
cmp rbx, rax
je 0x140029805
test bl, 0x18
je 0x1400297f0
mov rcx, rax
mov rax, rbx
and rax, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov rdx, qword [r14 + rcx]
xor qword [rsp + rcx + 0x30], rdx
add rcx, 8
cmp rax, rcx
jne 0x1400297d0
cmp rbx, rax
je 0x140029805
nop word [rax + rax]
movzx ecx, byte [r14 + rax]
xor byte [rsp + rax + 0x30], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rbx, rcx
jne 0x1400297f0
mov r15, qword [rsp + 0x108]
mov rcx, qword [r15 + 0x20]
test rcx, rcx
je 0x140029a0b
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x140029842
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
mov rax, rbx
imul rax, rcx
cmp rax, rdi
je 0x14002985a
jmp 0x140029a0b
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
cmp rax, rdi
jne 0x140029a0b
cmp rcx, rdi
ja 0x140029888
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r15]
add rbx, qword [rsp + 0x150]
jb 0x140029a0b
mov qword [rsp + 0x150], rbx
test rdi, rdi
je 0x14002996b
cmp rdi, 8
jae 0x1400298a1
lea rcx, [rsp + 0x30]
jmp 0x14002994b
cmp rdi, 0x20
jae 0x1400298ab
xor eax, eax
jmp 0x1400298f2
mov rax, rdi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movaps xmm0, xmmword [0x14018af90]
nop dword [rax + rax]
movaps xmm1, xmmword [rsp + rcx + 0x30]
xorps xmm1, xmm0
movaps xmm2, xmmword [rsp + rcx + 0x40]
xorps xmm2, xmm0
movaps xmmword [rsp + rcx + 0x30], xmm1
movaps xmmword [rsp + rcx + 0x40], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x1400298c0
cmp rdi, rax
je 0x14002996b
test dil, 0x18
je 0x140029943
mov rdx, rdi
and rdx, 0xfffffffffffffff8
lea rcx, [rsp + rdx]
add rcx, 0x30
movabs r8, 0x6a6a6a6a6a6a6a6a
nop dword [rax + rax]
xor qword [rsp + rax + 0x30], r8
add rax, 8
cmp rdx, rax
jne 0x140029910
cmp rdi, rdx
jne 0x14002994b
jmp 0x14002996b
call fcn.140062de0
jmp 0x14002949f
call fcn.140062de0
jmp 0x1400294e5
call fcn.140062de0
jmp 0x140029560
lea rcx, [rsp + rax]
add rcx, 0x30
lea rax, [rsp + rdi]
add rax, 0x30
nop word cs:[rax + rax]
xor byte [rcx], 0x6a
inc rcx
cmp rcx, rax
jne 0x140029960
mov r9, qword [rsp + 0x158]
mov rcx, qword [r9 + 0x20]
test rcx, rcx
je 0x140029a0b
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x1400299a5
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
mov rax, rbx
imul rax, rcx
cmp rax, rdi
je 0x1400299b9
jmp 0x140029a0b
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
cmp rax, rdi
jne 0x140029a0b
cmp rcx, rdi
ja 0x1400299e3
lea rcx, [rsp + 0x160]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r9]
add rbx, qword [rsp + 0x1a0]
jb 0x140029a0b
mov qword [rsp + 0x1a0], rbx
lea rdx, [rsp + 0x108]
mov r8d, 0xa0
mov rcx, rsi
call sub.msvcrt.dll_memcpy
nop
add rsp, 0x318
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2