Function at 0x40c250
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
test rcx, rcx
mov rbx, rcx
je 0x40c5a0
mov rcx, qword [rcx]
call fcn.00409e40
mov r8, qword [rbx]
mov rcx, r8
sub rcx, 1
js 0x40c590
lea r9, [rbx + 0x20]
lea rdx, [rax + 0x10]
lea r10, [rax + 0x20]
cmp r9, rdx
lea rdx, [rbx + 0x10]
setbe r9b
cmp r10, rdx
setbe dl
or r9b, dl
je 0x40c5b1
cmp rcx, 0xe
jbe 0x40c5b1
mov rdx, r8
movdqa xmm6, xmmword [0x00425790]
pxor xmm3, xmm3
and rdx, 0xfffffffffffffff0
movdqa xmm5, xmmword [0x004257a0]
movdqa xmm4, xmmword [0x004257b0]
lea r9, [rdx + 0x10]
mov edx, 0x10
nop word [rax + rax]
movdqu xmm2, xmmword [rbx + rdx]
movdqa xmm0, xmm2
movdqa xmm1, xmm2
paddb xmm0, xmm6
pxor xmm1, xmm4
psubusb xmm0, xmm5
pcmpeqb xmm0, xmm3
pand xmm1, xmm0
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [rax + rdx], xmm0
add rdx, 0x10
cmp rdx, r9
jne 0x40c2e0
mov rdx, r8
and rdx, 0xfffffffffffffff0
cmp r8, rdx
je 0x40c590
movzx r8d, byte [rbx + rdx + 0x10]
lea r10d, [r8 - 0x41]
mov r9d, r8d
xor r9d, 0x20
cmp r10b, 0x1a
cmovb r8d, r9d
lea r9, [rdx + 1]
mov byte [rax + rdx + 0x10], r8b
cmp rcx, r9
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x11]
lea r9, [rdx + 2]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x11], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x12]
lea r9, [rdx + 3]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x12], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x13]
lea r9, [rdx + 4]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x13], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x14]
lea r9, [rdx + 5]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x14], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x15]
lea r9, [rdx + 6]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x15], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x16]
lea r9, [rdx + 7]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x16], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x17]
lea r9, [rdx + 8]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x17], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x18]
lea r9, [rdx + 9]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x18], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x19]
lea r9, [rdx + 0xa]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x19], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x1a]
lea r9, [rdx + 0xb]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x1a], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x1b]
lea r9, [rdx + 0xc]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x1b], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x1c]
lea r9, [rdx + 0xd]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
cmp rcx, r9
mov byte [rax + rdx + 0x1c], r8b
jl 0x40c590
movzx r8d, byte [rbx + rdx + 0x1d]
lea r11d, [r8 - 0x41]
mov r10d, r8d
xor r10d, 0x20
cmp r11b, 0x1a
cmovb r8d, r10d
mov byte [rax + rdx + 0x1d], r8b
add rdx, 0xe
cmp rcx, rdx
jl 0x40c590
movzx ecx, byte [rbx + rdx + 0x10]
lea r9d, [rcx - 0x41]
mov r8d, ecx
xor r8d, 0x20
cmp r9b, 0x1a
cmovb ecx, r8d
mov byte [rax + rdx + 0x10], cl
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
movaps xmm6, xmmword [rsp + 0x20]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp fcn.00409e40
xor edx, edx
movzx ecx, byte [rbx + rdx + 0x10]
lea r9d, [rcx - 0x41]
cmp r9b, 0x19
ja 0x40c5e1
xor ecx, 0x20
mov byte [rax + rdx + 0x10], cl
add rdx, 1
cmp r8, rdx
je 0x40c590
movzx ecx, byte [rbx + rdx + 0x10]
lea r9d, [rcx - 0x41]
cmp r9b, 0x19
jbe 0x40c5c2
mov byte [rax + rdx + 0x10], cl
add rdx, 1
cmp r8, rdx
jne 0x40c5b3
jmp 0x40c590