Function at 0x140042a60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1402b8920]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r9
movsxd rbx, r8d
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r9
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.1401e7ff0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x61]
call fcn.1401e7ff0
test ebx, ebx
jle 0x140042cfc
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140042ae6
mov r9, qword [rdi]
movsxd rdx, dword [rdi + 0x10]
mov eax, esi
lea rcx, [rsp + 0x60]
mov r10d, 0x100
nop word [rax + rax]
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, r10d
jl 0x140042b00
test edx, edx
jle 0x140042b89
mov r11, rdx
mov rcx, rsi
lea rdx, [rbp + 0x60]
mov r8, r10
nop
movzx eax, byte [rcx + r9]
mov byte [rdx], al
lea rax, [rcx + 1]
lea rdx, [rdx + 1]
mov rcx, rsi
cmp rax, r11
cmovne rcx, rax
sub r8, 1
jne 0x140042b20
mov r9d, esi
mov r8, rsi
nop word [rax + rax]
movzx edx, byte [rsp + r8 + 0x60]
movzx ecx, byte [rbp + r8 + 0x60]
add ecx, r9d
add ecx, edx
movzx r9d, cl
movzx eax, byte [rsp + r9 + 0x60]
mov byte [rsp + r8 + 0x60], al
mov byte [rsp + r9 + 0x60], dl
lea r8, [r8 + 1]
sub r10, 1
jne 0x140042b50
mov qword [rsp + 0x38], rsi
mov r12d, esi
jmp 0x140042b91
mov r12d, esi
mov qword [rsp + 0x38], r12
xorps xmm0, xmm0
mov r13d, esi
movdqu xmmword [rsp + 0x28], xmm0
mov rsi, rbx
mov r15, rbx
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140042d8d
cmp rbx, 0x1000
jb 0x140042beb
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140042d93
call fcn.14004821c
mov rcx, rax
test rax, rax
je 0x140042d99
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140042bf3
mov rcx, rsi
call fcn.14004821c
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
add rax, rsi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + rsi]
mov r8, rsi
xor edx, edx
call fcn.1401e7ff0
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
test r15, r15
je 0x140042c8b
mov edx, ebx
mov r8, qword [rsp + 0x48]
nop word [rax + rax]
lea eax, [r13 + 1]
movzx r13d, al
movzx ecx, byte [rsp + r13 + 0x60]
lea eax, [r12 + rcx]
movzx r12d, al
movzx eax, byte [rsp + r12 + 0x60]
mov byte [rsp + r13 + 0x60], al
mov byte [rsp + r12 + 0x60], cl
movzx eax, byte [rsp + r13 + 0x60]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x60]
xor cl, byte [rdx + r8]
mov rax, qword [rsp + 0x28]
mov byte [rax + rdx], cl
inc rdx
cmp rdx, r15
jl 0x140042c40
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rbx
mov qword [r14], rax
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], rdx
mov dword [rsp + 0x20], 1
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140042cf6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042cf1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042d81
mov rcx, r8
call fcn.14002f7e0
mov qword [rdi + 0x10], rbx
jmp 0x140042d49
mov qword [r14], rsi
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rsi
mov dword [rsp + 0x20], 1
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140042d45
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042d40
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042d87
mov rcx, r8
call fcn.14002f7e0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], SafeArrayGetDim
mov byte [rdi], 0
mov rax, r14
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1401e5880
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401eac80
int3
call fcn.1401eac80
nop
call fcn.140047dc0
int3
call fcn.140002e80
int3
call fcn.1401eac80
int3