Function at 0x1801310f0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18013198c
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
cmp r8d, 1
jb 0x180131980
mov qword [rax - 0x28], rbx
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
nop
mov edx, dword [rdi + 0x24]
test edx, edx
jne 0x180131904
cmp esi, 0x40
jb 0x180131904
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 + 0x29]
movzx ecx, byte [rdi + 0x28]
shl ecx, 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 r11d, 2
movzx ecx, byte [rdi + 0x60]
shl ecx, 8
or ecx, eax
mov dword [rbp + 0xe8], r11d
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, r11d
lea r14d, [r11 + 8]
lea r13, [rsp + 0x40]
lea r15, [rsp + 0x40]
lea r8, [rsp + 0x40]
mov r9d, dword [rsp + rax*4 + 0x40]
lea rsi, [rsp + 0x40]
lea eax, [r11 + 6]
mov edx, dword [rsp + rax*4 + 0x40]
lea eax, [r11 + 0xb]
mov r12d, dword [rsp + rax*4 + 0x40]
lea eax, [r11 - 2]
mov r10d, dword [rsp + rax*4 + 0x40]
lea eax, [r11 + 0xe]
xor r10d, r12d
mov dword [rsp + 0x20], edx
xor r10d, edx
lea rdx, [rsp + 0x40]
xor r10d, r9d
rol r10d, 1
mov dword [rsp + rax*4 + 0x40], r10d
lea eax, [r11 + 1]
lea rdx, [rdx + rax*4]
lea eax, [r11 + 7]
lea r13, [r13 + rax*4]
lea eax, [r11 + 0xc]
lea r15, [r15 + rax*4]
lea eax, [r11 - 1]
mov ebx, dword [rsp + rax*4 + 0x40]
lea eax, [r11 + 0xf]
xor ebx, dword [r15]
xor ebx, dword [rdx]
xor ebx, dword [r13]
rol ebx, 1
mov dword [rsp + rax*4 + 0x40], ebx
lea eax, [r11 + 2]
mov edi, dword [rsp + r14*4 + 0x40]
lea r8, [r8 + rax*4]
lea eax, [r11 + 0xd]
xor edi, dword [rsi + rax*4]
lea rsi, [rsi + rax*4]
lea eax, [r11 + 0x10]
xor edi, r9d
xor edi, dword [r8]
lea r9, [rsp + 0x40]
rol edi, 1
mov dword [rsp + rax*4 + 0x40], edi
lea eax, [r11 + 3]
lea r9, [r9 + rax*4]
xor edi, r12d
lea eax, [r11 + 9]
mov r11d, dword [rsp + rax*4 + 0x40]
xor r11d, r10d
mov r10d, dword [rbp + 0xe8]
xor r11d, dword [r9]
xor r11d, dword [rdx]
lea rdx, [rsp + 0x40]
rol r11d, 1
lea eax, [r10 + 0x11]
mov dword [rsp + rax*4 + 0x40], r11d
lea eax, [r10 + 4]
xor r11d, dword [rsp + 0x20]
lea rdx, [rdx + rax*4]
lea eax, [r10 + 0xa]
mov r10d, dword [rsp + rax*4 + 0x40]
xor r10d, ebx
mov ebx, dword [rbp + 0xe8]
xor r10d, dword [rdx]
xor r10d, dword [r8]
lea r8, [rsp + 0x40]
rol r10d, 1
lea eax, [rbx + 0x12]
mov dword [rsp + rax*4 + 0x40], r10d
lea eax, [rbx + 5]
xor edi, dword [r9]
lea r8, [r8 + rax*4]
xor edi, dword [r8]
lea eax, [rbx + 0x13]
rol edi, 1
mov dword [rsp + rax*4 + 0x40], edi
xor r11d, dword [rdx]
xor r11d, dword [r15]
lea eax, [rbx + 0x14]
rol r11d, 1
mov dword [rsp + rax*4 + 0x40], r11d
lea eax, [rbx + 0x15]
mov edx, dword [rsi]
mov r11d, r14d
xor edx, dword [r8]
xor edx, r10d
mov dword [rbp + 0xe8], r14d
xor edx, dword [r13]
rol edx, 1
mov dword [rsp + rax*4 + 0x40], edx
lea eax, [r14 + 0xe]
cmp eax, 0x50
jb 0x1801313e0
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
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 0x180131570
cmp eax, 0x28
jae 0x1801316f7
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 0x180131640
cmp eax, 0x3c
jae 0x1801317e4
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 0x180131700
cmp eax, 0x50
jae 0x1801318ba
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 0x1801317f0
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 0x180131958
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 fcn.180210e90
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 0x180131958
mov rcx, rdi
call fcn.180130570
add qword [rdi + 8], 0x200
mov dword [rdi + 0x24], 0
test esi, esi
jne 0x180131140
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