Function at 0x14014a120
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14014a9cc
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1a8
mov esi, r8d
mov r14, rdx
mov rdi, rcx
test r8d, r8d
je 0x14014a9c0
mov qword [rax - 0x28], rbx
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
nop dword [rax]
mov edx, dword [rdi + 0x24]
test edx, edx
jne 0x14014a944
cmp esi, 0x40
jb 0x14014a944
movups xmm0, xmmword [r14]
movups xmmword [rdi + 0x28], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x38], xmm1
movups xmm0, xmmword [r14 + 0x20]
movups xmmword [rdi + 0x48], xmm0
movups xmm1, xmmword [r14 + 0x30]
movups xmmword [rdi + 0x58], xmm1
movzx eax, byte [rdi + 0x28]
movzx ecx, byte [rdi + 0x29]
shl eax, 8
or ecx, eax
movzx eax, byte [rdi + 0x2a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x2b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x2d]
mov dword [rsp + 0x40], ecx
movzx ecx, byte [rdi + 0x2c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x2e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x2f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x31]
mov dword [rsp + 0x44], ecx
movzx ecx, byte [rdi + 0x30]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x32]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x33]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x35]
mov dword [rsp + 0x48], ecx
movzx ecx, byte [rdi + 0x34]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x37]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x39]
mov dword [rsp + 0x4c], ecx
movzx ecx, byte [rdi + 0x38]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x3a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x3b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x3d]
mov dword [rsp + 0x50], ecx
movzx ecx, byte [rdi + 0x3c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x3e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x3f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x41]
mov dword [rsp + 0x54], ecx
movzx ecx, byte [rdi + 0x40]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x42]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0x43]
or ecx, eax
movzx eax, byte [rdi + 0x45]
mov dword [rsp + 0x58], ecx
movzx ecx, byte [rdi + 0x44]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x46]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x47]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x49]
mov dword [rsp + 0x5c], ecx
movzx ecx, byte [rdi + 0x48]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x4a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x4b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x4d]
mov dword [rsp + 0x60], ecx
movzx ecx, byte [rdi + 0x4c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x4e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x4f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x51]
mov dword [rsp + 0x64], ecx
movzx ecx, byte [rdi + 0x50]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x52]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x53]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x55]
mov dword [rsp + 0x68], ecx
movzx ecx, byte [rdi + 0x54]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x56]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x57]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x59]
mov dword [rsp + 0x6c], ecx
movzx ecx, byte [rdi + 0x58]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x5a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x5b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x5d]
mov dword [rsp + 0x70], ecx
movzx ecx, byte [rdi + 0x5c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x5e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x5f]
shl ecx, 8
or ecx, eax
mov dword [rsp + 0x74], ecx
movzx eax, byte [rdi + 0x61]
mov r10d, 2
movzx ecx, byte [rdi + 0x60]
shl ecx, 8
or ecx, eax
mov dword [rbp + 0xe8], r10d
movzx eax, byte [rdi + 0x62]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x63]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x65]
mov dword [rsp + 0x78], ecx
movzx ecx, byte [rdi + 0x64]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x66]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x67]
shl ecx, 8
or ecx, eax
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x2c], eax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsp + 0x24], eax
mov eax, dword [rdi + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x7c], ecx
nop dword [rax + rax]
mov eax, r10d
lea edi, [r10 + 8]
lea r8, [rsp + 0x40]
lea r15, [rsp + 0x40]
lea rbx, [rsp + 0x40]
mov r9d, dword [rsp + rax*4 + 0x40]
lea rdx, [rsp + 0x40]
lea eax, [r10 + 6]
mov r12d, dword [rsp + rax*4 + 0x40]
lea r11, [rsp + 0x40]
lea eax, [r10 + 0xb]
mov esi, dword [rsp + rax*4 + 0x40]
lea eax, [r10 - 2]
mov r13d, esi
xor r13d, dword [rsp + rax*4 + 0x40]
lea eax, [r10 + 0xe]
xor r13d, r12d
xor r13d, r9d
rol r13d, 1
mov dword [rsp + rax*4 + 0x40], r13d
lea eax, [r10 + 1]
lea r8, [r8 + rax*4]
lea eax, [r10 + 7]
lea r15, [r15 + rax*4]
lea eax, [r10 + 0xc]
lea rbx, [rbx + rax*4]
lea eax, [r10 - 1]
mov r14d, dword [rsp + rax*4 + 0x40]
lea eax, [r10 + 0xf]
xor r14d, dword [rbx]
xor r14d, dword [r8]
xor r14d, dword [r15]
rol r14d, 1
mov dword [rsp + rax*4 + 0x40], r14d
lea eax, [r10 + 2]
lea rdx, [rdx + rax*4]
lea eax, [r10 + 0xd]
mov r10d, dword [rsp + rdi*4 + 0x40]
xor r10d, dword [r11 + rax*4]
lea r11, [r11 + rax*4]
xor r10d, r9d
mov r9d, dword [rbp + 0xe8]
xor r10d, dword [rdx]
rol r10d, 1
lea eax, [r9 + 0x10]
mov dword [rsp + rax*4 + 0x40], r10d
lea eax, [r9 + 3]
xor r10d, esi
lea r9, [rsp + 0x40]
lea r9, [r9 + rax*4]
mov eax, dword [rbp + 0xe8]
add eax, 9
xor r13d, dword [rsp + rax*4 + 0x40]
xor r13d, dword [r9]
xor r13d, dword [r8]
mov r8d, dword [rbp + 0xe8]
rol r13d, 1
lea eax, [r8 + 0x11]
mov dword [rsp + rax*4 + 0x40], r13d
lea eax, [r8 + 4]
lea r8, [rsp + 0x40]
lea r8, [r8 + rax*4]
mov eax, dword [rbp + 0xe8]
add eax, 0xa
xor r14d, dword [rsp + rax*4 + 0x40]
xor r14d, dword [rdx]
xor r14d, dword [r8]
mov edx, dword [rbp + 0xe8]
rol r14d, 1
lea eax, [rdx + 0x12]
mov dword [rsp + rax*4 + 0x40], r14d
lea eax, [rdx + 5]
xor r10d, dword [r9]
lea rdx, [rsp + 0x40]
xor r10d, dword [rdx + rax*4]
lea rdx, [rdx + rax*4]
mov r9d, dword [rbp + 0xe8]
rol r10d, 1
xor r13d, r12d
lea eax, [r9 + 0x13]
mov dword [rsp + rax*4 + 0x40], r10d
xor r13d, dword [rbx]
lea eax, [r9 + 0x14]
xor r13d, dword [r8]
mov r10d, edi
rol r13d, 1
mov dword [rsp + rax*4 + 0x40], r13d
lea eax, [r9 + 0x15]
xor r14d, dword [r11]
xor r14d, dword [rdx]
xor r14d, dword [r15]
rol r14d, 1
mov dword [rsp + rax*4 + 0x40], r14d
lea eax, [rdi + 0xe]
mov dword [rbp + 0xe8], edi
cmp eax, 0x50
jb 0x14014a410
mov r9d, dword [rsp + 0x20]
xor eax, eax
mov r10d, dword [rsp + 0x24]
mov r11d, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x2c]
mov edi, dword [rsp + 0x30]
mov edx, edi
mov ecx, r10d
xor ecx, r9d
rol edx, 5
and ecx, ebx
rol ebx, 0x1e
xor ecx, r10d
add ecx, 0x5a827999
add edx, ecx
mov ecx, r9d
add edx, dword [rsp + rax*4 + 0x40]
xor ecx, ebx
and ecx, edi
add r11d, edx
xor ecx, r9d
rol edi, 0x1e
add ecx, 0x5a827999
inc eax
mov edx, r11d
rol edx, 5
add edx, ecx
mov ecx, ebx
add edx, dword [rsp + rax*4 + 0x40]
xor ecx, edi
add r10d, edx
and ecx, r11d
xor ecx, ebx
rol r11d, 0x1e
add ecx, 0x5a827999
inc eax
mov edx, r10d
rol edx, 5
add edx, ecx
mov ecx, r11d
add edx, dword [rsp + rax*4 + 0x40]
xor ecx, edi
add r9d, edx
and ecx, r10d
xor ecx, edi
rol r10d, 0x1e
add ecx, 0x5a827999
inc eax
mov edx, r9d
add edi, 0x5a827999
rol edx, 5
add edx, ecx
mov ecx, r11d
add edx, dword [rsp + rax*4 + 0x40]
xor ecx, r10d
add ebx, edx
and ecx, r9d
inc eax
rol r9d, 0x1e
xor ecx, r11d
mov edx, ebx
rol edx, 5
add edx, ecx
add edx, dword [rsp + rax*4 + 0x40]
inc eax
add edi, edx
cmp eax, 0x14
jb 0x14014a5b3
cmp eax, 0x28
jae 0x14014a737
nop word [rax + rax]
mov edx, edi
mov ecx, r10d
xor ecx, r9d
rol edx, 5
add edx, dword [rsp + rax*4 + 0x40]
xor ecx, ebx
add ecx, r11d
rol ebx, 0x1e
inc eax
lea r11d, [rdx + 0x6ed9eba1]
add r11d, ecx
mov ecx, r9d
xor ecx, ebx
mov edx, r11d
xor ecx, edi
rol edx, 5
add edx, dword [rsp + rax*4 + 0x40]
add ecx, r10d
inc eax
rol edi, 0x1e
lea r10d, [rdx + 0x6ed9eba1]
add r10d, ecx
mov ecx, r11d
xor ecx, ebx
rol r11d, 0x1e
xor ecx, edi
mov edx, r10d
add ecx, r9d
rol edx, 5
add edx, dword [rsp + rax*4 + 0x40]
inc eax
lea r9d, [rdx + 0x6ed9eba1]
add r9d, ecx
mov ecx, r11d
xor ecx, r10d
mov edx, r9d
xor ecx, edi
rol edx, 5
add edx, dword [rsp + rax*4 + 0x40]
add ecx, ebx
inc eax
rol r10d, 0x1e
lea ebx, [rdx + 0x6ed9eba1]
add ebx, ecx
mov ecx, r11d
xor ecx, r10d
mov edx, ebx
xor ecx, r9d
rol edx, 5
add edx, dword [rsp + rax*4 + 0x40]
add ecx, edi
inc eax
rol r9d, 0x1e
lea edi, [rdx + 0x6ed9eba1]
add edi, ecx
cmp eax, 0x28
jb 0x14014a680
cmp eax, 0x3c
jae 0x14014a824
mov edx, r9d
mov ecx, r9d
or edx, ebx
and ecx, ebx
and edx, r10d
rol ebx, 0x1e
or edx, ecx
mov r8d, edi
add edx, dword [rsp + rax*4 + 0x40]
mov ecx, ebx
add edx, r11d
rol r8d, 5
and ecx, edi
inc eax
lea r11d, [r8 - 0x70e44324]
add r11d, edx
mov edx, ebx
or edx, edi
mov r8d, r11d
and edx, r9d
rol r8d, 5
or edx, ecx
rol edi, 0x1e
add edx, dword [rsp + rax*4 + 0x40]
mov ecx, r11d
add edx, r10d
and ecx, edi
lea r10d, [r8 - 0x70e44324]
inc eax
add r10d, edx
mov edx, r11d
or edx, edi
rol r11d, 0x1e
and edx, ebx
mov r8d, r10d
or edx, ecx
rol r8d, 5
add edx, dword [rsp + rax*4 + 0x40]
mov ecx, r11d
add edx, r9d
inc eax
and ecx, r10d
lea r9d, [r8 - 0x70e44324]
add r9d, edx
mov edx, r11d
or edx, r10d
mov r8d, r9d
and edx, edi
rol r8d, 5
or edx, ecx
rol r10d, 0x1e
add edx, dword [rsp + rax*4 + 0x40]
mov ecx, r10d
add edx, ebx
inc eax
lea ebx, [r8 - 0x70e44324]
and ecx, r9d
add ebx, edx
mov edx, r10d
or edx, r9d
mov r8d, ebx
and edx, r11d
rol r8d, 5
or edx, ecx
rol r9d, 0x1e
add edx, dword [rsp + rax*4 + 0x40]
inc eax
add edx, edi
lea edi, [r8 - 0x70e44324]
add edi, edx
cmp eax, 0x3c
jb 0x14014a740
cmp eax, 0x50
jae 0x14014a8fa
nop dword [rax]
mov ecx, dword [rsp + rax*4 + 0x40]
mov edx, r10d
xor edx, r9d
inc eax
xor edx, ebx
mov r8d, edi
add ecx, edx
rol r8d, 5
add ecx, r11d
rol ebx, 0x1e
mov edx, r9d
xor edx, ebx
xor edx, edi
lea r11d, [r8 - 0x359d3e2a]
add r11d, ecx
rol edi, 0x1e
mov ecx, dword [rsp + rax*4 + 0x40]
mov r8d, r11d
add ecx, edx
rol r8d, 5
add ecx, r10d
inc eax
mov edx, r11d
rol r11d, 0x1e
xor edx, ebx
xor edx, edi
lea r10d, [r8 - 0x359d3e2a]
add r10d, ecx
mov ecx, dword [rsp + rax*4 + 0x40]
add ecx, edx
inc eax
add ecx, r9d
mov r8d, r10d
rol r8d, 5
mov edx, r11d
xor edx, r10d
rol r10d, 0x1e
xor edx, edi
lea r9d, [r8 - 0x359d3e2a]
add r9d, ecx
mov ecx, dword [rsp + rax*4 + 0x40]
add ecx, edx
inc eax
add ecx, ebx
mov r8d, r9d
rol r8d, 5
mov edx, r11d
xor edx, r10d
xor edx, r9d
rol r9d, 0x1e
lea ebx, [r8 - 0x359d3e2a]
add ebx, ecx
mov ecx, dword [rsp + rax*4 + 0x40]
add ecx, edx
mov r8d, ebx
add ecx, edi
rol r8d, 5
inc eax
lea edi, [r8 - 0x359d3e2a]
add edi, ecx
cmp eax, 0x50
jb 0x14014a830
mov r14, qword [rbp + 0xd8]
mov esi, dword [rbp + 0xe0]
add r14, 0x40
mov eax, dword [rsp + 0x34]
add eax, edi
mov qword [rbp + 0xd8], r14
mov rdi, qword [rbp + 0xd0]
add dword [rdi + 0x14], ebx
add dword [rdi + 0x18], r9d
add dword [rdi + 0x1c], r10d
add dword [rdi + 0x20], r11d
mov dword [rdi + 0x10], eax
add qword [rdi + 8], 0x200
add esi, 0xffffffc0
mov dword [rbp + 0xe0], esi
jmp 0x14014a998
mov ecx, 0x40
mov eax, esi
sub ecx, edx
cmp esi, ecx
cmovae eax, ecx
lea rcx, [rdx + 0x28]
add rcx, rdi
mov r8d, eax
mov rdx, r14
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x24], ebx
add r14, rbx
sub esi, ebx
mov qword [rbp + 0xd8], r14
cmp dword [rdi + 0x24], 0x40
mov dword [rbp + 0xe0], esi
jne 0x14014a998
mov rcx, rdi
call fcn.1401491b0
add qword [rdi + 8], 0x200
mov dword [rdi + 0x24], 0
test esi, esi
jne 0x14014a170
mov r15, qword [rsp + 0x188]
mov r13, qword [rsp + 0x190]
mov r12, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x1a8
pop r14
pop rdi
pop rsi
pop rbp
ret