Function at 0x4d2ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4d2f5d
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
xor edx, edx
xor ebx, ebx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x4d2bf6
dec rax
mov r9, rax
neg rax
sar rax, 0x3f
and rax, 1
add rcx, rax
mov rax, r9
test rax, rax
jle 0x4d2f02
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x46], r8b
movzx r9d, byte [rcx]
mov byte [rsp + 0x47], r9b
cmp r9b, 0x20
jbe 0x4d2e69
cmp r9b, 0x22
je 0x4d2cd9
cmp r9b, 0x5c
jne 0x4d2c3f
inc rdi
cmp rax, 1
jae 0x4d2bdf
jmp 0x4d2f56
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call fcn.004d2ad0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rbx, [rcx + 1]
cmp rbx, rdx
jg 0x4d2c96
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
mov rcx, qword [rsp + 0x70]
mov rsi, rdx
mov rdx, rbx
xor edi, edi
movzx r8d, byte [rsp + 0x46]
mov rbx, rax
mov rax, qword [rsp + 0x78]
jmp 0x4d2c34
mov qword [rsp + 0x50], rcx
lea rsi, [0x008569c0]
mov qword [rsp], rsi
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rbx
call fcn.004400c0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rbx, [rcx + 1]
mov rcx, qword [rsp + 0x50]
jmp 0x4d2c6f
mov qword [rsp + 0x48], rdi
mov rax, rdi
sar rdi, 0x3f
shr rdi, 0x3f
lea rcx, [rax + rdi]
sar rcx, 1
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x18], rcx
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
call fcn.004d2ad0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
shl rbx, 1
mov rsi, qword [rsp + 0x48]
cmp rsi, rbx
jne 0x4d2e02
movzx ebx, byte [rsp + 0x46]
test bl, bl
je 0x4d2df6
mov rsi, qword [rsp + 0x78]
cmp rsi, 1
jle 0x4d2def
mov rdi, qword [rsp + 0x70]
cmp byte [rdi + 1], 0x22
jne 0x4d2de5
lea r8, [rcx + 1]
cmp r8, rdx
jg 0x4d2d98
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
lea rcx, [rdi + 1]
dec rsi
xor ebx, 1
xor edi, edi
mov r9, rax
mov rax, rsi
mov rsi, rdx
mov rdx, r8
mov r8d, ebx
mov rbx, r9
jmp 0x4d2c34
lea rbx, [0x008569c0]
mov qword [rsp], rbx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r8
call fcn.004400c0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea r8, [rcx + 1]
mov rcx, qword [rsp + 0x50]
movzx ebx, byte [rsp + 0x46]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
jmp 0x4d2d6b
mov rcx, rdi
mov r8, qword [rsp + 0x50]
jmp 0x4d2d7c
mov rdi, qword [rsp + 0x70]
jmp 0x4d2de5
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
jmp 0x4d2de5
lea rbx, [rcx + 1]
cmp rbx, rdx
jg 0x4d2e2b
movzx edi, byte [rsp + 0x47]
mov byte [rax + rcx], dil
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov r8, rbx
movzx ebx, byte [rsp + 0x46]
jmp 0x4d2d7f
lea rsi, [0x008569c0]
mov qword [rsp], rsi
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rbx
call fcn.004400c0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rbx, [rcx + 1]
mov rcx, qword [rsp + 0x50]
jmp 0x4d2e0b
cmp r9b, 9
jne 0x4d2ef3
test r8b, r8b
jne 0x4d2c3f
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call fcn.004d2ad0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdx
mov rax, qword [rsp + 0x78]
dec rax
mov rcx, rax
neg rax
sar rax, 0x3f
and rax, 1
mov rdx, qword [rsp + 0x70]
add rax, rdx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp r9b, 0x20
je 0x4d2e73
jmp 0x4d2c3f
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call fcn.004d2ad0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
call fcn.0042bba0
ud2
call fcn.004555f0
jmp fcn.004d2ba0