Function at 0x180024f30
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 [0x18028b940]
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.1801c4d20
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x61]
call fcn.1801c4d20
test ebx, ebx
jle 0x1800251cc
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180024fb6
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 0x180024fd0
test edx, edx
jle 0x180025059
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 0x180024ff0
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 0x180025020
mov qword [rsp + 0x38], rsi
mov r12d, esi
jmp 0x180025061
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 0x18002525d
cmp rbx, 0x1000
jb 0x1800250bb
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x180025263
call fcn.180029774
mov rcx, rax
test rax, rax
je 0x180025269
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800250c3
mov rcx, rsi
call fcn.180029774
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.1801c4d20
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
test r15, r15
je 0x18002515b
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 0x180025110
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 0x1800251c6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800251c1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180025251
mov rcx, r8
call fcn.18001de20
mov qword [rdi + 0x10], rbx
jmp 0x180025219
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 0x180025215
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180025210
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180025257
mov rcx, r8
call fcn.18001de20
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.1801c1cc0
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.1801c8d6c
int3
call fcn.1801c8d6c
nop
call fcn.180027030
int3
call fcn.180002f60
int3
call fcn.1801c8d6c
int3