Function at 0x14005a4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
push rax
mov rbp, rsp
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1404a5680]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14029435c]
mov ecx, dword [0x140294360]
shrd ecx, eax, 0x1b
xor ecx, 0xe14ae332
mov eax, ecx
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.1401e2600
sub rsp, rax
mov r14, rsp
movzx eax, byte [rdx + 8]
movabs r12, 0xfd5680d5adc5bd28
jmp 0x14005a54c
mov qword [rdi], 0
mov al, 1
mov byte [rdi + 8], al
mov r15d, eax
mov rax, qword [0x1402f5250]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x140294364]
movzx ecx, byte [0x140294365]
shr cl, 7
add al, al
or al, cl
xor al, 0xdd
cmp r15b, al
jne 0x14005a5f5
mov rcx, qword [rdi]
test rcx, rcx
je 0x14005a5c1
mov rax, qword [0x1402f5258]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
mov r15d, eax
mov rax, qword [0x1402f5260]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248618]
cmp r15d, dword [rcx + rax*4]
jne 0x14005a5ca
mov qword [rdi], 0
jmp 0x14005a5d1
mov eax, r15d
mov byte [rdi + 9], r15b
mov rax, qword [0x1402f5268]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248624]
movzx eax, byte [rax + rcx]
mov byte [rdi + 8], al
movzx r15d, byte [rsi + 8]
mov rax, qword [0x1402f5270]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x140294366]
movzx ecx, byte [0x1404a7505]
shr cl, 2
shl al, 6
or al, cl
add al, 0x80
mov rcx, qword [rsi]
cmp r15b, al
jne 0x14005a6ac
test rcx, rcx
je 0x14005a66d
mov rax, qword [0x1402f5258]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
mov r15d, eax
mov rax, qword [0x1402f5278]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248628]
cmp r15d, dword [rcx + rax*4]
jne 0x14005a678
mov qword [rsi], 0
xor eax, eax
jmp 0x14005a682
mov eax, r15d
mov byte [rsi + 9], r15b
mov rax, qword [rsi]
mov r15, rax
mov rax, qword [0x1402f5280]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248634]
movzx eax, byte [rax + rcx]
mov byte [rsi + 8], al
mov rcx, r15
mov r15, qword [rdi]
test rcx, rcx
setne al
sete cl
test r15, r15
mov edx, 0
mov dl, al
mov eax, 0
mov al, cl
cmove eax, edx
cmp al, 1
jne 0x14005a80e
movzx r13d, byte [rdi + 8]
mov rax, qword [0x1402f5288]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [reloc.WLDAP32.dll_Ordinal_30]
movzx ecx, byte [0x140294368]
imul eax, eax, 0xffffffaf
imul ecx, ecx, 0xffffffc5
add cl, al
add cl, 0x89
cmp r13b, cl
jne 0x14005a781
test r15, r15
je 0x14005a74d
mov rax, qword [0x1402f5258]
add rax, r12
sub rsp, 0x20
mov rcx, r15
call rax
add rsp, 0x20
mov r15d, eax
mov rax, qword [0x1402f5290]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248638]
cmp r15d, dword [rcx + rax*4]
jne 0x14005a756
mov qword [rdi], 0
jmp 0x14005a75d
mov eax, r15d
mov byte [rdi + 9], r15b
mov rax, qword [0x1402f5298]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248644]
movzx eax, byte [rax + rcx]
mov byte [rdi + 8], al
movzx eax, byte [rdi + 9]
mov byte [r14], al
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14005a7a0
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x14005a7ba
mov rax, qword [0x1402f52a0]
add rax, r12
sub rsp, 0x20
mov rcx, rbx
mov r8, r14
call rax
add rsp, 0x20
mov rcx, qword [rdi]
test rcx, rcx
je 0x14005a540
mov rax, qword [0x1402f52a8]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
mov r15d, eax
mov rax, qword [0x1402f52b0]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140248648]
cmp r15d, dword [rcx + rax*4]
je 0x14005a540
xor eax, eax
mov byte [rdi + 8], al
jmp 0x14005a54c
mov rcx, qword [rbp]
xor rcx, rbp
sub rsp, 0x20
call fcn.1401e2660
nop
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret