Function at 0x1400374d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcb8
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0xca0], rax
mov eax, dword [rcx + 0x8a0]
mov esi, r9d
mov ebp, dword [rsp + 0xd20]
mov r14d, r8d
mov r15d, edx
mov rdi, rcx
lea eax, [rax*8 + 0x100]
movsxd rbx, eax
cmp rbx, 0x320
jb 0x140037529
xor eax, eax
jmp 0x14003778d
add rbx, rbx
lea rcx, [rsp + 0x20]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x660]
xor edx, edx
call sub.msvcrt.dll_memset
mov rbx, qword [rdi + 0x50]
mov r13d, 0x400
mov r10, qword [rdi + 0x48]
mov r11d, r13d
mov r12d, 1
mov r8d, r15d
mov ecx, r15d
and ecx, 7
mov edx, r12d
shl edx, cl
movzx r9d, byte [r10 + r8]
shr r8, 3
test byte [r8 + rbx], dl
jne 0x140037589
mov ecx, r9d
jmp 0x140037613
mov rax, qword [rdi + 0x40]
mov ecx, esi
mov edx, dword [rax + rcx*4]
cmp r9b, 7
jae 0x1400375d5
cmp edx, r13d
jae 0x1400375a7
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x1400375cc
cmp edx, 0x80000
jae 0x1400375c3
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x1400375cc
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx + 0x20]
lea ecx, [r9 + rcx*8]
jmp 0x140037610
cmp edx, r13d
jae 0x1400375e4
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x140037609
cmp edx, 0x80000
jae 0x140037600
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x140037609
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx*8 + 0x107]
add esi, r12d
movsxd rax, ecx
mov edx, r12d
mov ecx, r14d
mov r9d, r14d
and ecx, 7
add r15d, r12d
shl edx, cl
add word [rsp + rax*2 + 0x20], r12w
movzx r8d, byte [r10 + r9]
mov eax, r14d
shr rax, 3
test byte [rax + rbx], dl
jne 0x140037646
mov ecx, r8d
jmp 0x1400376d4
mov rax, qword [rdi + 0x40]
mov ecx, ebp
mov edx, dword [rax + rcx*4]
cmp r8b, 7
jae 0x140037696
cmp edx, r13d
jae 0x140037664
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x140037689
cmp edx, 0x80000
jae 0x140037680
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x140037689
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
movzx eax, byte [r9 + r10]
lea ecx, [rcx + 0x20]
lea ecx, [rax + rcx*8]
jmp 0x1400376d1
cmp edx, r13d
jae 0x1400376a5
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x1400376ca
cmp edx, 0x80000
jae 0x1400376c1
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x1400376ca
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx*8 + 0x107]
add ebp, r12d
movsxd rax, ecx
add r14d, r12d
add word [rsp + rax*2 + 0x660], r12w
sub r11, r12
jne 0x140037564
mov eax, dword [rdi + 0x8a0]
xor r8d, r8d
lea eax, [rax*8 + 0x100]
test eax, eax
je 0x14003778a
mov r9d, r8d
mov r10d, eax
mov ebx, 0x100
lea r11, [0x140000000]
movzx eax, word [rsp + r9 + 0x20]
cmp ax, bx
jae 0x14003772c
movzx edx, byte [rax + r11 + 0x71f40]
jmp 0x14003773d
shr rax, 8
movzx edx, byte [rax + r11 + 0x71f40]
add rdx, 8
movzx eax, word [rsp + r9 + 0x660]
cmp ax, bx
jae 0x140037756
movzx ecx, byte [rax + r11 + 0x71f40]
jmp 0x140037767
shr rax, 8
movzx ecx, byte [rax + r11 + 0x71f40]
add rcx, 8
mov eax, dword [r11 + rdx*4 + 0x71ef0]
add r9, 2
mov ecx, dword [r11 + rcx*4 + 0x71ef0]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add r8d, eax
sub r10, r12
jne 0x140037716
mov eax, r8d
mov rcx, qword [rsp + 0xca0]
xor rcx, rsp
call fcn.140068870
add rsp, 0xcb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret