Function at 0x740b70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], rcx
mov rax, rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call fcn.007149c0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x48]
xor rbx, rbx
sub eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
cmp ebx, eax
jg 0x740e7b
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0xa0]
mov edx, ebx
call fcn.0058eae0
mov rsi, rax
mov rdi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x60]
mov r13d, eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x48]
mov ecx, eax
mov r8d, 4
mov eax, ebx
cdq
idiv r8d
add ecx, eax
imul r13d, ecx
movsxd r13, r13d
add rdi, r13
mov r13, rdi
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x60]
mov r14d, eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x48]
imul r14d, eax
mov ecx, 4
mov eax, r14d
cdq
idiv ecx
movsxd rax, eax
add r13, rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xa0]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x60]
xor r8, r8
mov ecx, 2
cdq
idiv ecx
mov r9, rax
sub r9d, 1
cmp r8d, r9d
jg 0x740e6b
add r9d, 1
mov rax, qword [0x007b86d8]
mov rcx, qword [rsp + 0x30]
movzx rcx, byte [rcx]
mov ecx, dword [rax + rcx*4]
mov r10, qword [0x007b8728]
mov rax, qword [0x007b9270]
movzx rdx, byte [rdi]
mov r11d, ecx
add r11d, dword [rax + rdx*4]
mov r14d, pe_nt_image_headers64
mov eax, r11d
cdq
idiv r14d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov r10, qword [0x007b8728]
mov rax, qword [0x007b9168]
movzx rdx, byte [rdi]
mov r11d, ecx
add r11d, dword [rax + rdx*4]
mov rax, qword [0x007b92a0]
movzx rdx, byte [r13]
add r11d, dword [rax + rdx*4]
mov r14d, pe_nt_image_headers64
mov eax, r11d
cdq
idiv r14d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov r10, qword [0x007b8728]
mov rax, qword [0x007b8ff0]
movzx rdx, byte [r13]
add ecx, dword [rax + rdx*4]
mov r11d, pe_nt_image_headers64
mov eax, ecx
cdq
idiv r11d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
mov rax, qword [0x007b86d8]
mov rcx, qword [rsp + 0x30]
movzx rcx, byte [rcx]
mov ecx, dword [rax + rcx*4]
mov r10, qword [0x007b8728]
mov rax, qword [0x007b9270]
movzx rdx, byte [rdi]
mov r11d, ecx
add r11d, dword [rax + rdx*4]
mov r14d, pe_nt_image_headers64
mov eax, r11d
cdq
idiv r14d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov r10, qword [0x007b8728]
mov rax, qword [0x007b9168]
movzx rdx, byte [rdi]
mov r11d, ecx
add r11d, dword [rax + rdx*4]
mov rax, qword [0x007b92a0]
movzx rdx, byte [r13]
add r11d, dword [rax + rdx*4]
mov r14d, pe_nt_image_headers64
mov eax, r11d
cdq
idiv r14d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov r10, qword [0x007b8728]
mov rax, qword [0x007b8ff0]
movzx rdx, byte [r13]
add ecx, dword [rax + rdx*4]
mov r11d, pe_nt_image_headers64
mov eax, ecx
cdq
idiv r11d
movsxd rax, eax
movzx rax, byte [r10 + rax + 0x3ff]
mov byte [rsi], al
add rsi, 1
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
add rdi, 1
add r13, 1
add r8d, 1
cmp r8d, r9d
jne 0x740ca6
nop
add ebx, 1
mov eax, dword [rsp + 0x3c]
cmp ebx, eax
jne 0x740bc8
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret