Function at 0x18003e260
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x18014a010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x28], edi
cmp dword [r8 + 0xc], edi
je 0x18003e515
cmp dword [rdx + 0xc], edi
je 0x18003e515
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea ecx, [rdi + 0x18]
call fcn.18009603c
mov qword [rsp + 0x30], rax
mov r8d, dword [r15 + 0xc]
mov rcx, rax
call fcn.180004650
mov r12, rax
lea rcx, vtable.metasec::MSSPLockWrap.0
mov qword [rsp + 0x30], rcx
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x50], r12
lea ecx, [rdi + 4]
call fcn.18009603c
mov r14, rax
mov qword [rsp + 0x58], rax
mov dword [rax], 1
test ebx, ebx
jne 0x18003e32a
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
nop
mov eax, dword [r15 + 0xc]
mov dword [rsp + 0x24], eax
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov ebx, eax
test r12, r12
jne 0x18003e362
mov r8d, 0x99
lea rdx, str.D:gitlab_runner_builds_a09b78ae0mobilesecproduct_SecSDK_mlcommon_matrixopen_sourceSmartPointerSmartPointer.cpp
lea rcx, str._address
call fcn.1800d09b4
nop
test ebx, ebx
jne 0x18003e376
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
nop
mov r11, qword [r12 + 0x10]
mov r15, qword [r15 + 0x10]
mov eax, dword [r13 + 0xc]
mov dword [rsp + 0x20], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x30], rax
mov eax, edi
lea rcx, [rsp + 0x68]
nop word [rax + rax]
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, 0x100
jb 0x18003e3a0
mov ebx, edi
mov r9d, edi
lea r10, [rsp + 0x68]
mov r13d, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r10]
xor edx, edx
mov eax, r9d
div r13d
movzx ecx, byte [rdx + rsi]
add ecx, ebx
add ecx, r8d
movzx ebx, cl
lea rcx, [rsp + 0x68]
movzx eax, byte [rcx + rbx]
mov byte [r10], al
mov byte [rcx + rbx], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x100
jb 0x18003e3d0
mov r9d, edi
mov dword [rsp + 0x64], edi
mov eax, dword [rsp + 0x24]
test eax, eax
mov rsi, qword [rsp + 0x40]
je 0x18003e494
sub r15, r11
mov r10d, eax
nop dword [rax]
nop word [rax + rax]
lea eax, [rdi + 1]
movzx ecx, al
mov dword [rsp + 0x60], ecx
lea r8, [rsp + 0x68]
add r8, rcx
movzx eax, byte [r8]
add eax, r9d
movzx ecx, al
mov dword [rsp + 0x64], ecx
movzx edx, byte [r8]
movzx eax, byte [rsp + rcx + 0x68]
mov byte [r8], al
mov eax, dword [rsp + 0x64]
mov byte [rsp + rax + 0x68], dl
mov r9d, dword [rsp + 0x64]
movzx edx, byte [rsp + r9 + 0x68]
mov edi, dword [rsp + 0x60]
movzx ecx, byte [rsp + rdi + 0x68]
add rdx, rcx
movzx eax, dl
movzx ecx, byte [rsp + rax + 0x68]
xor cl, byte [r15 + r11]
mov byte [r11], cl
lea r11, [r11 + 1]
sub r10, 1
jne 0x18003e430
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov qword [rsi], r12
mov qword [rsi + 8], r14
inc dword [r14]
test eax, eax
jne 0x18003e4c1
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
nop
mov dword [rsp + 0x28], 1
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov ebx, eax
dec dword [r14]
cmp dword [r14], 1
jge 0x18003e4ff
mov edx, 4
mov rcx, r14
call fcn.180096034
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
nop
test ebx, ebx
jne 0x18003e513
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
nop
jmp 0x18003e55f
lea rcx, vtable.metasec::MSSPLockWrap.0
mov qword [rsp + 0x50], rcx
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov ebx, eax
mov dword [rsp + 0x58], eax
mov qword [rsi], rdi
mov ecx, 4
call fcn.18009603c
mov dword [rax], edi
mov qword [rsi + 8], rax
inc dword [rax]
test ebx, ebx
jne 0x18003e55f
call fcn.18004a9e0
lea rcx, [rax + 8]
call qword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180096010
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret