Function at 0x1400a9dd2
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov r14, r9
mov r15, r8
mov rbp, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401212c8]
movaps xmmword [rsp + 0x90], xmm0
movabs rax, 0x1000000010
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
lea r8, [0x14015ee8c]
xor r9d, r9d
call fcn.14001af14
test eax, eax
je 0x1400aa23f
lea rcx, [0x14015e220]
call fcn.140016430
mov rdx, qword [rsp + 0x40]
lea r8, [0x14015eea6]
lea r9, [0x14015ee9a]
mov rcx, rsi
call fcn.1400aa94d
mov rdx, qword [rsp + 0x40]
lea r8, [0x14015eeba]
lea r9, [0x14015eeac]
mov rcx, rsi
call fcn.1400aa94d
mov rdx, qword [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r8, [0x14015eec0]
mov rcx, rsi
xor r9d, r9d
call fcn.14001ba41
test eax, eax
je 0x1400a9eff
mov rax, qword [rsp + 0x38]
movzx ecx, word [rax]
lea rdx, [rsp + 0x80]
mov word [rdx], cx
movzx ecx, word [rax + 2]
mov word [rdx + 2], cx
mov ecx, dword [rax + 4]
add rcx, rax
mov qword [rdx + 8], rcx
lea rcx, [0x14015eee0]
call fcn.140016430
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r8, [0x14015ef10]
mov rcx, rsi
xor r9d, r9d
call fcn.14001ba41
test eax, eax
je 0x1400aa0c2
mov rax, qword [rsp + 0x48]
movzx r8d, word [rax]
movzx edx, word [rax + 2]
lea rcx, str.ka1a
call fcn.140016430
mov rax, qword [rsp + 0x48]
cmp word [rax], 9
lea rax, [0x14015ef70]
lea r8, [0x14015ef90]
cmova r8, rax
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rsi
xor r9d, r9d
call fcn.14001ba41
test eax, eax
je 0x1400aa0ca
mov rbx, qword [rsp + 0x170]
mov rax, qword [rsp + 0x48]
cmp word [rax], 0xa
jb 0x1400aa0d2
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x38]
xor edi, edi
xor r8d, r8d
mov r9, rbx
call fcn.1400aaa86
test eax, eax
je 0x1400aa19b
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x1400aa194
mov r13, rax
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rdx + 0x3c]
add rdx, 0x4c
mov rcx, rax
call fcn.1400eeb30
mov edx, dword [r13 + 0x18]
lea rcx, [0x14015efc0]
call fcn.140016430
lea rcx, [r13 + 4]
call fcn.140023f40
lea rcx, [0x14015e220]
call fcn.140016430
xor edi, edi
cmp dword [r13 + 0x18], 0
je 0x1400aa19e
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r14
mov rbx, r13
add rbx, 0x1c
xor r15d, r15d
xor ebp, ebp
mov r14d, ebp
lea r12, [rbx + r14]
lea rcx, [0x14015f000]
mov edx, r15d
call fcn.140016430
mov rcx, r12
call fcn.140023f40
lea rcx, [0x14015f014]
call fcn.140016430
mov edx, dword [r13 + r14 + 0x30]
lea rcx, [rbx + r14]
add rcx, 0x18
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
inc r15d
mov eax, dword [r13 + r14 + 0x30]
add ebp, eax
add ebp, 0x18
cmp r15d, dword [r13 + 0x18]
jb 0x1400aa050
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
jmp 0x1400aa19e
xor r13d, r13d
jmp 0x1400aa1b4
xor r13d, r13d
jmp 0x1400aa1a9
lea rdi, [rsp + 0xa0]
mov rcx, rdi
call sub.cryptdll.dll_MD5Init
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x10
call sub.cryptdll.dll_MD5Update
mov ebx, 0x3e8
mov rdx, qword [rsp + 0x38]
add rdx, 0x3c
mov rcx, rdi
mov r8d, 0x10
call sub.cryptdll.dll_MD5Update
dec ebx
jne 0x1400aa0f8
lea rcx, [rsp + 0xa0]
call sub.cryptdll.dll_MD5Final
mov rax, qword [rsp + 0x38]
add rax, 0xc
lea rcx, [rsp + 0x90]
mov qword [rcx + 8], rax
lea rdx, [rsp + 0x70]
call sub.advapi32.dll_SystemFunction032
test eax, eax
js 0x1400aa194
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x1400aa194
mov rdi, rax
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax + 0x1c]
movups xmmword [rdi], xmm0
lea rcx, [0x14015f020]
call fcn.140016430
xor r13d, r13d
mov rcx, rdi
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
jmp 0x1400aa19e
xor r13d, r13d
xor edi, edi
jmp 0x1400aa19e
xor r13d, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
jne 0x1400aa1cd
test rdi, rdi
jne 0x1400aa1cd
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14001ba0b
jmp 0x1400aa23f
cmp dword [rsp + 0x178], 0
mov rdx, qword [rsp + 0x40]
je 0x1400aa1f6
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r8, r15
mov r9, r14
call fcn.1400aacd8
jmp 0x1400aa216
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r8, rbp
mov r9, r13
call fcn.1400ab003
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14001ba0b
test r13, r13
je 0x1400aa231
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400aa23f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret