Function at 0x1400acc90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xb0
mov rax, qword [rcx]
movzx edi, dx
xor edx, edx
mov qword [rsp + 0x88], rax
mov rbp, rcx
mov dword [rsp + 0x54], edx
movzx ecx, byte [rcx + 0x42]
mov r13d, 1
mov r8, qword [rax]
movzx esi, dx
mov qword [rsp + 0x90], r8
movzx r15d, dx
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x100], ecx
cmp ecx, r13d
ja 0x1400accf7
mov ebx, r13d
jmp 0x1400acd07
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x50], ebx
test rax, rax
je 0x1400acd23
test di, di
je 0x1400acd23
mov r12d, dword [rax]
mov dword [rsp + 0x60], r12d
jmp 0x1400acd2a
mov r12d, edx
mov dword [rsp + 0x60], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [r12 + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, r8
call fcn.1400174f0
mov qword [rsp + 0x58], rax
mov rdx, rax
test rax, rax
jne 0x1400acd56
lea eax, [rdx + 7]
jmp 0x1400ad796
movsxd r8, dword [rsp + 0x100]
xorps xmm0, xmm0
mov eax, ebx
shl rax, 5
lea r9, [rax + rdx]
mov qword [rsp + 0xa8], r14
shl r8, 3
mov r14, rdx
movups xmmword [r9], xmm0
lea rcx, [rax + r9]
mov qword [rsp + 0x40], rdx
movups xmmword [r9 + 0x10], xmm0
lea eax, [rbx + rbx]
mov qword [rsp + 0x78], r9
add rdx, 0x18
nop dword [rax + rax]
mov qword [rdx], rcx
lea rdx, [rdx + 0x20]
add rcx, r8
dec eax
test eax, eax
jg 0x1400acda0
test r12d, r12d
je 0x1400acdcf
movsxd r8, r12d
xor edx, edx
add r8, r8
mov qword [rsp + 0x80], rcx
call fcn.14011adb0
mov r9, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
mov ecx, 0x30
mov edx, r13d
mov dword [rsp + 0x68], edx
mov eax, dword [rax + 0xac]
cmp eax, ecx
cmovb ecx, eax
mov word [r9 + 0x10], cx
test r12d, r12d
je 0x1400ace15
movzx eax, r12b
mov ecx, 0xffffffff
mov r12d, dword [rsp + 0x100]
test r12b, r12b
cmovne eax, ecx
mov byte [r9 + 0x16], al
jmp 0x1400ace1d
mov r12d, dword [rsp + 0x100]
xor r8d, r8d
mov ecx, r8d
mov dword [rsp + 0x108], ecx
test r12b, r12b
je 0x1400ad4c3
mov r10d, 0x4000
nop dword [rax]
mov qword [rsp + 0x48], r9
mov eax, r8d
mov dword [rsp + 0x64], eax
mov r12d, r8d
mov rdi, r9
test edx, edx
jle 0x1400ad3c8
nop word [rax + rax]
mov r13, qword [rbp + 0x50]
test r13, r13
je 0x1400ad3a5
nop dword [rax]
mov r9, qword [rdi]
movzx r11d, byte [rdi + 0x16]
mov rax, r9
not rax
mov qword [rsp + 0x70], r8
test qword [r13], rax
jne 0x1400ad388
mov r14, qword [r13 + 8]
test r9, r14
jne 0x1400ad383
test dword [r13 + 0x28], r10d
je 0x1400aceab
cmp word [rdi + 0x10], 3
jl 0x1400ad383
movsx ebx, word [r13 + 0x12]
lea rbp, [0x140000000]
movzx r10d, word [rdi + 0x10]
mov ecx, ebx
movzx r8d, word [r13 + 0x14]
add r8w, r10w
movsx edx, r8w
cmp bx, r8w
jl 0x1400acef6
lea eax, [rdx + 0x31]
cmp ebx, eax
jg 0x1400acf21
lea eax, [rdx + 0x1f]
cmp ebx, eax
jle 0x1400acee4
inc bx
jmp 0x1400acf21
sub ecx, edx
movsxd rax, ecx
movzx eax, byte [rax + rbp + 0x149de8]
add bx, ax
jmp 0x1400acf21
lea eax, [rbx + 0x31]
cmp edx, eax
jle 0x1400acf03
movzx ebx, r8w
jmp 0x1400acf21
lea eax, [rbx + 0x1f]
cmp edx, eax
jle 0x1400acf10
lea ebx, [r8 + 1]
jmp 0x1400acf21
sub edx, ecx
movsxd rax, edx
movzx ebx, byte [rax + rbp + 0x149de8]
add bx, r8w
movsx r8d, word [rdi + 0x14]
movsx ecx, bx
mov edx, r8d
cmp bx, r8w
jl 0x1400acf59
lea eax, [r8 + 0x31]
cmp ecx, eax
jg 0x1400acf84
lea eax, [r8 + 0x1f]
cmp ecx, eax
jle 0x1400acf47
inc bx
jmp 0x1400acf84
sub ecx, edx
movsxd rax, ecx
movzx eax, byte [rax + rbp + 0x149de8]
add bx, ax
jmp 0x1400acf84
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x1400acf66
movzx ebx, r8w
jmp 0x1400acf84
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x1400acf73
lea ebx, [r8 + 1]
jmp 0x1400acf84
sub edx, ecx
movsxd rax, edx
movzx ebx, byte [rax + rbp + 0x149de8]
add bx, r8w
movzx ebp, word [r13 + 0x16]
or r14, r9
add bp, r10w
test r11b, r11b
jns 0x1400ad109
lea rax, [rsp + 0x70]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x108]
mov qword [rsp + 0x28], r13
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0xf0]
mov rcx, rax
mov rdi, rax
movzx r9d, word [rax + 0x40]
mov rdx, qword [rax + 0x10]
call fcn.1400ac3c0
movzx r11d, al
test al, al
jns 0x1400ad11a
movzx ecx, bx
add bx, 0xfffe
mov rdi, qword [rsp + 0x40]
xor r8d, r8d
mov edx, r8d
test r12d, r12d
jle 0x1400ad013
cmp qword [rdi], r14
jne 0x1400ad008
movzx eax, byte [rdi + 0x16]
xor al, r11b
jge 0x1400ad344
inc edx
add rdi, 0x20
cmp edx, r12d
jl 0x1400acff6
mov r10d, dword [rsp + 0x50]
cmp r12d, r10d
jl 0x1400ad032
cmp cx, si
jg 0x1400ad378
jne 0x1400ad032
cmp bx, r15w
jge 0x1400ad378
mov r14, qword [rsp + 0x40]
cmp r12d, r10d
mov eax, r12d
cmovge eax, dword [rsp + 0x54]
movsxd rdi, eax
mov eax, r12d
shl rdi, 5
add rdi, r14
inc r12d
cmp eax, r10d
cmovge r12d, eax
mov rax, qword [r13 + 8]
mov rdx, qword [rsp + 0x48]
or rax, qword [rdx]
mov qword [rdi], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 8], rax
mov eax, dword [rsp + 0x108]
mov word [rdi + 0x14], bx
mov word [rdi + 0x12], cx
mov rcx, qword [rdi + 0x18]
lea rbx, [rax*8]
mov word [rdi + 0x10], bp
mov byte [rdi + 0x16], r11b
mov r8, rbx
mov rdx, qword [rdx + 0x18]
call fcn.14011b4a0
mov rax, qword [rdi + 0x18]
xor r8d, r8d
mov r10d, dword [rsp + 0x50]
mov qword [rbx + rax], r13
cmp r12d, r10d
jl 0x1400ad0f9
movzx esi, word [r14 + 0x12]
mov edx, 1
movzx r15d, word [r14 + 0x10]
mov dword [rsp + 0x54], r8d
cmp r10d, edx
jbe 0x1400ad0f9
lea rax, [r14 + 0x34]
movzx ecx, word [rax - 2]
cmp cx, si
jg 0x1400ad0e3
jne 0x1400ad0ee
cmp word [rax], r15w
jle 0x1400ad0ee
movzx r15d, word [rax]
movzx esi, cx
mov dword [rsp + 0x54], edx
inc edx
add rax, 0x20
cmp edx, r10d
jl 0x1400ad0d2
mov rdi, qword [rsp + 0x48]
mov r10d, 0x4000
jmp 0x1400ad388
mov rax, qword [rdi + 8]
mov rdi, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
mov r9d, dword [rsp + 0x60]
movsx edx, r11b
cmp edx, r9d
jge 0x1400acfdf
mov rcx, qword [rsp + 0x80]
movsx rax, r11b
lea r10, [rcx + rax*2]
movzx ecx, word [rcx + rax*2]
test cx, cx
jne 0x1400ad2b2
movzx r8d, word [rsp + 0xf8]
mov eax, r9d
sub eax, edx
imul eax, eax, 0x64
cdq
idiv r9d
mov edx, SQLGetData
movsxd rcx, eax
movzx eax, dx
cmp rcx, 8
jae 0x1400ad18f
cmp rcx, 2
jae 0x1400ad180
movzx ecx, r8w
movzx r9d, cx
jmp 0x1400ad1fa
add ax, 0xfff6
add rcx, rcx
cmp rcx, 8
jb 0x1400ad180
jmp 0x1400ad1cd
cmp rcx, 0xff
jbe 0x1400ad1b0
nop dword [rax + rax]
add ax, dx
shr rcx, 4
cmp rcx, 0xff
ja 0x1400ad1a0
cmp rcx, 0xf
jbe 0x1400ad1cd
nop word [rax + rax]
add ax, 0xa
shr rcx, 1
cmp rcx, 0xf
ja 0x1400ad1c0
and ecx, 7
lea rdx, [0x140000000]
movzx r9d, word [rdx + rcx*2 + 0x149430]
mov edx, SQLGetData
movzx ecx, word [rsp + 0xf8]
sub r9w, 0xa
add r9w, ax
add r9w, cx
mov eax, 0x4000
test word [rdi + 0x40], ax
je 0x1400ad20f
cmp word [rdi + 0x28], cx
cmovl r8w, word [rdi + 0x28]
cmp r8w, 0xa
jg 0x1400ad220
xor edi, edi
movzx ecx, di
jmp 0x1400ad2a6
movsx rax, r8w
cmp rax, 8
jae 0x1400ad24f
cmp rax, 2
jae 0x1400ad240
mov ecx, 0xffffffdf
jmp 0x1400ad2a6
add dx, 0xfff6
add rax, rax
cmp rax, 8
jb 0x1400ad240
jmp 0x1400ad28d
cmp rax, 0xff
jbe 0x1400ad270
nop word [rax + rax]
add dx, 0x28
shr rax, 4
cmp rax, 0xff
ja 0x1400ad260
cmp rax, 0xf
jbe 0x1400ad28d
nop word [rax + rax]
add dx, 0xa
shr rax, 1
cmp rax, 0xf
ja 0x1400ad280
and eax, 7
lea rcx, [0x140000000]
movzx ecx, word [rcx + rax*2 + 0x149430]
sub cx, 0x2b
add cx, dx
sub cx, 0x32
add cx, r9w
mov word [r10], cx
movsx edx, bx
movsx r8d, cx
cmp bx, cx
jl 0x1400ad307
lea eax, [r8 + 0x31]
cmp edx, eax
jle 0x1400ad2d2
movzx ecx, bx
add cx, 5
jmp 0x1400acfe6
lea eax, [r8 + 0x1f]
cmp edx, eax
jle 0x1400ad2e6
lea ecx, [rbx + 1]
add cx, 5
jmp 0x1400acfe6
sub edx, r8d
lea rcx, [0x140000000]
movsxd rax, edx
movzx ecx, byte [rax + rcx + 0x149de8]
add cx, bx
add cx, 5
jmp 0x1400acfe6
lea eax, [rdx + 0x31]
cmp r8d, eax
jg 0x1400ad33b
lea eax, [rdx + 0x1f]
cmp r8d, eax
jle 0x1400ad323
inc cx
add cx, 5
jmp 0x1400acfe6
sub r8d, edx
lea rdx, [0x140000000]
movsxd rax, r8d
movzx eax, byte [rax + rdx + 0x149de8]
add cx, ax
add cx, 5
jmp 0x1400acfe6
mov r14, qword [rsp + 0x40]
cmp word [rdi + 0x12], cx
jl 0x1400ad0f9
jne 0x1400ad059
cmp word [rdi + 0x10], bp
jl 0x1400ad0f9
jne 0x1400ad059
cmp word [rdi + 0x14], bx
jle 0x1400ad0f9
jmp 0x1400ad059
mov rdi, qword [rsp + 0x48]
mov r10d, 0x4000
mov r14, qword [rsp + 0x40]
mov r13, qword [r13 + 0x40]
test r13, r13
jne 0x1400ace70
mov rbp, qword [rsp + 0xf0]
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
inc eax
add rdi, 0x20
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x48], rdi
cmp eax, edx
jl 0x1400ace60
mov ecx, dword [rsp + 0x108]
mov r9, qword [rsp + 0x78]
mov rax, r14
mov qword [rsp + 0x40], r9
inc ecx
mov qword [rsp + 0x78], rax
mov edx, r12d
mov r14, r9
mov r9, rax
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x108], ecx
cmp ecx, dword [rsp + 0x100]
jl 0x1400ace40
test r12d, r12d
jne 0x1400ad4ad
mov rcx, qword [rsp + 0x88]
lea rdx, str.no_query_solution
call fcn.14001a970
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400ad472
cmp qword [rcx + 0x298], 0
je 0x1400ad440
mov rdx, qword [rsp + 0x58]
call fcn.1400170b0
lea eax, [r12 + 1]
jmp 0x1400ad78e
mov rbx, qword [rsp + 0x58]
cmp rbx, qword [rcx + 0x190]
jb 0x1400ad477
cmp rbx, qword [rcx + 0x198]
jae 0x1400ad477
mov rax, qword [rcx + 0x188]
mov qword [rbx], rax
mov eax, 1
mov qword [rcx + 0x188], rbx
jmp 0x1400ad78e
mov rbx, qword [rsp + 0x58]
cmp dword [0x1401abb60], 0
mov rcx, rbx
je 0x1400ad49d
call qword [0x1401abb98]
movsxd rcx, eax
sub qword [0x1401b2b20], rcx
mov rcx, rbx
dec qword [0x1401b2b68]
call qword [0x1401abb88]
mov eax, 1
jmp 0x1400ad78e
movzx edi, word [rsp + 0xf8]
mov r13d, 1
mov r12d, dword [rsp + 0x100]
movsxd rdx, edx
mov rbx, r9
cmp rdx, 1
jle 0x1400ad4f6
lea rcx, [r9 + 0x32]
dec rdx
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x1400ad4e9
movsxd rbx, r13d
shl rbx, 5
add rbx, r9
inc r13d
add rcx, 0x20
sub rdx, 1
jne 0x1400ad4d6
test r12b, r12b
je 0x1400ad541
lea rdx, [rbp + 0x3c4]
mov r9d, r12d
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x58]
lea r8, [r8 + 8]
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x3c], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x70
mov byte [rdx - 0x58], al
mov rax, qword [rbp + 8]
mov ecx, dword [rcx + rax + 0x4c]
mov dword [rdx - 0x80], ecx
sub r9, 1
jne 0x1400ad510
movzx eax, word [rbp + 0x40]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x1400ad5af
cmp byte [rbp + 0x47], 0
jne 0x1400ad5af
test di, di
je 0x1400ad5af
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0xf0]
mov qword [rsp + 0x30], r8
lea edx, [r12 - 1]
movzx ecx, r12b
mov r9d, Ordinal_133
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.1400ac3c0
movsx ecx, al
mov rax, qword [rbp + 0x18]
cmp ecx, dword [rax]
jne 0x1400ad5af
mov byte [rbp + 0x47], 2
mov r10, qword [rbp + 0x10]
mov byte [rbp + 0x48], 0
test r10, r10
je 0x1400ad64e
test byte [rbp + 0x40], 0x80
movsx ecx, byte [rbx + 0x16]
je 0x1400ad684
cmp ecx, dword [r10]
jne 0x1400ad5d7
mov byte [rbp + 0x47], 2
mov rdx, r10
xor edi, edi
mov eax, 0x200
test word [rbp + 0x40], ax
je 0x1400ad64e
movsx eax, byte [rbp + 0x43]
cmp eax, dword [rdx]
jne 0x1400ad64e
test r12b, r12b
je 0x1400ad64e
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0xf0]
mov qword [rsp + 0x30], r8
xor r9d, r9d
movzx ecx, r12b
mov r8, rbx
mov qword [rsp + 0xf0], rdi
dec r12w
mov rax, qword [rax + rcx*8 - 8]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r12w
call fcn.1400ac3c0
movsx ecx, al
mov rax, qword [rbp + 0x10]
cmp ecx, dword [rax]
jne 0x1400ad64e
mov rax, qword [rsp + 0xf0]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x44], 1
mov rcx, qword [rsp + 0x90]
movzx eax, word [rbx + 0x10]
mov word [rbp + 0x60], ax
test rcx, rcx
je 0x1400ad75b
cmp qword [rcx + 0x298], 0
je 0x1400ad731
mov rdx, qword [rsp + 0x58]
call fcn.1400170b0
jmp 0x1400ad78c
mov byte [rbp + 0x43], cl
mov rdx, r10
mov rax, qword [rbx + 8]
mov qword [rbp + 0x58], rax
test cl, cl
jg 0x1400ad5da
mov byte [rbp + 0x43], 0
test r12b, r12b
je 0x1400ad5da
mov rax, qword [rbx + 0x18]
movzx ecx, r12b
mov r11, qword [rax + rcx*8 - 8]
mov eax, dword [r11 + 0x28]
and eax, 0x104
cmp eax, 0x104
setne cl
bt dword [r11 + 0x28], 0xc
setae al
test al, cl
je 0x1400ad5da
lea rcx, [rsp + 0xf0]
xor edi, edi
mov qword [rsp + 0x30], rcx
lea eax, [r12 - 1]
mov qword [rsp + 0x28], r11
mov rcx, rbp
mov r9d, 0x800
mov word [rsp + 0x20], ax
mov r8, rbx
mov qword [rsp + 0xf0], rdi
call fcn.1400ac3c0
mov rdx, qword [rbp + 0x10]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x1400ad5dc
mov rax, qword [rsp + 0xf0]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x48], 1
jmp 0x1400ad5dc
mov rbx, qword [rsp + 0x58]
cmp rbx, qword [rcx + 0x190]
jb 0x1400ad760
cmp rbx, qword [rcx + 0x198]
jae 0x1400ad760
mov rax, qword [rcx + 0x188]
mov qword [rbx], rax
mov qword [rcx + 0x188], rbx
jmp 0x1400ad78c
mov rbx, qword [rsp + 0x58]
cmp dword [0x1401abb60], 0
mov rcx, rbx
je 0x1400ad786
call qword [0x1401abb98]
movsxd rcx, eax
sub qword [0x1401b2b20], rcx
mov rcx, rbx
dec qword [0x1401b2b68]
call qword [0x1401abb88]
xor eax, eax
mov r14, qword [rsp + 0xa8]
add rsp, 0xb0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret