Function at 0x140180e00
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov rax, qword [rcx]
movzx edi, dx
xor edx, edx
mov qword [rsp + 0x88], rax
mov r14, rcx
mov dword [rsp + 0x5c], edx
movzx ecx, byte [rcx + 0x40]
mov r13d, 1
mov r8, qword [rax]
movzx esi, dx
mov qword [rsp + 0x90], r8
movzx r12d, dx
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x100], ecx
cmp ecx, r13d
ja 0x140180e67
mov ebx, r13d
jmp 0x140180e77
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [r14 + 0x10]
mov dword [rsp + 0x58], ebx
test rax, rax
je 0x140180e91
test di, di
je 0x140180e91
mov ebp, dword [rax]
mov dword [rsp + 0x54], ebp
jmp 0x140180e97
mov ebp, edx
mov dword [rsp + 0x54], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [rax*8]
add ecx, ebp
add ecx, ecx
movsxd rdx, ecx
mov rcx, r8
call fcn.140128a50
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
jne 0x140180ec8
lea eax, [rdx + 7]
jmp 0x140181989
movsxd r11, dword [rsp + 0x100]
xorps xmm0, xmm0
mov eax, ebx
mov r8, r11
shl rax, 5
lea r10, [rax + rdx]
mov qword [rsp + 0xa8], r15
shl r8, 3
mov r15, rdx
movups xmmword [r10], xmm0
lea rcx, [rax + r10]
mov qword [rsp + 0x40], rdx
movups xmmword [r10 + 0x10], xmm0
lea eax, [rbx + rbx]
mov qword [rsp + 0x78], r10
add rdx, 0x18
nop dword [rax]
mov qword [rdx], rcx
lea rdx, [rdx + 0x20]
add rcx, r8
dec eax
test eax, eax
jg 0x140180f10
test ebp, ebp
je 0x140180f46
movsxd r8, ebp
xor edx, edx
add r8, r8
mov qword [rsp + 0x80], rcx
call fcn.1401b3ce0
mov r11d, dword [rsp + 0x100]
mov r10, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
mov ecx, 0x30
mov edx, r13d
mov dword [rsp + 0x6c], edx
mov eax, dword [rax + 0xc0]
cmp eax, ecx
cmovb ecx, eax
mov word [r10 + 0x10], cx
test ebp, ebp
je 0x140180f81
test r11b, r11b
movzx eax, bpl
mov ecx, 0xffffffff
cmovne eax, ecx
mov byte [r10 + 0x16], al
xor r8d, r8d
mov ebp, 0x100
mov ecx, r8d
mov dword [rsp + 0x50], ecx
test r11b, r11b
je 0x140181627
mov ebx, 0x4000
lea rbp, [0x140000000]
nop word [rax + rax]
mov dword [rsp + 0x108], r8d
mov eax, r8d
mov dword [rsp + 0x68], eax
mov r9d, r8d
mov qword [rsp + 0x48], r10
mov rdi, r10
test edx, edx
jle 0x1401814db
mov r13, qword [r14 + 0x58]
test r13, r13
je 0x1401814b3
nop
mov r9, qword [rdi]
movzx r11d, byte [rdi + 0x16]
mov rax, r9
not rax
mov qword [rsp + 0x70], r8
test qword [r13], rax
jne 0x140181473
mov r15, qword [r13 + 8]
test r9, r15
jne 0x140181464
test dword [r13 + 0x28], ebx
je 0x14018101b
cmp word [rdi + 0x10], 3
jl 0x140181464
movsx ebx, word [r13 + 0x12]
movzx r10d, word [rdi + 0x10]
mov ecx, ebx
movzx r8d, word [r13 + 0x14]
add r8w, r10w
movsx edx, r8w
cmp bx, r8w
jl 0x14018105f
lea eax, [rdx + 0x31]
cmp ebx, eax
jg 0x14018108a
lea eax, [rdx + 0x1f]
cmp ebx, eax
jle 0x14018104d
inc bx
jmp 0x14018108a
sub ecx, edx
movsxd rax, ecx
movzx eax, byte [rax + rbp + 0x237fe8]
add bx, ax
jmp 0x14018108a
lea eax, [rbx + 0x31]
cmp edx, eax
jle 0x14018106c
movzx ebx, r8w
jmp 0x14018108a
lea eax, [rbx + 0x1f]
cmp edx, eax
jle 0x140181079
lea ebx, [r8 + 1]
jmp 0x14018108a
sub edx, ecx
movsxd rax, edx
movzx ebx, byte [rax + rbp + 0x237fe8]
add bx, r8w
movsx r8d, word [rdi + 0x14]
movsx ecx, bx
mov edx, r8d
cmp bx, r8w
jl 0x1401810c2
lea eax, [r8 + 0x31]
cmp ecx, eax
jg 0x1401810ed
lea eax, [r8 + 0x1f]
cmp ecx, eax
jle 0x1401810b0
inc bx
jmp 0x1401810ed
sub ecx, edx
movsxd rax, ecx
movzx eax, byte [rax + rbp + 0x237fe8]
add bx, ax
jmp 0x1401810ed
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x1401810cf
movzx ebx, r8w
jmp 0x1401810ed
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x1401810dc
lea ebx, [r8 + 1]
jmp 0x1401810ed
sub edx, ecx
movsxd rax, edx
movzx ebx, byte [rax + rbp + 0x237fe8]
add bx, r8w
movzx ebp, word [r13 + 0x16]
or r15, r9
add bp, r10w
test r11b, r11b
jns 0x14018127c
movzx r9d, word [r14 + 0x3c]
lea rax, [rsp + 0x70]
mov rdx, qword [r14 + 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov rcx, r14
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov word [rsp + 0x20], ax
call fcn.140180470
mov r14, qword [rsp + 0x70]
movzx r11d, al
test al, al
jns 0x140181280
movzx r8d, bx
add bx, 0xfffe
mov r9d, dword [rsp + 0x108]
xor ecx, ecx
mov rdi, qword [rsp + 0x40]
test r9d, r9d
jle 0x14018117d
nop dword [rax + rax]
cmp qword [rdi], r15
jne 0x140181172
movzx eax, byte [rdi + 0x16]
xor al, r11b
jge 0x14018143b
inc ecx
add rdi, 0x20
cmp ecx, r9d
jl 0x140181160
mov r10d, dword [rsp + 0x58]
cmp r9d, r10d
jl 0x14018119d
cmp r8w, si
jg 0x14018147d
jne 0x14018119d
cmp bx, r12w
jge 0x14018147d
mov r15, qword [rsp + 0x40]
cmp r9d, r10d
mov eax, r9d
cmovge eax, dword [rsp + 0x5c]
movsxd rdi, eax
lea eax, [r9 + 1]
shl rdi, 5
add rdi, r15
cmp r9d, r10d
cmovge eax, r9d
mov dword [rsp + 0x108], eax
mov rax, qword [r13 + 8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x18]
or rax, qword [rdx]
mov qword [rdi], rax
mov eax, dword [rsp + 0x50]
mov word [rdi + 0x14], bx
mov word [rdi + 0x12], r8w
mov qword [rdi + 8], r14
lea rbx, [rax*8]
mov word [rdi + 0x10], bp
mov byte [rdi + 0x16], r11b
mov r8, rbx
mov rdx, qword [rdx + 0x18]
call fcn.1401b3e90
mov rax, qword [rdi + 0x18]
xor r8d, r8d
mov r10d, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x108]
mov qword [rbx + rax], r13
cmp r9d, r10d
jl 0x140181485
movzx esi, word [r15 + 0x12]
mov edx, 1
movzx r12d, word [r15 + 0x10]
mov dword [rsp + 0x5c], r8d
cmp r10d, edx
jbe 0x140181485
lea rax, [r15 + 0x34]
nop dword [rax + rax]
movzx ecx, word [rax - 2]
cmp cx, si
jg 0x140181261
jne 0x14018126c
cmp word [rax], r12w
jle 0x14018126c
movzx r12d, word [rax]
movzx esi, cx
mov dword [rsp + 0x5c], edx
inc edx
add rax, 0x20
cmp edx, r10d
jl 0x140181250
jmp 0x140181485
mov r14, qword [rdi + 8]
mov edx, dword [rsp + 0x54]
movsx ecx, r11b
cmp ecx, edx
jge 0x14018113f
mov r8, qword [rsp + 0x80]
movsx rax, r11b
lea r10, [r8 + rax*2]
movzx r8d, word [r8 + rax*2]
test r8w, r8w
jne 0x1401813a3
movzx edi, word [rsp + 0xf8]
mov eax, edx
sub eax, ecx
movzx r9d, di
imul eax, eax, 0x64
mov ecx, 0x28
cdq
idiv dword [rsp + 0x54]
cdqe
cmp rax, 8
jae 0x1401812ef
cmp rax, 2
jae 0x1401812e0
movzx r8d, di
jmp 0x14018134d
add cx, 0xfff6
add rax, rax
cmp rax, 8
jb 0x1401812e0
jmp 0x14018132d
cmp rax, 0xff
jbe 0x140181310
nop word [rax + rax]
add cx, 0x28
shr rax, 4
cmp rax, 0xff
ja 0x140181300
cmp rax, 0xf
jbe 0x14018132d
nop word [rax + rax]
add cx, 0xa
shr rax, 1
cmp rax, 0xf
ja 0x140181320
and eax, 7
lea rdx, [0x140000000]
movzx r8d, word [rdx + rax*2 + 0x2b7088]
sub r8w, 0xa
add r8w, cx
add r8w, di
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rax + 0x3c]
bt cx, 0xe
jae 0x14018136f
movzx eax, word [rax + 0x3e]
cmp ax, di
jge 0x14018136f
movzx r9d, ax
jmp 0x140181380
bt cx, 8
jae 0x140181380
cmp di, 0xa
jle 0x140181387
lea r9d, [rdi - 0xa]
cmp r9w, 0xa
jg 0x14018138e
mov eax, 0xffffffce
jmp 0x14018139b
movsx rcx, r9w
call fcn.14013dc30
sub ax, 0x53
add r8w, ax
mov word [r10], r8w
movsx ecx, bx
movsx edx, r8w
cmp bx, r8w
jl 0x1401813fd
lea eax, [rdx + 0x31]
cmp ecx, eax
jle 0x1401813c5
movzx r8d, bx
add r8w, 5
jmp 0x140181147
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x1401813da
lea r8d, [rbx + 1]
add r8w, 5
jmp 0x140181147
sub ecx, edx
movsxd rax, ecx
lea rcx, [0x140000000]
movzx r8d, byte [rax + rcx + 0x237fe8]
add r8w, bx
add r8w, 5
jmp 0x140181147
lea eax, [rcx + 0x31]
cmp edx, eax
jg 0x140181431
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x140181419
inc r8w
add r8w, 5
jmp 0x140181147
sub edx, ecx
lea rcx, [0x140000000]
movsxd rax, edx
movzx eax, byte [rax + rcx + 0x237fe8]
add r8w, ax
add r8w, 5
jmp 0x140181147
mov r15, qword [rsp + 0x40]
cmp word [rdi + 0x12], r8w
jl 0x140181482
jne 0x1401811c9
cmp word [rdi + 0x10], bp
jl 0x140181482
jne 0x1401811c9
cmp word [rdi + 0x14], bx
jle 0x140181482
jmp 0x1401811c9
mov r9d, dword [rsp + 0x108]
mov r15, qword [rsp + 0x40]
jmp 0x14018149e
mov r9d, dword [rsp + 0x108]
jmp 0x14018149e
mov r15, qword [rsp + 0x40]
xor r8d, r8d
mov r14, qword [rsp + 0xf0]
lea rbp, [0x140000000]
mov rdi, qword [rsp + 0x48]
mov ebx, 0x4000
mov r13, qword [r13 + 0x40]
test r13, r13
jne 0x140180fe0
mov eax, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
inc eax
add rdi, 0x20
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x48], rdi
cmp eax, edx
jl 0x140180fd2
mov ecx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x100]
mov r10, qword [rsp + 0x78]
mov rax, r15
mov qword [rsp + 0x40], r10
inc ecx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], ecx
mov edx, r9d
mov dword [rsp + 0x6c], edx
mov r15, r10
mov r10, rax
cmp ecx, r11d
jl 0x140180fb0
test r9d, r9d
jne 0x140181614
mov rcx, qword [rsp + 0x88]
lea rdx, str.no_query_solution
call fcn.14012b3a0
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1401815a2
cmp qword [rcx + 0x2e0], 0
je 0x14018154c
mov rdx, qword [rsp + 0x60]
call fcn.140107e10
mov eax, 1
jmp 0x140181981
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rcx + 0x1d0]
jae 0x1401815a7
cmp rbx, qword [rcx + 0x1c0]
jb 0x14018157e
mov rax, qword [rcx + 0x1b8]
mov qword [rbx], rax
mov eax, 1
mov qword [rcx + 0x1b8], rbx
jmp 0x140181981
cmp rbx, qword [rcx + 0x1c8]
jb 0x1401815a7
mov rax, qword [rcx + 0x1a8]
mov qword [rbx], rax
mov eax, 1
mov qword [rcx + 0x1a8], rbx
jmp 0x140181981
mov rbx, qword [rsp + 0x60]
cmp dword [0x1402b6280], 0
je 0x140181601
mov rcx, qword [0x1402bfbb0]
test rcx, rcx
je 0x1401815c2
call qword [0x1402b6300]
mov rcx, rbx
call qword [0x1402b62b8]
dec qword [0x1402bfb48]
movsxd rcx, eax
sub qword [0x1402bfb00], rcx
mov rcx, rbx
call qword [0x1402b62a8]
mov rcx, qword [0x1402bfbb0]
test rcx, rcx
je 0x14018160a
call qword [0x1402b6310]
mov eax, 1
jmp 0x140181981
mov rcx, rbx
call qword [0x1402b62a8]
mov eax, 1
jmp 0x140181981
movzx edi, word [rsp + 0xf8]
mov ebp, 0x100
mov r13d, 1
movsxd rdx, edx
mov rbx, r10
cmp rdx, 1
jle 0x140181660
lea rcx, [r10 + 0x32]
dec rdx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x140181653
movsxd rbx, r13d
shl rbx, 5
add rbx, r10
inc r13d
add rcx, 0x20
sub rdx, 1
jne 0x140181640
test r11b, r11b
je 0x1401816a4
lea rdx, [r14 + 0x394]
mov r9d, r11d
nop
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x60]
lea r8, [r8 + 8]
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x44], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x70
mov byte [rdx - 0x60], al
mov rax, qword [r14 + 8]
mov ecx, dword [rcx + rax + 0x4c]
mov dword [rdx - 0x90], ecx
sub r9, 1
jne 0x140181670
movzx eax, word [r14 + 0x3c]
mov ecx, 0x180
and ax, cx
cmp ax, bp
jne 0x140181717
cmp byte [r14 + 0x43], 0
jne 0x140181717
test di, di
je 0x140181717
mov rax, qword [rbx + 0x18]
lea edx, [r11 - 1]
movzx ecx, r11b
lea r8, [rsp + 0xf0]
mov qword [rsp + 0x30], r8
mov r9d, 0x80
mov r8, rbx
mov rax, qword [rax + rcx*8 - 8]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], dx
mov rdx, qword [r14 + 0x18]
call fcn.140180470
mov r11d, dword [rsp + 0x100]
movsx ecx, al
mov rax, qword [r14 + 0x18]
cmp ecx, dword [rax]
jne 0x140181717
mov byte [r14 + 0x43], 2
mov r8d, dword [r14 + 0x44]
mov r10, qword [r14 + 0x10]
and r8d, 0xfffffffb
mov dword [r14 + 0x44], r8d
test r10, r10
je 0x1401818aa
movzx ecx, word [r14 + 0x3c]
movsx r9d, byte [rbx + 0x16]
test cl, cl
jns 0x140181753
cmp r9d, dword [r10]
jne 0x140181748
mov byte [r14 + 0x43], 2
movzx eax, cx
mov rdx, r10
jmp 0x140181836
mov byte [r14 + 0x41], r9b
mov rdx, r10
mov rax, qword [rbx + 8]
mov qword [r14 + 0x68], rax
test r9b, r9b
jg 0x14018181b
mov byte [r14 + 0x41], 0
test r11b, r11b
je 0x140181814
mov rax, qword [rbx + 0x18]
movzx ecx, r11b
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 0x14018180c
mov eax, dword [rsp + 0x100]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x30], rcx
dec eax
mov qword [rsp + 0x28], r11
mov rcx, r14
mov r9d, 0x800
mov word [rsp + 0x20], ax
mov r8, rbx
mov qword [rsp + 0xf0], 0
call fcn.140180470
mov rdx, qword [r14 + 0x10]
mov r11d, dword [rsp + 0x100]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x140181814
mov rax, qword [rsp + 0xf0]
or dword [r14 + 0x44], 4
mov qword [r14 + 0x68], rax
movzx eax, word [r14 + 0x3c]
jmp 0x140181836
mov r11d, dword [rsp + 0x100]
movzx eax, word [r14 + 0x3c]
jmp 0x140181836
movzx eax, cx
test r11b, r11b
je 0x140181836
cmp r9b, 1
jne 0x140181836
test cl, 3
je 0x140181836
or r8d, 4
mov dword [r14 + 0x44], r8d
bt ax, 9
jae 0x1401818aa
movsx eax, byte [r14 + 0x41]
cmp eax, dword [rdx]
jne 0x1401818aa
test r11b, r11b
je 0x1401818aa
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0xf0]
movzx ecx, r11b
xor r9d, r9d
mov qword [rsp + 0x30], r8
dec r11w
mov r8, rbx
mov qword [rsp + 0xf0], 0
mov rax, qword [rax + rcx*8 - 8]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r11w
call fcn.140180470
movsx ecx, al
mov rax, qword [r14 + 0x10]
cmp ecx, dword [rax]
jne 0x1401818aa
mov rax, qword [rsp + 0xf0]
or dword [r14 + 0x44], 8
mov qword [r14 + 0x68], rax
mov rcx, qword [rsp + 0x90]
movzx eax, word [rbx + 0x10]
mov word [r14 + 0x48], ax
test rcx, rcx
je 0x14018191f
cmp qword [rcx + 0x2e0], 0
je 0x1401818d9
mov rdx, qword [rsp + 0x60]
call fcn.140107e10
jmp 0x14018197f
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rcx + 0x1d0]
jae 0x140181924
cmp rbx, qword [rcx + 0x1c0]
jb 0x140181903
mov rax, qword [rcx + 0x1b8]
mov qword [rbx], rax
mov qword [rcx + 0x1b8], rbx
jmp 0x14018197f
cmp rbx, qword [rcx + 0x1c8]
jb 0x140181924
mov rax, qword [rcx + 0x1a8]
mov qword [rbx], rax
mov qword [rcx + 0x1a8], rbx
jmp 0x14018197f
mov rbx, qword [rsp + 0x60]
cmp dword [0x1402b6280], 0
je 0x140181976
mov rcx, qword [0x1402bfbb0]
test rcx, rcx
je 0x14018193f
call qword [0x1402b6300]
mov rcx, rbx
call qword [0x1402b62b8]
dec qword [0x1402bfb48]
movsxd rcx, eax
sub qword [0x1402bfb00], rcx
mov rcx, rbx
call qword [0x1402b62a8]
mov rcx, qword [0x1402bfbb0]
test rcx, rcx
je 0x14018197f
call qword [0x1402b6310]
jmp 0x14018197f
mov rcx, rbx
call qword [0x1402b62a8]
xor eax, eax
mov r15, qword [rsp + 0xa8]
add rsp, 0xb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret