Function at 0x140024830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rdx], 0
mov qword [r8], 0
call fcn.1408a9970
mov ebx, 0x3d
test rax, rax
je 0x140024b7a
mov r15, rax
and eax, 3
jne 0x140024b7a
movzx ebp, byte [r15 + r14 - 1]
cmp bpl, 0x3d
jne 0x1400248b9
cmp byte [r15 + r14 - 2], 0x3d
jne 0x1400248c9
cmp byte [r15 + r14 - 3], 0x3d
je 0x140024b7a
mov qword [rsp + 0x38], rsi
mov eax, 2
xor ecx, ecx
jmp 0x1400248d5
mov qword [rsp + 0x38], rsi
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
jmp 0x1400248da
mov qword [rsp + 0x38], rsi
mov eax, 1
mov cl, 1
mov qword [rsp + 0x30], rcx
xor r12d, r12d
cmp bpl, 0x3d
sete sil
shr r15, 2
lea r13, [r15 + r15*2]
mov qword [rsp + 0x28], rax
sub r13, rax
lea rcx, [r13 + 1]
call qword [fcn.14089969c]
test rax, rax
je 0x140024aad
mov r12b, sil
pcmpeqd xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1408f0320]
movups xmmword [rsp + 0x6b], xmm0
movaps xmm0, xmmword [0x1408f0330]
movups xmmword [rsp + 0x7b], xmm0
movaps xmm0, xmmword [0x1408f0340]
movups xmmword [rsp + 0x8b], xmm0
movaps xmm0, xmmword [0x1408f0350]
movups xmmword [rsp + 0x9b], xmm0
movaps xmm0, xmmword [0x1408f0360]
movups xmmword [rsp + 0xab], xmm0
mov rcx, rax
sub r15, r12
je 0x140024a8f
nop word cs:[rax + rax]
movzx r8d, byte [r14]
movzx r8d, byte [rsp + r8 + 0x40]
cmp r8d, 0xff
je 0x140024b34
mov rdx, r14
movzx r9d, byte [r14 + 1]
movzx r9d, byte [rsp + r9 + 0x40]
cmp r9d, 0xff
je 0x140024b34
movzx r10d, byte [rdx + 2]
movzx r10d, byte [rsp + r10 + 0x40]
cmp r10d, 0xff
je 0x140024b34
movzx r11d, byte [rdx + 3]
movzx r11d, byte [rsp + r11 + 0x40]
cmp r11b, 0xff
je 0x140024b34
shl r8d, 0xc
shl r9d, 6
or r8d, r9d
or r9d, r10d
shl r10b, 6
or r11b, r10b
mov byte [rcx + 2], r11b
shr r9d, 2
mov byte [rcx + 1], r9b
shr r8d, 0xa
mov byte [rcx], r8b
add rcx, 3
lea r14, [rdx + 4]
dec r15
jne 0x1400249f0
add rdx, 4
mov r14, rdx
cmp bpl, 0x3d
jne 0x140024b6a
movzx edx, byte [r14]
cmp rdx, 0x3d
jne 0x140024ab7
xor edx, edx
mov r8d, 1
jmp 0x140024aca
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140024b7a
movzx edx, byte [rsp + rdx + 0x40]
cmp edx, 0xff
je 0x140024b34
shl edx, 6
xor r8d, r8d
movzx r9d, byte [r14 + 1]
cmp r9, 0x3d
jne 0x140024ae1
cmp r8, qword [rsp + 0x28]
jae 0x140024b34
inc r8
jmp 0x140024af3
movzx r9d, byte [rsp + r9 + 0x40]
cmp r9d, 0xff
je 0x140024b34
or edx, r9d
movzx r9d, byte [r14 + 2]
cmp r9, 0x3d
jne 0x140024b0d
cmp r8, qword [rsp + 0x28]
jae 0x140024b34
shl edx, 6
inc r8
jmp 0x140024b22
movzx r9d, byte [rsp + r9 + 0x40]
cmp r9d, 0xff
je 0x140024b34
shl edx, 6
or edx, r9d
movzx r9d, byte [r14 + 3]
cmp r9, 0x3d
jne 0x140024b3f
cmp r8, qword [rsp + 0x28]
jb 0x140024b47
mov rcx, rax
call qword [fcn.140899688]
jmp 0x140024b7a
cmp byte [rsp + r9 + 0x40], 0xff
je 0x140024b34
cmp byte [rsp + 0x30], 0
je 0x140024b59
mov r8d, edx
shr r8d, 2
mov byte [rcx + 1], r8b
shr edx, 0xa
mov byte [rcx], dl
mov rdx, qword [rsp + 0x28]
xor rdx, 3
add rcx, rdx
mov byte [rcx], 0
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
mov qword [rax], r13
xor ebx, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140890ac0
mov eax, ebx
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret