Function at 0x140042d30
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.1401e82c0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x61]
call fcn.1401e82c0
test ebx, ebx
jle 0x140042fcc
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140042db6
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 0x140042dd0
test edx, edx
jle 0x140042e59
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 0x140042df0
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 0x140042e20
mov qword [rsp + 0x38], rsi
mov r12d, esi
jmp 0x140042e61
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 0x14004305d
cmp rbx, 0x1000
jb 0x140042ebb
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140043063
call fcn.1400484ec
mov rcx, rax
test rax, rax
je 0x140043069
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140042ec3
mov rcx, rsi
call fcn.1400484ec
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.1401e82c0
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
test r15, r15
je 0x140042f5b
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 0x140042f10
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 0x140042fc6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042fc1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043051
mov rcx, r8
call fcn.14002f960
mov qword [rdi + 0x10], rbx
jmp 0x140043019
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 0x140043015
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140043010
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043057
mov rcx, r8
call fcn.14002f960
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.1401e5b50
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.1401eaf50
int3
call fcn.1401eaf50
nop
call fcn.140048090
int3
call fcn.140002e80
int3
call fcn.1401eaf50
int3