Function at 0x1401849a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [rcx]
movzx r14d, dx
xor edx, edx
mov qword [rsp + 0x90], rax
mov rbp, rcx
mov dword [rsp + 0x48], edx
movzx ecx, byte [rcx + 0x39]
mov r13d, 1
mov r8, qword [rax]
movzx esi, dx
mov qword [rsp + 0x98], r8
movzx r15d, dx
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x100], ecx
cmp ecx, r13d
ja 0x140184a09
mov ebx, r13d
jmp 0x140184a19
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x108], ebx
test rax, rax
je 0x140184a39
test r14w, r14w
je 0x140184a39
mov r12d, dword [rax]
mov dword [rsp + 0x58], r12d
jmp 0x140184a40
mov r12d, edx
mov dword [rsp + 0x58], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [r12 + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, r8
call fcn.140141f40
mov qword [rsp + 0x50], rax
mov rdx, rax
test rax, rax
jne 0x140184a6c
lea eax, [rdx + 7]
jmp 0x1401853ba
movsxd r10, dword [rsp + 0x100]
xor ecx, ecx
mov eax, ebx
mov r8, r10
shl rax, 5
lea r9, [rax + rdx]
mov qword [rsp + 0xa8], rdi
mov qword [r9], rcx
mov rdi, rdx
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rcx
lea rcx, [rax + r9]
shl r8, 3
lea eax, [rbx + rbx]
mov qword [rsp + 0x60], rdx
add rdx, 0x18
mov qword [rsp + 0x68], r9
nop word [rax + rax]
mov qword [rdx], rcx
lea rdx, [rdx + 0x20]
add rcx, r8
dec eax
test eax, eax
jg 0x140184ac0
test r12d, r12d
je 0x140184af7
movsxd r8, r12d
xor edx, edx
add r8, r8
mov qword [rsp + 0x80], rcx
call fcn.140249b10
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x100]
mov rax, qword [rsp + 0x90]
mov ecx, PathResolve
mov eax, dword [rax + 0x1d4]
cmp eax, ecx
cmovb ecx, eax
mov word [r9 + 0x10], cx
mov ecx, r13d
test r12d, r12d
je 0x140184b2f
test r10b, r10b
movzx eax, r12b
mov edx, 0xffffffff
cmovne eax, edx
mov byte [r9 + 0x16], al
xor ebx, ebx
mov r11d, 0x400
mov dword [rsp + 0x4c], ebx
mov r8d, ebx
test r10b, r10b
je 0x14018514e
mov edx, ebx
mov qword [rsp + 0x70], rbx
nop
mov r12d, ebx
test ecx, ecx
jle 0x140185017
lea r14, [r9 + 0x10]
mov eax, ecx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x88], rax
nop
mov r13, qword [rbp + 0x20]
test r13, r13
je 0x140184fe0
nop dword [rax]
mov rbp, qword [r14 - 0x10]
movzx r11d, byte [r14 + 6]
mov rax, rbp
mov qword [rsp + 0x78], rbx
not rax
lea rbx, [r14 - 0x10]
test qword [r13], rax
jne 0x140184fc1
mov r9, qword [r13 + 8]
test r9, rbp
jne 0x140184fc1
movsx edi, word [r13 + 0x12]
movzx r10d, word [r14]
mov ecx, edi
movzx r8d, word [r13 + 0x14]
add r8w, r10w
movsx edx, r8w
cmp di, r8w
jl 0x140184bf9
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x140184c2b
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x140184be0
inc di
jmp 0x140184c2b
sub ecx, edx
movsxd rax, ecx
lea rcx, [0x140000000]
movzx eax, byte [rax + rcx + 0x2bb148]
add di, ax
jmp 0x140184c2b
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x140184c06
movzx edi, r8w
jmp 0x140184c2b
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x140184c13
lea edi, [r8 + 1]
jmp 0x140184c2b
sub edx, ecx
lea rcx, [0x140000000]
movsxd rax, edx
movzx edi, byte [rax + rcx + 0x2bb148]
add di, r8w
movsx r8d, word [r14 + 4]
movsx ecx, di
mov edx, r8d
cmp di, r8w
jl 0x140184c68
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x140184c9a
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x140184c4f
inc di
jmp 0x140184c9a
sub ecx, edx
movsxd rax, ecx
lea rcx, [0x140000000]
movzx eax, byte [rax + rcx + 0x2bb148]
add di, ax
jmp 0x140184c9a
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x140184c75
movzx edi, r8w
jmp 0x140184c9a
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x140184c82
lea edi, [r8 + 1]
jmp 0x140184c9a
sub edx, ecx
lea rcx, [0x140000000]
movsxd rax, edx
movzx edi, byte [rax + rcx + 0x2bb148]
add di, r8w
movzx r14d, word [r13 + 0x16]
or rbp, r9
add r14w, r10w
test r11b, r11b
jns 0x140184cea
lea rax, [rsp + 0x78]
mov r8, rbx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r13
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0xf0]
mov rcx, rax
movzx r9d, word [rax + 0x32]
mov rdx, qword [rax + 0x10]
call fcn.1401842d0
mov r10, qword [rsp + 0x78]
movzx r11d, al
jmp 0x140184cf3
mov rax, qword [rsp + 0x40]
mov r10, qword [rax - 8]
test r11b, r11b
js 0x140184e7d
mov r8d, dword [rsp + 0x58]
movsx edx, r11b
cmp edx, r8d
jge 0x140184e7d
mov rcx, qword [rsp + 0x80]
movsx rax, r11b
lea r9, [rcx + rax*2]
movzx ecx, word [rcx + rax*2]
test cx, cx
jne 0x140184e10
mov eax, r8d
mov ecx, 0x28
sub eax, edx
imul eax, eax, 0x64
cdq
idiv r8d
cdqe
cmp rax, 8
jae 0x140184d6f
cmp rax, 2
jae 0x140184d60
mov eax, 0xffffffce
movzx r8d, ax
jmp 0x140184dc9
add cx, 0xfff6
add rax, rax
cmp rax, 8
jb 0x140184d60
jmp 0x140184dad
cmp rax, 0xff
jbe 0x140184d90
nop word [rax + rax]
add cx, 0x28
shr rax, 4
cmp rax, 0xff
ja 0x140184d80
cmp rax, 0xf
jbe 0x140184dad
nop word [rax + rax]
add cx, 0xa
shr rax, 1
cmp rax, 0xf
ja 0x140184da0
and eax, 7
lea rdx, [0x140000000]
movzx r8d, word [rdx + rax*2 + 0x33b0d8]
sub r8w, 0x3c
add r8w, cx
movzx ebx, word [rsp + 0xf8]
cmp bx, 0xa
jg 0x140184ddc
movzx eax, bx
jmp 0x140184deb
movsx rcx, bx
call fcn.140152d30
lea ecx, [rbx - 0x21]
add ax, cx
add r8w, ax
mov ecx, 0x400
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x32]
and ax, cx
lea ecx, [r8 + 0x10]
cmove cx, r8w
mov word [r9], cx
movsx edx, di
movsx r8d, cx
cmp di, cx
jl 0x140184e4b
lea eax, [r8 + 0x31]
cmp edx, eax
jg 0x140184e7d
lea eax, [r8 + 0x1f]
cmp edx, eax
jle 0x140184e31
lea ecx, [rdi + 1]
jmp 0x140184e80
sub edx, r8d
lea rcx, [0x140000000]
movsxd rax, edx
movzx ecx, byte [rax + rcx + 0x2bb148]
add cx, di
jmp 0x140184e80
lea eax, [rdx + 0x31]
cmp r8d, eax
jg 0x140184e80
lea eax, [rdx + 0x1f]
cmp r8d, eax
jle 0x140184e60
inc cx
jmp 0x140184e80
sub r8d, edx
lea rdx, [0x140000000]
movsxd rax, r8d
movzx eax, byte [rax + rdx + 0x2bb148]
add ax, cx
movzx ecx, ax
jmp 0x140184e80
movzx ecx, di
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rbx, r8
test r12d, r12d
jle 0x140184ead
nop
cmp qword [rbx], rbp
jne 0x140184ea2
movzx eax, byte [rbx + 0x16]
xor al, r11b
jge 0x140184f99
inc edx
add rbx, 0x20
cmp edx, r12d
jl 0x140184e90
mov r9d, dword [rsp + 0x108]
cmp r12d, r9d
jl 0x140184ecf
cmp cx, si
jg 0x140184fbc
jne 0x140184ecf
cmp di, r15w
jge 0x140184fbc
cmp r12d, r9d
mov eax, r12d
cmovge eax, dword [rsp + 0x48]
movsxd rbx, eax
lea eax, [r12 + 1]
shl rbx, 5
add rbx, r8
cmp r12d, r9d
cmovge eax, r12d
mov r12d, eax
mov rax, qword [r13 + 8]
mov rdx, qword [rsp + 0x40]
or rax, qword [rdx - 0x10]
mov word [rbx + 0x14], di
mov rdi, qword [rsp + 0x70]
mov word [rbx + 0x10], r14w
mov r8, rdi
mov word [rbx + 0x12], cx
mov r14, rdx
mov rcx, qword [rbx + 0x18]
mov qword [rbx], rax
mov qword [rbx + 8], r10
mov byte [rbx + 0x16], r11b
mov rdx, qword [rdx + 8]
call fcn.1402496a0
mov rax, qword [rbx + 0x18]
xor ebx, ebx
mov r9d, dword [rsp + 0x108]
mov qword [rdi + rax], r13
cmp r12d, r9d
jl 0x140184fc3
mov r8, qword [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x48], ebx
movzx esi, word [r8 + 0x12]
movzx r15d, word [r8 + 0x10]
cmp r9d, edx
jbe 0x140184fc3
lea rax, [r8 + 0x34]
nop dword [rax + rax]
movzx ecx, word [rax - 2]
cmp cx, si
jg 0x140184f81
jne 0x140184f8c
cmp word [rax], r15w
jle 0x140184f8c
movzx r15d, word [rax]
movzx esi, cx
mov dword [rsp + 0x48], edx
inc edx
add rax, 0x20
cmp edx, r9d
jl 0x140184f70
jmp 0x140184fc3
cmp edx, r12d
jge 0x140184ead
movzx eax, word [rbx + 0x12]
cmp ax, cx
jl 0x140184fbc
jne 0x140184ef3
cmp word [rbx + 0x10], r14w
jg 0x140184ef3
mov r14, qword [rsp + 0x40]
xor ebx, ebx
mov r13, qword [r13 + 0x40]
test r13, r13
jne 0x140184b80
mov rbp, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x88]
add r14, 0x20
sub rax, 1
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x88], rax
jne 0x140184b70
mov rdi, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x4c]
mov r9, qword [rsp + 0x68]
mov r10d, dword [rsp + 0x100]
mov rax, rdi
mov qword [rsp + 0x60], r9
inc r8d
mov qword [rsp + 0x68], rax
add rdx, 8
mov dword [rsp + 0x4c], r8d
mov qword [rsp + 0x70], rdx
mov rdi, r9
mov r9, rax
mov ecx, r12d
cmp r8d, r10d
jl 0x140184b50
test r12d, r12d
jne 0x140185139
mov rcx, qword [rsp + 0x90]
lea rdx, str.no_query_solution
call fcn.140144b90
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1401850c7
cmp qword [rcx + 0x328], 0
je 0x14018508f
mov rdx, qword [rsp + 0x50]
call fcn.14012a3b0
lea eax, [r12 + 1]
jmp 0x1401853b2
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rcx + 0x170]
jb 0x1401850cc
cmp rbx, qword [rcx + 0x178]
jae 0x1401850cc
mov rax, qword [rcx + 0x168]
mov qword [rbx], rax
mov eax, 1
dec dword [rcx + 0x154]
mov qword [rcx + 0x168], rbx
jmp 0x1401853b2
mov rbx, qword [rsp + 0x50]
cmp dword [0x14033a550], 0
je 0x140185126
mov rcx, qword [0x14037aac8]
test rcx, rcx
je 0x1401850e7
call qword [0x14033a5d8]
mov rcx, rbx
call qword [0x14033a590]
dec qword [0x14037a818]
movsxd rcx, eax
sub qword [0x14037a7d0], rcx
mov rcx, rbx
call qword [0x14033a580]
mov rcx, qword [0x14037aac8]
test rcx, rcx
je 0x14018512f
call qword [0x14033a5e8]
mov eax, 1
jmp 0x1401853b2
mov rcx, rbx
call qword [0x14033a580]
mov eax, 1
jmp 0x1401853b2
movzx r14d, word [rsp + 0xf8]
mov r13d, 1
mov r11d, 0x400
movsxd rdx, ecx
mov rbx, r9
cmp rdx, 1
jle 0x140185181
lea rcx, [r9 + 0x32]
dec rdx
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x140185174
movsxd rbx, r13d
shl rbx, 5
add rbx, r9
inc r13d
add rcx, 0x20
sub rdx, 1
jne 0x140185161
xor esi, esi
test r10b, r10b
je 0x1401851d0
mov r8d, esi
mov r9d, r10d
lea rdx, [rbp + 0x36c]
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x58]
mov rcx, qword [r8 + rax]
add r8, 8
mov qword [rdx - 0x3c], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x78
mov byte [rdx - 0x58], al
mov rax, qword [rbp + 8]
mov ecx, dword [rcx + rax + 0x50]
mov dword [rdx - 0x80], ecx
sub r9, 1
jne 0x1401851a0
movzx eax, word [rbp + 0x32]
mov ecx, 0x600
and ax, cx
mov edi, 0x200
cmp ax, r11w
jne 0x140185244
cmp byte [rbp + 0x38], 0
jne 0x140185244
test r14w, r14w
je 0x140185244
mov rax, qword [rbx + 0x18]
lea edx, [r10 - 1]
movzx ecx, r10b
lea r8, [rsp + 0xf0]
mov qword [rsp + 0x30], r8
mov r9d, edi
mov r8, rbx
mov rax, qword [rax + rcx*8 - 8]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], dx
mov rdx, qword [rbp + 0x18]
call fcn.1401842d0
mov r10d, dword [rsp + 0x100]
movsx ecx, al
mov rax, qword [rbp + 0x18]
cmp ecx, dword [rax]
jne 0x140185244
mov byte [rbp + 0x38], 2
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x1401852f2
movzx r8d, word [rbp + 0x32]
movzx ecx, byte [rbx + 0x16]
test di, r8w
je 0x14018526d
movsx eax, cl
cmp eax, dword [rdx]
jne 0x140185280
mov byte [rbp + 0x38], 2
jmp 0x140185280
movzx eax, cl
test cl, cl
cmovs eax, esi
mov byte [rbp + 0x34], al
mov rax, qword [rbx + 8]
mov qword [rbp + 0x28], rax
mov eax, 0x800
test ax, r8w
je 0x1401852f2
movsx eax, byte [rbp + 0x34]
cmp eax, dword [rdx]
jne 0x1401852f2
test r10b, r10b
je 0x1401852f2
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0xf0]
movzx ecx, r10b
xor r9d, r9d
mov qword [rsp + 0x30], r8
dec r10w
mov r8, rbx
mov qword [rsp + 0xf0], rsi
mov rax, qword [rax + rcx*8 - 8]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r10w
call fcn.1401842d0
movsx ecx, al
mov rax, qword [rbp + 0x10]
cmp ecx, dword [rax]
jne 0x1401852f2
mov rax, qword [rsp + 0xf0]
mov qword [rbp + 0x28], rax
mov byte [rbp + 0x35], 1
mov rcx, qword [rsp + 0x98]
movzx eax, word [rbx + 0x10]
mov word [rbp + 0x30], ax
test rcx, rcx
je 0x140185350
cmp qword [rcx + 0x328], 0
je 0x140185320
mov rdx, qword [rsp + 0x50]
call fcn.14012a3b0
jmp 0x1401853b0
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rcx + 0x170]
jb 0x140185355
cmp rbx, qword [rcx + 0x178]
jae 0x140185355
mov rax, qword [rcx + 0x168]
mov qword [rbx], rax
dec dword [rcx + 0x154]
mov qword [rcx + 0x168], rbx
jmp 0x1401853b0
mov rbx, qword [rsp + 0x50]
cmp dword [0x14033a550], 0
je 0x1401853a7
mov rcx, qword [0x14037aac8]
test rcx, rcx
je 0x140185370
call qword [0x14033a5d8]
mov rcx, rbx
call qword [0x14033a590]
dec qword [0x14037a818]
movsxd rcx, eax
sub qword [0x14037a7d0], rcx
mov rcx, rbx
call qword [0x14033a580]
mov rcx, qword [0x14037aac8]
test rcx, rcx
je 0x1401853b0
call qword [0x14033a5e8]
jmp 0x1401853b0
mov rcx, rbx
call qword [0x14033a580]
xor eax, eax
mov rdi, qword [rsp + 0xa8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret