Function at 0x4c0125
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rax, r8
mov rsi, rcx
xor ecx, ecx
lea r8, [rsp + 0x88]
mov dword [r8 + 0x20], ecx
mov word [r8 + 0x24], 0
mov qword [r8], 0
mov dword [r8 + 8], ecx
movaps xmm0, xmmword [0x005b8240]
movups xmmword [r8 + 0x10], xmm0
mov byte [r8 + 0x20], 1
mov rcx, rdx
mov rdx, rax
call fcn.00529690
mov r14, rdx
test rax, rax
jne 0x4c0396
mov qword [rsp + 0x28], rsi
mov ecx, 0x2000000
mov dl, 1
call fcn.00516634
mov qword [rsp + 0x20], rax
mov r15, rdx
xorps xmm0, xmm0
lea rsi, [rsp + 0xf0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x50], 0
movaps xmm0, xmmword [0x005b8250]
movaps xmmword [rsi + 0x40], xmm0
lea rdi, [rsp + 0x88]
mov ebx, 0xffffffff
mov r9d, 0x2000000
mov rcx, rdi
mov rdx, r14
mov r8, r15
call fcn.0053f490
cmp qword [rsp + 0x88], 0
jne 0x4c03ab
mov r13, qword [rsp + 0x90]
test r13, r13
je 0x4c023e
cmp r13, 0x2000000
ja 0x4c03f0
mov rdx, r15
cmp r13, rbx
mov ebp, 0xffffffff
cmovb rbp, r13
lea r12, [rdx + rbp]
mov rcx, rsi
mov r8, rbp
call fcn.004c1c20
mov rdx, r12
sub r13, rbp
jne 0x4c0219
jmp 0x4c01d9
lea rax, [rsp + 0x88]
lea rsi, [rsp + 0xf0]
mov ecx, 0x16
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x70], 0
mov ecx, dword [rax + 0x50]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x78], ecx
shr ecx, 3
and ecx, 0x3f
mov dword [rsp + 0x7c], eax
xor r8d, r8d
cmp ecx, 0x38
setae r8b
shl r8, 6
sub r8, rcx
add r8, 0x38
cmp r8, 0x41
jae 0x4c0406
lea rdx, [0x005de726]
lea rcx, [rsp + 0x88]
call fcn.004c1c20
xor eax, eax
xor ecx, ecx
mov edx, dword [rsp + rax + 0x88]
mov dword [rsp + rcx*4 + 0x40], edx
inc rcx
mov edx, eax
and edx, 4
xor rax, 4
lea rax, [rax + rdx*2]
cmp rcx, 0xe
jne 0x4c02be
lea rcx, [rsp + 0xc8]
lea rsi, [rsp + 0x40]
mov rdx, rsi
call fcn.004c1cbf
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0xc8]
mov dword [rsp + rax*4 + 0x30], ecx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 4
jne 0x4c02fe
movaps xmm0, xmmword [rsp + 0x30]
lea rax, [rsp + 0xe0]
movaps xmmword [rax], xmm0
mov qword [rsp + 0x40], rax
lea rax, [0x004c2690]
mov qword [rsp + 0x48], rax
lea rax, str.combase.dll
lea rdx, [rsp + 0x88]
mov qword [rdx + 0x10], rax
mov eax, 1
mov qword [rdx + 0x18], rax
mov qword [rdx], 0
mov qword [rdx + 0x20], rsi
mov qword [rdx + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.004179e0
mov rcx, qword [rsp + 0x20]
mov rdx, r15
call fcn.004c9843
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call fcn.0044542c
mov qword [rsi], rax
mov qword [rsi + 8], 0
jmp 0x4c0381
mov rcx, qword [rsp + 0x90]
call fcn.0044542c
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 0
mov rcx, qword [rsp + 0x20]
mov rdx, r15
call fcn.004c9843
mov rcx, r14
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
lea r8, str.src_plugin_universal_ifs.rs
mov edx, 0x2000000
mov rcx, r13
call fcn.004292f0
ud2
lea rax, str.registry_src_octopus.retort.com_8754fae0eb2f08f1_row_0.7.0_src_lib.rs
mov edx, 0x40
mov rcx, r8
mov r8, rax
jmp 0x4c03ff