Function at 0x18000198c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180010070]
movabs r9, 0xaf061a26a0609
movzx eax, word [0x18001000c]
mov dword [rsp + 0x44], 0x9f22af24
mov dword [rsp + 0x40], 0x6254
mov dword [rsp + 0x4c], 0x81
mov word [rsp + 0x34], ax
movsx eax, word [0x180010034]
mov dword [rsp + 0x78], eax
movsx rax, word [0x180010058]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x70], 0x69
mov al, byte [0x18001001f]
movsxd r11, dword [0x18001000c]
mov r10, qword [0x180010040]
mov byte [rsp + 0x78], al
mov eax, 0x308d
mov word [rsp + 0x30], ax
mov dword [rsp + 0x38], 0xd35e025c
mov byte [rsp + 0x80], 0x20
mov byte [rsp + 0x88], 0x22
mov byte [rsp + 0x88], 0xd
movsx eax, byte [0x180010007]
mov dword [rsp + 0x48], eax
mov al, byte [0x180010007]
mov eax, 0x390
mov word [rsp + 0x88], ax
mov rax, qword [0x180010028]
mov qword [rsp + 0x38], rax
movzx eax, word [section..data]
movsx rcx, word [0x180010058]
mov word [rsp + 0x38], ax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x38], ecx
mov rax, qword [0x180010020]
mov word [rsp + 0x38], ax
movzx eax, word [0x180010068]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x288e9413
mov qword [rsp + 0x38], 0x6237d4cf
mov rax, qword [0x180010020]
mov qword [rsp + 0x38], rax
call fcn.180001cb8
xor edx, edx
mov byte [0x180010032], al
mov al, byte [0x180010032]
cmp al, 0x26
mov al, byte [0x180010032]
setne dl
xor ecx, ecx
test al, al
setne cl
cmp ecx, edx
je 0x180001b12
mov eax, dword [rsp + 0x48]
cmp eax, 0x45
jae 0x180001af8
movzx eax, byte [0x180010006]
mov ecx, dword [rsp + 0x40]
imul r9, rax
movzx eax, byte [rsp + 0x44]
mov byte [0x18001001f], al
jmp 0x180001b5c
mov eax, dword [0x1800cc2e8]
mov dword [rsp + 0x38], eax
movzx eax, word [0x180010004]
mov qword [0x1801f6aa0], rax
jmp 0x180001b5c
mov al, byte [rsp + 0x78]
add al, 0x36
mov byte [0x180010003], al
mov al, byte [rsp + 0x78]
dec al
mov byte [rsp + 0x78], al
movzx edx, byte [rsp + 0x70]
movsx ecx, word [rsp + 0x34]
mov rax, qword [0x180010060]
sub ecx, edx
movsxd rdx, ecx
imul rcx, rax, 0x45
movabs rax, 0xfff50f9e5d95f9f6
not rcx
add rcx, rdx
and rcx, rax
mov qword [0x180010050], rcx
test r9, r9
je 0x180001bbc
movzx eax, word [rsp + 0x30]
mov byte [0x180010006], al
mov eax, dword [rsp + 0x40]
neg eax
movzx eax, word [rsp + 0x30]
mov ecx, dword [rsp + 0x44]
sbb rdx, rdx
not ecx
neg rdx
and ecx, 0x56f8
add rdx, 0x6037
sub cl, r11b
add rdx, rax
add cl, byte [0x180010004]
movzx eax, dl
movzx ecx, cl
imul ecx, eax
mov byte [0x180010003], cl
movzx eax, byte [rsp + 0x78]
imul eax, eax, 0xa3
mov byte [0x18001001e], al
mov r8d, 0x2db
movsx ecx, word [0x180010058]
mov eax, dword [rsp + 0x48]
cmp ecx, eax
jbe 0x180001be8
mov al, byte [rsp + 0x78]
movzx eax, word [0x180010004]
xor rax, r10
mov qword [0x180010070], rax
jmp 0x180001c14
mov al, byte [0x180010032]
mov cl, byte [0x180010032]
mov dl, byte [0x18001001f]
add dl, al
add dl, cl
mov byte [0x180010032], dl
mov byte [rsp + 0x78], 0x94
mov qword [0x180010020], 0x20
mov rax, qword [0x180010028]
dec r8d
inc rax
mov qword [0x180010028], rax
test r8d, r8d
jg 0x180001bc2
mov al, byte [rsp + 0x80]
cmp al, byte [0x18001001a]
jle 0x180001c56
movzx eax, word [0x180010068]
mov byte [0x180010003], 0x1d
mov eax, dword [rsp + 0x4c]
add al, 0x53
mov byte [0x180010007], al
movzx eax, word [0x180010068]
mov ecx, 0x6038
cmp ax, cx
jne 0x180001c87
movzx eax, byte [0x18001001f]
mov rdx, qword [rsp + 0x50]
imul rdx, rax
mov al, byte [0x18001001f]
sub al, dl
mov byte [0x18001001f], al
jmp 0x180001ca8
mov rax, qword [0x180010010]
add rax, 0xffffffffffff4a2d
mov qword [0x180010060], rax
movzx eax, word [rsp + 0x34]
mov eax, dword [rsp + 0x40]
mov al, byte [rsp + 0x78]
movzx eax, word [rsp + 0x88]
add rsp, 0x68
ret