Function at 0x140042c90
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.1401e8220
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x61]
call fcn.1401e8220
test ebx, ebx
jle 0x140042f2c
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140042d16
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 0x140042d30
test edx, edx
jle 0x140042db9
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 0x140042d50
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 0x140042d80
mov qword [rsp + 0x38], rsi
mov r12d, esi
jmp 0x140042dc1
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 0x140042fbd
cmp rbx, 0x1000
jb 0x140042e1b
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140042fc3
call fcn.14004844c
mov rcx, rax
test rax, rax
je 0x140042fc9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140042e23
mov rcx, rsi
call fcn.14004844c
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.1401e8220
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
test r15, r15
je 0x140042ebb
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 0x140042e70
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 0x140042f26
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042f21
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042fb1
mov rcx, r8
call fcn.14002f8c0
mov qword [rdi + 0x10], rbx
jmp 0x140042f79
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 0x140042f75
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140042f70
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042fb7
mov rcx, r8
call fcn.14002f8c0
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.1401e5ab0
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.1401eaeb0
int3
call fcn.1401eaeb0
nop
call fcn.140047ff0
int3
call fcn.140002e80
int3
call fcn.1401eaeb0
int3