Function at 0x180088900
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18008919c
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 0x180089190
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 0x180089114
cmp esi, 0x40
jb 0x180089114
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 + 0x38], eax
mov dword [rsp + 0x34], eax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x24], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x20]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x7c], ecx
nop dword [rax + rax]
mov eax, r10d
lea r14d, [r10 + 8]
lea r8, [rsp + 0x40]
lea r12, [rsp + 0x40]
lea rsi, [rsp + 0x40]
mov r9d, dword [rsp + rax*4 + 0x40]
lea rdi, [rsp + 0x40]
lea eax, [r10 + 6]
mov edx, dword [rsp + rax*4 + 0x40]
lea eax, [r10 + 0xb]
mov r13d, dword [rsp + rax*4 + 0x40]
lea eax, [r10 - 2]
mov dword [rsp + 0x20], edx
mov ebx, r13d
xor ebx, dword [rsp + rax*4 + 0x40]
lea eax, [r10 + 0xe]
xor ebx, edx
lea rdx, [rsp + 0x40]
xor ebx, r9d
rol ebx, 1
mov dword [rsp + rax*4 + 0x40], ebx
lea eax, [r10 + 1]
lea r8, [r8 + rax*4]
lea eax, [r10 + 7]
lea r12, [r12 + rax*4]
lea eax, [r10 + 0xc]
lea rsi, [rsi + rax*4]
lea eax, [r10 - 1]
mov r15d, dword [rsp + rax*4 + 0x40]
lea eax, [r10 + 0xf]
xor r15d, dword [rsi]
xor r15d, dword [r8]
xor r15d, dword [r12]
rol r15d, 1
mov dword [rsp + rax*4 + 0x40], r15d
lea eax, [r10 + 2]
mov r11d, dword [rsp + r14*4 + 0x40]
lea rdx, [rdx + rax*4]
xor r11d, dword [rdx]
lea eax, [r10 + 0xd]
lea rdi, [rdi + rax*4]
xor r11d, r9d
xor r11d, dword [rdi]
lea eax, [r10 + 0x10]
rol r11d, 1
lea r9, [rsp + 0x40]
mov dword [rsp + rax*4 + 0x40], r11d
lea eax, [r10 + 3]
lea r9, [r9 + rax*4]
lea eax, [r10 + 9]
mov r10d, dword [rsp + rax*4 + 0x40]
xor r10d, dword [r9]
xor r10d, ebx
mov ebx, dword [rbp + 0xe8]
xor r10d, dword [r8]
lea r8, [rsp + 0x40]
rol r10d, 1
lea eax, [rbx + 0x11]
mov dword [rsp + rax*4 + 0x40], r10d
lea eax, [rbx + 4]
lea r8, [r8 + rax*4]
lea eax, [rbx + 0xa]
xor r15d, dword [rsp + rax*4 + 0x40]
lea eax, [rbx + 0x12]
xor r15d, dword [rdx]
lea rdx, [rsp + 0x40]
xor r15d, dword [r8]
rol r15d, 1
mov dword [rsp + rax*4 + 0x40], r15d
lea eax, [rbx + 5]
xor r11d, dword [r9]
lea rdx, [rdx + rax*4]
xor r11d, dword [rdx]
lea eax, [rbx + 0x13]
xor r11d, r13d
rol r11d, 1
mov dword [rsp + rax*4 + 0x40], r11d
xor r10d, dword [rsi]
xor r10d, dword [rsp + 0x20]
xor r10d, dword [r8]
rol r10d, 1
lea eax, [rbx + 0x14]
mov dword [rbp + 0xe8], r14d
mov dword [rsp + rax*4 + 0x40], r10d
lea eax, [rbx + 0x15]
mov edx, dword [rdx]
mov r10d, r14d
xor edx, dword [r12]
xor edx, r15d
xor edx, dword [rdi]
rol edx, 1
mov dword [rsp + rax*4 + 0x40], edx
lea eax, [r14 + 0xe]
cmp eax, 0x50
jb 0x180088bf0
mov r9d, dword [rsp + 0x24]
xor eax, eax
mov r10d, dword [rsp + 0x28]
mov r11d, dword [rsp + 0x2c]
mov ebx, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
nop dword [rax]
nop dword [rax + rax]
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 0x180088d80
cmp eax, 0x28
jae 0x180088f07
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 0x180088e50
cmp eax, 0x3c
jae 0x180088ff4
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 0x180088f10
cmp eax, 0x50
jae 0x1800890ca
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 0x180089000
mov r14, qword [rbp + 0xd8]
mov esi, dword [rbp + 0xe0]
add r14, 0x40
mov eax, dword [rsp + 0x38]
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 0x180089168
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 0x180089168
mov rcx, rdi
call fcn.180087b20
add qword [rdi + 8], 0x200
mov dword [rdi + 0x24], 0
test esi, esi
jne 0x180088950
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