Function at 0x140039f90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [rcx]
mov rsi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x140039fbd
mov rcx, r14
call fcn.14000dd30
mov qword [rsp + 0x78], rdi
cmp rsi, 2
jb 0x14003a2fe
mov qword [rsp + 0x80], r12
mov r12, rsi
shr r12, 1
imul rax, r12, 0xfffffffffffffffe
add rsi, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov r8d, dword [rbx]
mov r10d, dword [rbx + 0xc]
mov r11d, dword [rbx + 8]
bswap eax
mov ecx, eax
shl eax, 4
shr ecx, 0x1c
or ecx, eax
bswap r8d
mov eax, r8d
xor eax, ecx
and eax, 0xf0f0f0f0
mov edx, eax
xor eax, ecx
xor edx, r8d
mov r8d, eax
shl eax, 0xc
shr r8d, 0x14
or r8d, eax
mov eax, r8d
xor eax, edx
and eax, 0xffff0000
xor r8d, eax
mov ecx, eax
xor ecx, edx
mov r9d, r8d
shr r9d, 0x12
shl r8d, 0xe
or r9d, r8d
mov eax, r9d
xor eax, ecx
and eax, 0x33333333
xor r9d, eax
mov edx, eax
xor edx, ecx
mov ecx, r9d
shl ecx, 0x1a
shr r9d, 6
or ecx, r9d
mov eax, ecx
xor eax, edx
and eax, 0xff00ff
xor ecx, eax
mov r8d, eax
xor r8d, edx
mov edx, ecx
shl ecx, 9
shr edx, 0x17
or edx, ecx
mov ecx, edx
xor ecx, r8d
and ecx, 0xaaaaaaaa
mov eax, ecx
xor ecx, edx
xor eax, r8d
mov dword [rbp + 0x30], ecx
ror eax, 0x1f
mov dword [rbp + 0x48], eax
bswap r10d
mov eax, r10d
shl r10d, 4
shr eax, 0x1c
or eax, r10d
bswap r11d
mov ecx, r11d
xor ecx, eax
and ecx, 0xf0f0f0f0
xor r11d, ecx
xor ecx, eax
mov eax, ecx
shl ecx, 0xc
shr eax, 0x14
or eax, ecx
mov ecx, r11d
xor ecx, eax
and ecx, 0xffff0000
mov edx, ecx
xor edx, r11d
xor ecx, eax
mov eax, ecx
mov rdi, qword [r14 + 8]
shl ecx, 0xe
shr eax, 0x12
or eax, ecx
mov qword [rsp + 0x20], rdi
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 6
shl eax, 0x1a
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xff00ff
mov r9d, ecx
xor ecx, eax
mov edx, ecx
xor r9d, r8d
shl ecx, 9
lea r8, [rbp - 0xc]
shr edx, 0x17
or edx, ecx
mov ecx, r9d
xor ecx, edx
and ecx, 0xaaaaaaaa
mov eax, ecx
xor ecx, edx
xor eax, r9d
mov dword [rbp - 0x10], ecx
ror eax, 0x1f
lea r9, [rbp - 0x10]
lea rdx, [rbp + 0x30]
mov dword [rbp - 0xc], eax
lea rcx, [rbp + 0x48]
call fcn.140038eb0
lea r10, [rdi + 0x80]
lea r9, [rbp - 0xc]
mov qword [rsp + 0x20], r10
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.140038560
lea r10, [rdi + 0x100]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], r10
lea r8, [rbp - 0xc]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x48]
call fcn.140038eb0
mov r10d, dword [rbp + 0x30]
mov ecx, r10d
shl ecx, 0x1f
shr r10d, 1
or ecx, r10d
mov edx, ecx
xor edx, dword [rbp + 0x48]
and edx, 0xaaaaaaaa
mov r8d, edx
xor edx, dword [rbp + 0x48]
xor r8d, ecx
mov eax, edx
shl eax, 0x17
mov ecx, r8d
shr edx, 9
or eax, edx
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shl ecx, 6
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 0xe
shl eax, 0x12
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xffff0000
mov edi, ecx
xor ecx, eax
mov eax, ecx
xor edi, r8d
shr ecx, 0xc
mov r10d, edi
shl eax, 0x14
or eax, ecx
xor r10d, eax
and r10d, 0xf0f0f0f0
mov r11d, r10d
xor r10d, edi
xor r11d, eax
mov eax, dword [rbp - 0x10]
mov ecx, eax
ror r11d, 4
shl ecx, 0x1f
shr eax, 1
or ecx, eax
mov edx, ecx
xor edx, dword [rbp - 0xc]
and edx, 0xaaaaaaaa
mov r8d, edx
xor edx, dword [rbp - 0xc]
xor r8d, ecx
mov eax, edx
shl eax, 0x17
mov ecx, r8d
shr edx, 9
or eax, edx
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shl ecx, 6
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 0xe
shl eax, 0x12
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xffff0000
mov r9d, ecx
xor ecx, eax
mov eax, ecx
xor r9d, r8d
shr ecx, 0xc
mov edx, r9d
shl eax, 0x14
or eax, ecx
xor edx, eax
and edx, 0xf0f0f0f0
mov ecx, edx
xor ecx, eax
ror ecx, 4
bswap r10d
xor edx, r9d
mov dword [r15], r10d
bswap r11d
bswap edx
mov dword [r15 + 4], r11d
mov dword [r15 + 8], edx
add rbx, 0x10
bswap ecx
mov dword [r15 + 0xc], ecx
add r15, 0x10
sub r12, 1
jne 0x140039ff0
mov r12, qword [rsp + 0x80]
test rsi, rsi
je 0x14003a498
sub r15, rbx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov r8d, dword [rbx]
mov rdi, qword [r14 + 8]
bswap eax
mov ecx, eax
shl eax, 4
shr ecx, 0x1c
or ecx, eax
bswap r8d
mov eax, r8d
xor eax, ecx
and eax, 0xf0f0f0f0
xor r8d, eax
xor eax, ecx
mov ecx, eax
shl eax, 0xc
shr ecx, 0x14
or ecx, eax
mov eax, r8d
xor eax, ecx
and eax, 0xffff0000
mov edx, eax
xor eax, ecx
mov ecx, eax
xor edx, r8d
shl eax, 0xe
shr ecx, 0x12
or ecx, eax
mov eax, edx
xor eax, ecx
and eax, 0x33333333
mov r8d, eax
xor eax, ecx
mov ecx, eax
xor r8d, edx
shr eax, 6
shl ecx, 0x1a
or ecx, eax
mov eax, r8d
xor eax, ecx
and eax, 0xff00ff
mov r9d, eax
xor eax, ecx
mov edx, eax
xor r9d, r8d
shl eax, 9
mov ecx, r9d
shr edx, 0x17
mov r8, rdi
or edx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
mov eax, ecx
xor ecx, edx
xor eax, r9d
mov dword [rbp + 0x30], ecx
ror eax, 0x1f
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x48]
mov dword [rbp + 0x48], eax
call fcn.140038a00
lea r8, [rdi + 0x80]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.1400382d0
lea r8, [rdi + 0x100]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x48]
call fcn.140038a00
mov eax, dword [rbp + 0x30]
mov r8d, eax
shl r8d, 0x1f
shr eax, 1
or r8d, eax
mov ecx, r8d
xor ecx, dword [rbp + 0x48]
and ecx, 0xaaaaaaaa
xor r8d, ecx
xor ecx, dword [rbp + 0x48]
mov eax, ecx
shl eax, 0x17
shr ecx, 9
lea rbx, [rbx + 8]
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shl ecx, 6
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 0xe
shl eax, 0x12
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xffff0000
mov r9d, ecx
xor ecx, eax
mov eax, ecx
xor r9d, r8d
shr ecx, 0xc
mov edx, r9d
shl eax, 0x14
or eax, ecx
xor edx, eax
and edx, 0xf0f0f0f0
mov ecx, edx
xor edx, r9d
xor ecx, eax
ror ecx, 4
bswap edx
mov dword [r15 + rbx - 8], edx
bswap ecx
mov dword [r15 + rbx - 4], ecx
sub rsi, 1
jne 0x14003a310
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret