Function at 0x18007a9b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0xd8
mov rax, qword [rcx]
xor r11d, r11d
mov rbx, qword [rcx + 0x18]
mov r13, r8
mov rsi, rdx
mov qword [rsp + 0x30], r11
mov r15, rcx
mov ebp, r11d
mov r10, qword [rax]
mov r12d, r11d
mov rax, qword [r10]
mov qword [rsp + 0x38], rax
cmp byte [rax + 0x50], r11b
je 0x18007aa14
lea eax, [r11 + 7]
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
test byte [rbx + 0x28], 0x20
mov qword [rsp + 0x120], rdi
je 0x18007aa29
mov ecx, 0x18
jmp 0x18007aa3f
cmp dword [r8 + 0x58], ebp
jle 0x18007aa3a
test byte [rdx + 0x3c], 8
mov ecx, 0xbf
je 0x18007aa3f
mov ecx, 0x3f
mov eax, dword [r8 + 0x64]
mov r9d, ecx
mov r8, qword [r8 + 8]
and r9d, 0xffffffc3
mov r10d, dword [rdx + 0x48]
and al, 4
movzx eax, word [rbx + 0x18]
cmove r9d, ecx
mov qword [rsp + 0xd0], r14
movsx rdi, word [r8 + rax*2]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
test edi, edi
js 0x18007aacd
mov rcx, qword [r13 + 0x18]
lea rdx, [rdi + rdi*2]
add rdx, rdx
mov rax, qword [rcx + 8]
movzx ecx, byte [rax + rdx*8 + 0x29]
movsx eax, word [r8]
mov byte [rsp + 0x68], cl
mov ecx, r11d
cmp eax, edi
je 0x18007aab6
movzx edx, word [r13 + 0x60]
cmp ecx, edx
jg 0x18007aac8
movsx eax, word [r8 + 2]
add r8, 2
inc ecx
cmp eax, edi
jne 0x18007aaa3
mov rax, qword [r13 + 0x40]
movsxd rcx, ecx
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x60], rcx
jmp 0x18007aad7
mov r14, r11
jmp 0x18007aafe
mov byte [rsp + 0x68], bpl
mov qword [rsp + 0x60], r11
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x6c], r9d
mov dword [rsp + 0x70], r11d
mov dword [rsp + 0x74], r10d
mov dword [rsp + 0x78], edi
mov word [rsp + 0x69], 0x202
call fcn.180074bf0
mov r14, rax
movzx eax, word [rbx + 0x1a]
movzx r9d, word [rbx + 0x18]
movzx r10d, word [rbx + 0x2c]
mov r11d, dword [rbx + 0x28]
mov word [rsp + 0x24], ax
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
movzx eax, word [rbx + 0x16]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rbx + 0x12], ax
mov r8, qword [r13 + 0x10]
mov word [rsp + 0x22], r9w
mov word [rsp + 0x26], r10w
mov dword [rsp + 0x2c], r11d
movzx eax, word [r8]
movzx ecx, ax
mov word [rsp + 0x2a], ax
call fcn.1800766f0
mov word [rsp + 0x28], ax
cmp r9w, word [rsp + 0x24]
jne 0x18007ac34
movzx eax, word [r13 + 0x5e]
lea ecx, [r9 + 1]
cmp ecx, eax
jae 0x18007ac34
cmp word [r8 + r9*2 + 2], 0x2a
mov esi, r9d
jl 0x18007ac2c
mov rcx, qword [rsp + 0x38]
lea r8d, [r10 + 1]
mov rdx, rbx
call fcn.18007a2a0
mov ebp, eax
test eax, eax
jne 0x18007b128
movzx edx, word [rbx + 0x2c]
xor eax, eax
inc word [rbx + 0x18]
mov r8, r13
inc word [rbx + 0x1a]
mov rcx, qword [rbx + 0x30]
mov qword [rcx + rdx*8], rax
inc word [rbx + 0x2c]
or dword [rbx + 0x28], 0x8000
mov rcx, qword [r13 + 0x10]
movzx edx, word [rcx + rsi*2]
sub dx, word [rcx + rsi*2 + 2]
mov rcx, r15
mov rsi, qword [rsp + 0x118]
test r14, r14
lea r9d, [rdx + 0xa]
cmove r9w, dx
mov rdx, rsi
sub word [rbx + 0x16], r9w
add r9w, 5
add r9w, word [rsp + 0x128]
call fcn.18007a9b0
movzx eax, word [rsp + 0x20]
movzx r9d, word [rsp + 0x22]
movzx r10d, word [rsp + 0x26]
mov r11d, dword [rsp + 0x2c]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x24]
mov word [rbx + 0x1a], ax
mov word [rbx + 0x18], r9w
jmp 0x18007ac34
mov rsi, qword [rsp + 0x118]
mov qword [rsp + 0x48], rdi
mov ecx, 0x80
nop
test r14, r14
je 0x18007b128
movzx r15d, word [r14 + 0x1a]
cmp r15w, cx
jne 0x18007ac77
test rdi, rdi
js 0x18007b0f5
mov rax, qword [rsi + 0x20]
lea rcx, [rdi + rdi*2]
add rcx, rcx
mov rax, qword [rax + 8]
cmp byte [rax + rcx*8 + 0x28], 0
jne 0x18007b0f5
mov rax, qword [rbx + 8]
test qword [r14 + 0x28], rax
jne 0x18007b0f5
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
movzx r8d, r10w
inc r8d
mov dword [rbx + 0x28], r11d
mov word [rbx + 0x18], r9w
mov word [rbx + 0x2c], r10w
call fcn.18007a2a0
test eax, eax
jne 0x18007b128
movzx ecx, word [rbx + 0x2c]
mov rax, qword [rbx + 0x30]
mov qword [rax + rcx*8], r14
movzx r8d, word [rbx + 0x2c]
mov rax, qword [rbx + 8]
inc r8w
mov word [rbx + 0x2c], r8w
not rax
mov rcx, qword [r14 + 0x28]
or rcx, qword [rsp + 0x40]
and rcx, rax
mov qword [rbx], rcx
test r15b, 1
je 0x18007adc6
mov rax, qword [r14]
or dword [rbx + 0x28], 4
test dword [rax + 4], 0x800
je 0x18007ad0b
mov rcx, qword [rsp + 0x30]
mov esi, 0x2e
xor r10d, r10d
jmp 0x18007ae86
mov rcx, qword [rax + 0x20]
xor edx, edx
mov esi, edx
test rcx, rcx
je 0x18007adb9
movsxd rax, dword [rcx]
test eax, eax
je 0x18007adb9
lea ecx, [rdx + 0x28]
cmp rax, 8
jae 0x18007ad5f
cmp rax, 2
jae 0x18007ad50
mov rcx, qword [rsp + 0x30]
movzx eax, dx
movzx esi, dx
xor r10d, r10d
jmp 0x18007ae86
add cx, 0xfff6
add rax, rax
cmp rax, 8
jb 0x18007ad50
jmp 0x18007ad9d
cmp rax, 0xff
jbe 0x18007ad80
nop word [rax + rax]
add cx, 0x28
shr rax, 4
cmp rax, 0xff
ja 0x18007ad70
cmp rax, 0xf
jbe 0x18007ad9d
nop word [rax + rax]
add cx, 0xa
shr rax, 1
cmp rax, 0xf
ja 0x18007ad90
and eax, 7
lea rdx, [0x180000000]
movzx eax, word [rdx + rax*2 + 0xeed60]
sub ax, 0xa
add ax, cx
movzx esi, ax
mov rcx, qword [rsp + 0x30]
xor r10d, r10d
jmp 0x18007ae86
mov edx, dword [rbx + 0x28]
test r15b, 2
je 0x18007ae26
mov r8d, edx
or r8d, 1
mov dword [rbx + 0x28], r8d
test rdi, rdi
js 0x18007ae13
cmp word [rsp + 0x128], 0
jne 0x18007ae1c
movzx ecx, word [r13 + 0x5e]
movzx eax, word [rbx + 0x18]
dec ecx
cmp eax, ecx
jne 0x18007ae1c
cmp byte [r13 + 0x62], 0
jne 0x18007ae13
mov rcx, qword [rsp + 0x30]
bts r8d, 0x10
mov dword [rbx + 0x28], r8d
xor r10d, r10d
jmp 0x18007ae82
or edx, 0x1001
mov dword [rbx + 0x28], edx
mov rcx, qword [rsp + 0x30]
xor r10d, r10d
jmp 0x18007ae82
test r15b, r15b
jns 0x18007ae3b
mov rcx, qword [rsp + 0x30]
or edx, 8
mov dword [rbx + 0x28], edx
xor r10d, r10d
jmp 0x18007ae82
test r15b, 0x24
je 0x18007ae57
or edx, 0x22
mov r12, r14
xor r10d, r10d
mov dword [rbx + 0x28], edx
mov ecx, r10d
mov qword [rsp + 0x30], rcx
jmp 0x18007ae82
or edx, 0x12
xor r10d, r10d
mov dword [rbx + 0x28], edx
mov rcx, r14
mov qword [rsp + 0x30], rcx
test dl, 0x20
je 0x18007ae7f
mov rax, qword [rbx + 0x30]
movzx ecx, r8w
mov r12, qword [rax + rcx*8 - 0x10]
mov rcx, r14
jmp 0x18007ae82
mov r12, r10
movzx esi, r10w
mov r9d, dword [rbx + 0x28]
test r9b, 2
je 0x18007af0e
movsx edx, word [rbx + 0x16]
mov r8d, edx
test r12, r12
je 0x18007aeb0
movzx eax, word [r12 + 0x18]
test ax, ax
jg 0x18007aeac
add dx, ax
jmp 0x18007aeb0
add dx, 0xffec
test rcx, rcx
je 0x18007aecc
movzx eax, word [rcx + 0x18]
lea ecx, [rdx + rax]
sub dx, 0x14
test ax, ax
cmovle dx, cx
mov rcx, qword [rsp + 0x30]
test r12, r12
je 0x18007aeda
test rcx, rcx
je 0x18007aeda
sub dx, 0x14
test r12, r12
mov eax, r10d
setne al
sub r8d, eax
mov eax, r10d
test rcx, rcx
setne al
sub r8d, eax
cmp dx, 0xa
jge 0x18007aefd
mov edx, 0xa
movzx edi, dx
cmp edi, r8d
cmovge di, r8w
mov word [rbx + 0x16], di
jmp 0x18007af63
movzx ecx, word [rbx + 0x18]
inc cx
mov word [rbx + 0x18], cx
movzx eax, word [r14 + 0x18]
test ax, ax
jg 0x18007af35
test rdi, rdi
js 0x18007af35
sub ax, si
add word [rbx + 0x16], ax
movzx edi, word [rbx + 0x16]
jmp 0x18007af63
mov rax, qword [r13 + 0x10]
movzx ecx, cx
movzx edx, word [rax + rcx*2]
sub dx, word [rax + rcx*2 - 2]
add dx, word [rbx + 0x16]
mov word [rbx + 0x16], dx
movzx eax, dx
movzx edi, dx
test r15b, r15b
jns 0x18007af63
add ax, 0xa
mov word [rbx + 0x16], ax
movzx edi, ax
mov r14, qword [rsp + 0x118]
lea r10, [0x180000000]
movsx r15d, word [rsp + 0x28]
mov rax, qword [r14 + 0x20]
movsx ecx, word [rax + 0x46]
movsx eax, word [r13 + 0x5c]
imul eax, eax, 0xf
cdq
idiv ecx
add ax, di
movsx edx, ax
inc edx
lea ecx, [rax + 1]
cmp r15w, cx
jl 0x18007afc8
lea eax, [rdx + 0x31]
mov ecx, r15d
cmp r15d, eax
jg 0x18007afef
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x18007afb4
lea ecx, [r15 + 1]
jmp 0x18007afef
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + r10 + 0xf00d8]
add cx, r15w
jmp 0x18007afef
lea eax, [r15 + 0x31]
cmp edx, eax
jg 0x18007afef
lea eax, [r15 + 0x1f]
cmp edx, eax
jle 0x18007afdd
inc cx
jmp 0x18007afef
sub edx, r15d
movsxd rax, edx
movzx eax, byte [rax + r10 + 0xf00d8]
add cx, ax
test r9d, 0x140
jne 0x18007b065
movsx r8d, di
lea r9d, [rdi + 0x10]
add r8d, 0x10
movsx edx, cx
cmp cx, r9w
jl 0x18007b036
lea eax, [r8 + 0x31]
cmp edx, eax
jg 0x18007b065
lea eax, [r8 + 0x1f]
cmp edx, eax
jle 0x18007b022
inc cx
jmp 0x18007b065
sub edx, r8d
movsxd rax, edx
movzx eax, byte [rax + r10 + 0xf00d8]
add cx, ax
jmp 0x18007b065
lea eax, [rdx + 0x31]
cmp r8d, eax
jle 0x18007b044
movzx ecx, r9w
jmp 0x18007b065
lea eax, [rdx + 0x1f]
cmp r8d, eax
jle 0x18007b052
lea ecx, [r9 + 1]
jmp 0x18007b065
sub r8d, edx
movsxd rax, r8d
movzx ecx, byte [rax + r10 + 0xf00d8]
add cx, r9w
mov r15, qword [rsp + 0x110]
lea eax, [rcx + rsi]
add ax, word [rsp + 0x128]
mov rdx, rbx
movzx r8d, word [rsp + 0x2a]
mov word [rbx + 0x14], ax
lea eax, [rdi + rsi]
add ax, word [rsp + 0x128]
mov rcx, qword [r15 + 8]
mov word [rbx + 0x16], ax
call fcn.18007a890
mov rdx, rbx
mov rcx, r15
call fcn.18007a620
mov ecx, dword [rbx + 0x28]
mov ebp, eax
movzx eax, word [rsp + 0x20]
test cl, 2
cmove ax, di
mov word [rbx + 0x16], ax
test cl, 0x10
jne 0x18007b0e7
movzx eax, word [r13 + 0x60]
cmp word [rbx + 0x18], ax
jae 0x18007b0e7
add si, word [rsp + 0x128]
mov r8, r13
movzx r9d, si
mov rdx, r14
mov rcx, r15
call fcn.18007a9b0
movzx eax, word [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0x50]
call fcn.180074bf0
mov rsi, qword [rsp + 0x118]
mov r14, rax
movzx r9d, word [rsp + 0x22]
mov ecx, 0x80
movzx r10d, word [rsp + 0x26]
mov r11d, dword [rsp + 0x2c]
test ebp, ebp
je 0x18007ac40
mov rax, qword [rsp + 0x40]
mov r14, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x120]
mov qword [rbx], rax
movzx eax, word [rsp + 0x22]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x24]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x20]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x26]
mov word [rbx + 0x2c], ax
mov eax, ebp
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret