Function at 0x18002ac49
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180073060
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov rax, qword [0x180094f40]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x28]
mov rdi, rax
mov rsi, qword [rsp + 0x130]
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xd0], 1
mov eax, 0x40
imul rax, rax, 0
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0xe8], eax
cmp dword [rsp + 0x138], 0
je 0x18007313a
mov dword [rsp + 0xec], 0xa8
mov eax, 0x40
imul rax, rax, 0
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x148]
imul rcx, rcx, 0xa8
add rax, rcx
mov qword [rsp + 0xe0], rax
jmp 0x180073166
mov dword [rsp + 0xec], 0x40
mov eax, dword [rsp + 0x148]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x80], 1
cmp dword [rsp + 0x48], 0
jle 0x180073535
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x80], 0
je 0x1800731c6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18002acee
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0xd8], rax
jb 0x1800731e8
mov dword [rsp + 0xd0], 2
jmp 0x180073535
mov r9, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.180073670
mov dword [rsp + 0xd0], eax
mov rax, qword [rsp + 0xd8]
movzx eax, byte [rax + 0x33]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0xd0], 1
jne 0x180073446
mov eax, dword [rsp + 0xe8]
and eax, 0x2ffc
test eax, eax
je 0x180073424
mov eax, dword [rsp + 0xe8]
and eax, 0x2000
test eax, eax
je 0x180073289
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xc0]
dec eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc8]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe8]
and eax, 4
test eax, eax
je 0x1800732af
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax + 0x38]
and eax, 0xf
test eax, eax
jne 0x1800732af
jmp 0x18007317a
mov eax, dword [rsp + 0xe8]
and eax, 0x800
test eax, eax
je 0x1800732f6
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax + 0x18]
and eax, 0x8000
test eax, eax
je 0x1800732f6
mov eax, dword [rsp + 0xec]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
jmp 0x180073535
mov eax, dword [rsp + 0xe8]
and eax, 0x7f8
test eax, eax
je 0x180073424
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax + 0x38]
and eax, 0xf
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 0
je 0x180073424
mov eax, dword [rsp + 0xe8]
and eax, 8
test eax, eax
je 0x18007334a
cmp dword [rsp + 0xf0], 1
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x10
test eax, eax
je 0x180073366
cmp dword [rsp + 0xf0], 2
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x20
test eax, eax
je 0x180073382
cmp dword [rsp + 0xf0], 3
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x40
test eax, eax
je 0x18007339a
cmp dword [rsp + 0xf0], 4
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x80
test eax, eax
je 0x1800733b4
cmp dword [rsp + 0xf0], 5
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x100
test eax, eax
je 0x1800733ce
cmp dword [rsp + 0xf0], 6
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x200
test eax, eax
je 0x1800733e8
cmp dword [rsp + 0xf0], 7
je 0x180073402
mov eax, dword [rsp + 0xe8]
and eax, 0x400
test eax, eax
je 0x180073424
cmp dword [rsp + 0xf0], 8
jne 0x180073424
mov eax, dword [rsp + 0xec]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
jmp 0x180073535
mov eax, dword [rsp + 0xec]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
jmp 0x180073530
mov eax, dword [rsp + 0xe8]
and eax, 4
test eax, eax
jne 0x1800734f8
mov r8d, 0x40
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call fcn.18002acee
mov eax, 0xffff
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x18], ax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xb8]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0xd8]
mov byte [rax + 0x33], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xc8]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xec]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0xe8]
and eax, 0x1000
test eax, eax
je 0x1800734f8
mov dword [rsp + 0xd0], 1
jmp 0x180073535
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xc0]
dec eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc8]
inc rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0xd0], 1
jmp 0x18007317a
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xd8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xec]
xor edx, edx
div rcx
mov rcx, qword [rsp + 0x150]
mov dword [rcx], eax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
mov eax, dword [rsp + 0xd0]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1800887e0]
call fcn.18002ae4c
mov eax, edi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18002a834
add rsp, 0x118
pop rdi
pop rsi
ret