Function at 0x140042b20
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.1401e80b0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x61]
call fcn.1401e80b0
test ebx, ebx
jle 0x140042dbc
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140042ba6
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 0x140042bc0
test edx, edx
jle 0x140042c49
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 0x140042be0
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 0x140042c10
mov qword [rsp + 0x38], rsi
mov r12d, esi
jmp 0x140042c51
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 0x140042e4d
cmp rbx, 0x1000
jb 0x140042cab
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140042e53
call fcn.1400482dc
mov rcx, rax
test rax, rax
je 0x140042e59
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140042cb3
mov rcx, rsi
call fcn.1400482dc
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.1401e80b0
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
test r15, r15
je 0x140042d4b
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 0x140042d00
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 0x140042db6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042db1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042e41
mov rcx, r8
call fcn.14002f8a0
mov qword [rdi + 0x10], rbx
jmp 0x140042e09
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 0x140042e05
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042e00
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042e47
mov rcx, r8
call fcn.14002f8a0
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.1401e5940
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.1401ead40
int3
call fcn.1401ead40
nop
call fcn.140047e80
int3
call fcn.140002e80
int3
call fcn.1401ead40
int3