Function at 0x1400170f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140044908]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov eax, 0xffff86bf
mov rbx, rcx
mov word [rsp + 0x6c], ax
mov rdi, rdx
movzx eax, word [0x1400445b0]
mov eax, 0x92b7
mov word [rsp + 0x58], ax
mov eax, dword [0x140044584]
mov dword [rsp + 0x70], eax
mov byte [rsp + 0x54], 0x78
movzx eax, word [0x1400445b0]
mov eax, 0xffffca63
mov word [rsp + 0x68], ax
movzx eax, word [0x140044580]
movzx ecx, byte [0x1400444be]
mov byte [rsp + 0x55], al
movzx esi, cx
mov word [rsp + 0x6c], cx
mov eax, 0xffff8124
mov word [rsp + 0x50], ax
mov eax, 0x59b
mov word [rsp + 0x50], ax
movzx eax, word [0x14004456c]
mov qword [rsp + 0x60], 0x15d7
mov word [rsp + 0x60], ax
movzx eax, word [0x1400445a8]
mov rax, qword [0x140044560]
mov qword [rsp + 0x60], rax
movsxd rax, dword [0x140044570]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x56], 0x8c
mov byte [rsp + 0x56], 0xec
mov dword [rsp + 0x60], 0x50f4e4d5
mov eax, dword [0x140044584]
mov eax, dword [0x140044578]
mov eax, dword [0x140044584]
mov byte [rsp + 0x60], al
movsx rax, byte [0x1400444d6]
mov qword [rsp + 0x60], rax
movzx eax, word [0x140044574]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140044560]
mov dword [rsp + 0x60], eax
mov eax, dword [0x140044570]
mov eax, 0xfffffaac
mov word [rsp + 0x60], ax
mov ecx, dword [0x140044584]
call fcn.140020c88
movzx eax, ax
xor r15d, r15d
mov qword [rsp + 0x60], rax
mov r12d, 1
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400172fc
movzx r9d, word [0x14004458c]
lea edx, [r12 + 0x6a]
movzx ecx, word [0x14004456c]
lea r8d, [r12 + 0xa]
call fcn.140020f28
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
cmp qword [0x140044598], r15
mov eax, r15d
sete al
or rax, qword [0x140044548]
cmp rax, r12
jae 0x1400172a0
movzx eax, byte [rsp + 0x54]
mov ecx, 0x7b13
add ax, cx
mov word [0x140044574], ax
jmp 0x140017314
movzx edx, byte [rsp + 0x56]
mov r8d, r15d
movzx eax, byte [0x1400444fe]
mov ecx, r15d
add edx, eax
movzx eax, word [0x140044580]
sete r8b
test ax, ax
sete cl
sub cx, r8w
mov r8d, dword [0x1400445ac]
mov edx, dword [0x140044570]
add r8w, cx
add dx, word [0x140044574]
movsx ecx, byte [rsp + 0x55]
movzx eax, dx
movzx edx, cx
imul edx, eax
xor dx, r8w
mov word [0x140044588], dx
jmp 0x140017314
mov eax, dword [0x140044570]
mov rax, qword [0x140044590]
add rax, 0x8507
mov qword [rsp + 0x60], rax
mov al, byte [rsp + 0x54]
mov r9d, 0x104
movzx eax, word [rsp + 0x50]
mov eax, dword [0x140044570]
movzx ecx, byte [0x1400444d7]
movsx edx, byte [0x1400444bf]
cmp eax, ecx
movzx eax, word [0x140044574]
mov ecx, r15d
sete cl
mov qword [rsp + 0x40], r15
not eax
mov qword [rsp + 0x38], r15
add eax, ecx
mov qword [rsp + 0x30], r15
movsx ecx, byte [rsp + 0x55]
add edx, eax
movzx eax, word [rsp + 0x58]
imul eax, ecx
movsx ecx, byte [0x1400444bf]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
sub cx, ax
mov eax, r15d
add cx, word [0x1400444d4]
test edx, edx
lea rdx, [rbp + 0x90]
cmove ax, cx
xor r8d, r8d
mov word [rsp + 0x60], ax
movzx ecx, word [0x1400445a8]
movzx eax, word [rsp + 0x50]
sub cx, 0x47
add cx, ax
mov word [rsp + 0x50], cx
mov ecx, 0x77
movzx eax, word [rsp + 0x50]
sub cl, sil
add cl, al
mov byte [0x1400444bd], cl
lea rcx, [fcn.140027300]
movzx eax, word [rsp + 0x6c]
movzx eax, word [rsp + 0x68]
sub ax, r12w
mov word [rsp + 0x68], ax
call fcn.14000abe8
mov qword [rsp + 0x40], r15
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x38], r15
lea rcx, [0x1400284a0]
mov qword [rsp + 0x30], r15
mov esi, 0x103
mov qword [rsp + 0x28], r15
mov r9d, esi
mov r8, rbx
mov qword [rsp + 0x20], r15
call fcn.14000abe8
mov rcx, qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.14000abe8
mov qword [rsp + 0x40], r15
lea r9d, [rsi + 1]
mov qword [rsp + 0x38], r15
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], r15
lea rcx, [fcn.140027300]
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov qword [rsp + 0x20], r15
call fcn.14000abe8
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov r9d, esi
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [0x1400284a0]
call fcn.14000abe8
mov rcx, qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.14000abe8
mov qword [rsp + 0x40], r15
lea r8, [rbp - 0x80]
mov qword [rsp + 0x38], r15
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x30], r15
lea rcx, [0x140028674]
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov qword [rsp + 0x20], r15
call fcn.14000abe8
test eax, eax
mov r9d, r15d
mov r8d, 0x334
sete r9b
mov qword [0x140044560], 4
mov eax, dword [rsp + 0x70]
imul eax, eax, 0xed
mov byte [0x1400444d7], 0x30
mov qword [0x140044550], rax
mov rax, qword [0x140044560]
test rax, rax
je 0x140017587
sub rax, r12
je 0x140017587
sub rax, r12
je 0x140017587
sub rax, r12
je 0x14001757d
cmp rax, r12
jne 0x140017587
mov rax, qword [0x140044560]
movsx rdx, word [0x14004458c]
cwde
imul eax, edx
mov word [rsp + 0x60], ax
jmp 0x140017587
mov ecx, dword [0x140e887f0]
mov dword [rsp + 0x70], ecx
movzx ecx, word [rsp + 0x58]
sub r8d, r12d
add cx, r12w
mov word [rsp + 0x58], cx
test r8d, r8d
jg 0x140017520
mov eax, r9d
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140025dd0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret