Function at 0x1400ab003
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, 0x128
mov r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [rsp + 0x190]
movabs rcx, 0x1000000010
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0x110]
mov qword [rsp + 0xe8], rcx
lea rcx, [rsp + 0xcc]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [0x14015f0e0]
mov rcx, rsi
call fcn.1400ab894
test eax, eax
je 0x1400ab818
mov rax, qword [rsp + 0x198]
test rax, rax
je 0x1400ab09f
cmp qword [rax], 0
mov ecx, 0x20019
mov eax, 0x2001f
cmove eax, ecx
jmp 0x1400ab0a4
mov eax, 0x20019
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
lea r8, [0x14015f10c]
mov rcx, rsi
mov rdx, rbx
xor r9d, r9d
call fcn.14001af14
test eax, eax
je 0x1400ab80a
mov edi, 0x2800
test r14, r14
je 0x1400ab168
lea rcx, [0x14015e220]
call fcn.140016430
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x10c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r8, [0x14015f120]
mov rcx, rsi
xor r9d, r9d
call fcn.14001b453
test eax, eax
je 0x1400ab15c
mov edx, dword [rsp + 0x6c]
mov eax, edx
and eax, 0xfffffc00
mov edi, edx
shl edi, 0xa
cmp edx, 0x2800
cmova edi, eax
lea rcx, [0x14015f150]
mov r8d, edi
call fcn.140016430
cmp dword [rsp + 0x6c], 0
jne 0x1400ab168
lea rcx, [0x14015f1c0]
jmp 0x1400ab163
lea rcx, [0x14015f1e0]
call fcn.140016430
mov rdx, qword [rsp + 0x78]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.14001b194
test eax, eax
je 0x1400ab7fd
mov edx, dword [rsp + 0x74]
lea eax, [rdx + 1]
mov dword [rsp + 0x74], eax
add edx, 2
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x1400ab7fd
mov rbx, rax
mov edx, dword [rsp + 0x84]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x1400ab7f4
mov rbp, rax
mov dword [rsp + 0xc4], edi
mov dword [rsp + 0x6c], 0
cmp dword [rsp + 0x88], 0
je 0x1400ab7eb
lea r15, [rbp + 0x20]
lea r12, [rbp + 0x40]
lea rdi, [rbp + 0x60]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x198]
lea rcx, [rax + 8]
mov qword [rsp + 0xa8], rcx
add rax, 0x1c
mov qword [rsp + 0xd0], rax
mov rax, rbp
add rax, 0x50
mov qword [rsp + 0xa0], rax
xor r8d, r8d
mov qword [rsp + 0x100], r12
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x70], eax
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov r9, rbx
call fcn.14001b7df
test eax, eax
je 0x1400ab7d0
mov r8d, 0xa
mov rcx, rbx
lea rdx, [0x14015f230]
call fcn.140104050
test eax, eax
je 0x1400ab7d0
mov r8d, 0x11
mov rcx, rbx
lea rdx, [0x14015f120]
call fcn.140104050
test eax, eax
je 0x1400ab7d0
test byte [rbp + 0x30], 1
je 0x1400ab7d0
lea rcx, [0x14015f250]
mov rdx, rbx
call fcn.140016430
mov rcx, r15
call fcn.140023f18
mov edx, dword [rbp + 0x10]
lea rcx, [0x14015f260]
mov r8d, edx
call fcn.140016430
mov r13d, dword [rsp + 0x70]
add r13d, 0xffffffa0
test r14, r14
je 0x1400ab46d
mov r9, qword [rsp + 0xb8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x10
mov ecx, 0x660e
mov rdx, rdi
mov r8d, r13d
mov qword [rsp + 0xd8], r9
call fcn.140007b41
test eax, eax
je 0x1400ab7d0
mov r12, r15
mov rcx, rbp
mov dl, 0x32
call fcn.1400abcb3
movzx eax, word [rbp]
mov word [rsp + 0x92], ax
mov word [rsp + 0x90], ax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov r15, qword [rsp + 0x198]
mov r8, qword [r15 + 0x30]
test r8, r8
je 0x1400ab3ea
mov edx, dword [rbp + 0x84]
test edx, edx
je 0x1400ab3ea
mov r9d, dword [r15 + 0x38]
mov ecx, r13d
sub ecx, edx
add rcx, rdi
call fcn.1400abd57
mov rcx, qword [r15]
test rcx, rcx
mov r15, r12
mov r12, qword [rsp + 0x100]
je 0x1400ab7d0
movzx r8d, word [rsp + 0x90]
shr r8, 1
mov rdx, qword [rsp + 0x98]
call fcn.140104050
test eax, eax
jne 0x1400ab7d0
lea rcx, [0x14015f2a0]
call fcn.140016430
mov rax, qword [rsp + 0x198]
cmp dword [rax + 0x18], 0
je 0x1400ab59d
mov rcx, rdi
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x90]
mov r9d, dword [rsp + 0xc4]
call fcn.140007e06
test eax, eax
jns 0x1400ab5b5
jmp 0x1400ab6bc
mov rax, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xcc]
mov rdx, qword [rsp + 0xb8]
mov ecx, 0x10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov ecx, 0x8003
mov r9, r12
call fcn.1400073ab
test eax, eax
je 0x1400ab58b
mov dword [rsp + 0xf4], r13d
mov dword [rsp + 0xf0], r13d
mov qword [rsp + 0xf8], rdi
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xe0]
call sub.advapi32.dll_SystemFunction032
test eax, eax
js 0x1400ab7c2
mov rcx, rbp
mov dl, 0x31
call fcn.1400abcb3
movzx r8d, word [rbp]
mov word [rsp + 0x92], r8w
mov word [rsp + 0x90], r8w
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x198], 0
je 0x1400ab7d0
mov rax, qword [rsp + 0x198]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400ab7d0
shr r8, 1
mov rdx, qword [rsp + 0xb0]
call fcn.140104050
test eax, eax
jne 0x1400ab7d0
lea rcx, [0x14015f3d0]
call fcn.140016430
mov rax, qword [rsp + 0x198]
cmp dword [rax + 0x18], 0
je 0x1400ab6e0
mov rcx, rdi
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x90]
xor r9d, r9d
call fcn.140007e06
jmp 0x1400ab6f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14015f480]
jmp 0x1400ab7c9
cmp dword [rax + 0x2c], 0
je 0x1400ab6bc
mov rax, qword [rsp + 0xd0]
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
lea rcx, [0x14015f2e0]
call fcn.140016430
mov rcx, rdi
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x30], 0x10
mov ecx, 0x8004
mov rdx, qword [rsp + 0xd8]
mov r8d, 0x10
mov r9, rdi
call fcn.1400073ab
test eax, eax
je 0x1400ab7d0
lea rcx, [0x14015f300]
call fcn.140016430
mov rcx, qword [rsp + 0xa0]
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 0x10
mov ecx, 0x660e
mov rdx, rdi
mov r8d, r13d
mov r9, qword [rsp + 0xd8]
call fcn.140007b41
test eax, eax
je 0x1400ab7d0
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov r8, rbx
xor r9d, r9d
call fcn.14001b539
test eax, eax
je 0x1400ab6ce
lea rcx, [0x14015f31e]
call fcn.140016430
jmp 0x1400ab7d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._g5g5g_g5gGgGggGgXgGgOgWg
jmp 0x1400ab7c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14015f330]
jmp 0x1400ab7c9
cmp dword [rax + 0x2c], 0
je 0x1400ab6f4
mov rax, qword [rsp + 0xd0]
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
mov rcx, rdi
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x90]
xor r9d, r9d
call fcn.140007e06
test eax, eax
js 0x1400ab7d0
lea rcx, [0x14015f410]
call fcn.140016430
mov rcx, rdi
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
mov rdx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x30], 0x10
mov ecx, 0x8003
mov r8d, 0x10
mov r9, rdi
call fcn.1400073ab
test eax, eax
je 0x1400ab7d0
lea rcx, [0x14015f300]
call fcn.140016430
mov rcx, qword [rsp + 0xa0]
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
lea rcx, [0x14015e220]
call fcn.140016430
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xe0]
call sub.advapi32.dll_SystemFunction032
test eax, eax
jns 0x1400ab67c
lea rcx, [0x14015f430]
mov edx, eax
call fcn.140016430
mov r8d, dword [rsp + 0x6c]
inc r8d
mov dword [rsp + 0x6c], r8d
cmp r8d, dword [rsp + 0x88]
jb 0x1400ab271
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call fcn.14001ba0b
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret