Function at 0x140317b64
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
xor edi, edi
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rbp - 0x21], rdi
mov r15, rcx
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x19], rdi
lea edx, [rdi + 0x1b]
call fcn.14031ec20
mov dword [rbp + 0x77], eax
mov r13d, eax
mov dword [rbp + 0x7f], eax
test eax, eax
jne 0x14031876a
mov rsi, qword [rbp - 0x19]
lea edx, [rdi + 1]
movsxd r8, dword [r15 + 0x208]
mov rcx, rsi
mov qword [rbp - 0x41], rsi
call fcn.1402f4224
movsxd r8, dword [r15 + 0x1e8]
lea edx, [rdi + 2]
mov rcx, rsi
call fcn.1402f4224
mov r12d, edi
test rsi, rsi
jne 0x140317bfc
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1402e3db0
jmp 0x140317c1f
cmp qword [rsi], rdi
jne 0x140317c19
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1402e3db0
mov eax, 1
jmp 0x140317c1b
mov eax, edi
test eax, eax
je 0x140317c30
mov ecx, 0x152cc
call fcn.140372488
mov ebx, eax
jmp 0x140317fca
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140317c42
call qword [0x140519fa0]
mov al, byte [rsi + 0xc5]
mov rbx, qword [rsi]
cmp al, 2
je 0x140317d7e
jmp 0x140317ce0
cmp al, 3
jne 0x140317d7e
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140317c72
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x140317c86
mov rdx, rsi
mov rcx, r14
call fcn.1403367b0
mov rcx, rsi
call fcn.14038c890
or dword [rsi + 0x30], 0xffffffff
mov byte [rsi + 0xc5], 1
mov dword [rsi + 0x34], edi
mov word [rsi + 0xc2], 0xff02
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x2c], 1
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x50], rdi
cmp byte [r14 + 0x67], dil
jne 0x140317cc1
test eax, eax
je 0x140317ccb
mov edx, eax
mov rcx, r14
call fcn.1402fd0a4
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140317cda
call qword [0x140519fb0]
mov al, byte [rsi + 0xc5]
cmp al, 1
jne 0x140317c58
test byte [rsi + 0xc8], 3
je 0x140317d1b
mov r14d, 1
mov dword [rsi + 0x34], 0x11
cmp byte [rsi + 0xc4], dil
jge 0x140317e2e
mov rcx, rsi
call fcn.14038d534
mov r14d, eax
jmp 0x140317e2e
cmp dword [rbx + 0xd8], edi
jne 0x140317d29
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x140317d50
cmp byte [rbx + 0xc5], dil
jne 0x140317d50
cmp qword [rsi + 0xf8], rdi
je 0x140317d50
mov rcx, qword [rbx]
lea rdx, [rsi + 0xb8]
call fcn.140372b24
inc dword [rbx + 0xd8]
test byte [rsi + 0xc8], 0x40
jne 0x140317d65
inc dword [rbx + 0xe0]
test byte [rsi + 0xc8], 0x80
je 0x140317d74
inc dword [rbx + 0xdc]
mov dword [rsi + 0x30], edi
mov byte [rsi + 0xc5], 2
test byte [rsi + 0xc8], 0xc
mov rcx, rsi
je 0x140317d91
call fcn.14038a738
jmp 0x140317da2
inc dword [rbx + 0xe4]
call fcn.140382d5c
dec dword [rbx + 0xe4]
mov r14d, eax
mov eax, 0x64
cmp r14d, eax
je 0x140317fae
cmp qword [rsi + 0xb8], rdi
jle 0x140317dc7
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
cmp r14d, 0x65
jne 0x140317dea
cmp byte [rbx + 0x65], dil
je 0x140317dfe
mov rcx, rbx
call fcn.1403070a8
mov dword [rsi + 0x34], eax
test eax, eax
je 0x140317dfe
mov r14d, 1
jmp 0x140317dfe
cmp byte [rsi + 0xc4], dil
jge 0x140317dfe
mov rcx, rsi
call fcn.14038d534
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x140317e12
test edx, edx
je 0x140317e2e
call fcn.1402fd0a4
mov ecx, 7
cmp eax, ecx
jne 0x140317e2e
cmp byte [rsi + 0xc4], dil
mov dword [rsi + 0x34], ecx
cmovl r14d, ecx
mov ebx, dword [rbx + 0x58]
and ebx, r14d
cmp ebx, 0x11
jne 0x140317fb3
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x140317fb3
mov r14, qword [rsi]
lea rax, [rbp - 1]
movzx r9d, byte [rsi + 0xc4]
mov rcx, r14
mov rdx, qword [rsi + 0xf8]
or r8d, 0xffffffff
mov r15d, dword [rsi + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.140371b74
mov ebx, eax
test eax, eax
jne 0x140317f3f
mov rbx, qword [rbp - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.14038d358
mov rdx, rsi
mov rcx, rbx
call fcn.14037edcc
mov rcx, rbx
mov dword [rbx + 0x34], edi
call fcn.140389eb4
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140317ec2
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x140317ed6
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
mov rcx, rsi
call fcn.14038c890
or dword [rsi + 0x30], 0xffffffff
mov byte [rsi + 0xc5], 1
mov dword [rsi + 0x34], edi
mov word [rsi + 0xc2], 0xff02
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x2c], 1
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x50], rdi
cmp byte [rbx + 0x67], dil
jne 0x140317f11
test eax, eax
je 0x140317f1b
mov edx, eax
mov rcx, rbx
call fcn.1402fd0a4
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140317f2a
call qword [0x140519fb0]
test r15d, r15d
js 0x140317c42
mov byte [rsi + 0xc3], 0xfe
jmp 0x140317c42
cmp ebx, 7
jne 0x140317f4c
mov rcx, r14
call fcn.140372774
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.1403820b8
mov rdx, qword [rsi + 0xa8]
mov r14, rax
test rdx, rdx
je 0x140317f71
mov rcx, r13
call fcn.140357710
cmp byte [r13 + 0x67], dil
jne 0x140317f98
mov rdx, r14
mov rcx, r13
call fcn.1403579c0
mov edx, ebx
mov qword [rsi + 0xa8], rax
mov rcx, r13
call fcn.1402fd0a4
mov dword [rsi + 0x34], eax
jmp 0x140317fb1
mov r14d, 7
mov qword [rsi + 0xa8], rdi
mov ebx, r14d
mov dword [rsi + 0x34], r14d
jmp 0x140317fb3
mov dword [rbx + 0x50], eax
mov ebx, eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140317fc2
call qword [0x140519fb0]
mov r13d, dword [rbp + 0x77]
mov r15, qword [rbp + 0x67]
cmp ebx, 0x64
jne 0x140318024
xor edx, edx
mov rcx, rsi
call fcn.1402f4db8
mov r14d, eax
mov ebx, edi
cmp dword [r15 + 0x1e8], edi
jle 0x14031801b
mov rsi, qword [rbp - 0x21]
lea r9, [rbp + 0x7f]
mov r8d, ebx
mov edx, r14d
mov rcx, r15
call fcn.14030dc58
xor rsi, rax
inc ebx
cmp ebx, dword [r15 + 0x1e8]
jl 0x140317feb
mov r13d, dword [rbp + 0x7f]
mov qword [rbp - 0x21], rsi
mov rsi, qword [rbp - 0x41]
mov dword [rbp + 0x77], r13d
test r13d, r13d
je 0x140317be3
test rsi, rsi
jne 0x140318030
mov esi, edi
jmp 0x1403180b0
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140318042
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x140318056
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
mov rcx, rsi
call fcn.14038c890
or dword [rsi + 0x30], 0xffffffff
mov byte [rsi + 0xc5], 1
mov dword [rsi + 0x34], edi
mov word [rsi + 0xc2], 0xff02
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x2c], 1
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x50], rdi
cmp byte [rbx + 0x67], dil
jne 0x140318095
test eax, eax
jne 0x140318095
mov esi, edi
jmp 0x1403180a1
mov edx, eax
mov rcx, rbx
call fcn.1402fd0a4
mov esi, eax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1403180b0
call qword [0x140519fb0]
test r13d, r13d
jne 0x14031876a
mov r13d, esi
test esi, esi
jne 0x14031876a
mov rax, qword [r15 + 0x48]
lea rcx, str.SELECT__s
mov rdx, qword [r15 + 0x1b8]
mov rsi, rdi
mov qword [rbp - 0x29], rdi
mov rax, qword [rax]
mov qword [rbp - 9], rax
call fcn.1402f240c
mov rbx, rax
test rax, rax
jne 0x1403180fa
lea r13d, [rax + 7]
jmp 0x1403186fb
mov rcx, qword [r15 + 0x18]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rdi
mov r9d, 0x80
mov qword [rsp + 0x28], rax
or r8d, 0xffffffff
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call fcn.140371b74
mov rcx, rbx
mov dword [rbp + 0x77], eax
mov r13d, eax
call fcn.1402f27a0
mov rsi, qword [rbp - 0x29]
mov dword [rbp + 0x7f], r13d
test r13d, r13d
jne 0x1403186fb
mov qword [rbp + 0xf], rsi
mov r12d, edi
test rsi, rsi
jne 0x14031815f
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1402e3db0
jmp 0x140318182
cmp qword [rsi], rdi
jne 0x14031817c
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1402e3db0
mov eax, 1
jmp 0x14031817e
mov eax, edi
test eax, eax
je 0x140318193
mov ecx, 0x152cc
call fcn.140372488
mov ebx, eax
jmp 0x14031852f
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1403181a5
call qword [0x140519fa0]
mov al, byte [rsi + 0xc5]
mov rbx, qword [rsi]
cmp al, 2
je 0x1403182e1
jmp 0x140318243
cmp al, 3
jne 0x1403182e1
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1403181d5
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x1403181e9
mov rdx, rsi
mov rcx, r14
call fcn.1403367b0
mov rcx, rsi
call fcn.14038c890
or dword [rsi + 0x30], 0xffffffff
mov byte [rsi + 0xc5], 1
mov dword [rsi + 0x34], edi
mov word [rsi + 0xc2], 0xff02
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x2c], 1
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x50], rdi
cmp byte [r14 + 0x67], dil
jne 0x140318224
test eax, eax
je 0x14031822e
mov edx, eax
mov rcx, r14
call fcn.1402fd0a4
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x14031823d
call qword [0x140519fb0]
mov al, byte [rsi + 0xc5]
cmp al, 1
jne 0x1403181bb
test byte [rsi + 0xc8], 3
je 0x14031827e
mov r14d, 1
mov dword [rsi + 0x34], 0x11
cmp byte [rsi + 0xc4], dil
jge 0x140318391
mov rcx, rsi
call fcn.14038d534
mov r14d, eax
jmp 0x140318391
cmp dword [rbx + 0xd8], edi
jne 0x14031828c
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x1403182b3
cmp byte [rbx + 0xc5], dil
jne 0x1403182b3
cmp qword [rsi + 0xf8], rdi
je 0x1403182b3
mov rcx, qword [rbx]
lea rdx, [rsi + 0xb8]
call fcn.140372b24
inc dword [rbx + 0xd8]
test byte [rsi + 0xc8], 0x40
jne 0x1403182c8
inc dword [rbx + 0xe0]
test byte [rsi + 0xc8], 0x80
je 0x1403182d7
inc dword [rbx + 0xdc]
mov dword [rsi + 0x30], edi
mov byte [rsi + 0xc5], 2
test byte [rsi + 0xc8], 0xc
mov rcx, rsi
je 0x1403182f4
call fcn.14038a738
jmp 0x140318305
inc dword [rbx + 0xe4]
call fcn.140382d5c
dec dword [rbx + 0xe4]
mov r14d, eax
mov eax, 0x64
cmp r14d, eax
je 0x140318513
cmp qword [rsi + 0xb8], rdi
jle 0x14031832a
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
cmp r14d, 0x65
jne 0x14031834d
cmp byte [rbx + 0x65], dil
je 0x140318361
mov rcx, rbx
call fcn.1403070a8
mov dword [rsi + 0x34], eax
test eax, eax
je 0x140318361
mov r14d, 1
jmp 0x140318361
cmp byte [rsi + 0xc4], dil
jge 0x140318361
mov rcx, rsi
call fcn.14038d534
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x140318375
test edx, edx
je 0x140318391
call fcn.1402fd0a4
mov ecx, 7
cmp eax, ecx
jne 0x140318391
cmp byte [rsi + 0xc4], dil
mov dword [rsi + 0x34], ecx
cmovl r14d, ecx
mov ebx, dword [rbx + 0x58]
and ebx, r14d
cmp ebx, 0x11
jne 0x140318518
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x140318518
mov rbx, qword [rsi]
lea rax, [rbp + 7]
movzx r9d, byte [rsi + 0xc4]
mov rcx, rbx
mov rdx, qword [rsi + 0xf8]
or r8d, 0xffffffff
mov r15d, dword [rsi + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.140371b74
mov r14d, eax
test eax, eax
jne 0x1403184a3
mov rbx, qword [rbp + 7]
mov rdx, rsi
mov rcx, rbx
call fcn.14038d358
mov rdx, rsi
mov rcx, rbx
call fcn.14037edcc
mov rcx, rbx
mov dword [rbx + 0x34], edi
call fcn.140389eb4
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140318426
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x14031843a
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
mov rcx, rsi
call fcn.14038c890
or dword [rsi + 0x30], 0xffffffff
mov byte [rsi + 0xc5], 1
mov dword [rsi + 0x34], edi
mov word [rsi + 0xc2], 0xff02
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x2c], 1
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x50], rdi
cmp byte [rbx + 0x67], dil
jne 0x140318475
test eax, eax
je 0x14031847f
mov edx, eax
mov rcx, rbx
call fcn.1402fd0a4
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14031848e
call qword [0x140519fb0]
test r15d, r15d
js 0x1403181a5
mov byte [rsi + 0xc3], 0xfe
jmp 0x1403181a5
mov r15d, 7
cmp r14d, r15d
jne 0x1403184b6
mov rcx, rbx
call fcn.140372774
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.1403820b8
mov rdx, qword [rsi + 0xa8]
mov rbx, rax
test rdx, rdx
je 0x1403184db
mov rcx, r13
call fcn.140357710
cmp byte [r13 + 0x67], dil
jne 0x140318503
mov rdx, rbx
mov rcx, r13
call fcn.1403579c0
mov edx, r14d
mov qword [rsi + 0xa8], rax
mov rcx, r13
call fcn.1402fd0a4
mov dword [rsi + 0x34], eax
jmp 0x140318516
mov qword [rsi + 0xa8], rdi
mov ebx, r15d
mov dword [rsi + 0x34], r15d
jmp 0x140318518
mov dword [rbx + 0x50], eax
mov ebx, eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140318527
call qword [0x140519fb0]
mov r13d, dword [rbp + 0x77]
mov r15, qword [rbp + 0x67]
cmp ebx, 0x64
jne 0x1403186fb
xor edx, edx
mov rcx, rsi
call fcn.1402f532c
mov r12, rax
mov qword [rbp - 0x31], rax
mov r14d, edi
mov dword [rbp + 0x77], edi
cmp qword [r15 + 0x58], rdi
je 0x140318569
mov edx, dword [r15 + 0x30]
mov rcx, rsi
inc edx
call fcn.1402f4db8
mov r14d, eax
mov dword [rbp + 0x77], eax
mov rbx, rdi
mov r15d, edi
mov qword [rbp - 0x41], rbx
test r13d, r13d
jne 0x1403186fb
mov rax, qword [rbp + 0x67]
cmp r15d, dword [rax + 0x30]
jge 0x1403186ea
mov rax, qword [rax + 0x40]
cmp byte [rbx + rax], dil
jne 0x1403186d7
lea edx, [r15 + 1]
mov rcx, rsi
call fcn.1402f5360
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x49], rdi
mov qword [rsp + 0x20], rcx
or r9d, 0xffffffff
mov rcx, qword [rbp + 0x67]
mov r8, rax
mov edx, r14d
mov rcx, qword [rcx + 0x48]
call fcn.14036294c
mov r13d, eax
test eax, eax
jne 0x1403186ba
mov esi, dword [rbp + 0x77]
jmp 0x1403185dc
mov r12, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x35]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x55], edi
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x55]
mov rax, qword [rbp - 9]
lea rdx, [rbp - 0x11]
mov dword [rbp - 0x35], edi
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x59], edi
call qword [rax + 0x28]
mov r13d, eax
test eax, eax
jne 0x1403186ae
mov eax, dword [rbp - 0x59]
xor r9d, r9d
mov r13d, dword [rbp - 0x55]
mov r8d, esi
mov rcx, qword [rbp - 0x11]
mov edx, r13d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r12
call fcn.14030dc00
xor qword [rbp - 0x51], rax
mov r14d, 1
mov rax, qword [rbp + 0x67]
mov r12d, dword [rax + 0x1e8]
cmp r12d, r14d
jle 0x1403185d8
mov rbx, qword [rax + 0x1f0]
mov edi, dword [rbp - 0x59]
add rbx, 0x28
cmp dword [rbx], r13d
jg 0x14031869b
mov rax, qword [rbp - 0x31]
mov r9d, r14d
mov edx, dword [rbx]
mov r8d, esi
mov rcx, qword [rbp - 0x11]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.14030dc00
xor qword [rbp - 0x51], rax
inc r14d
add rbx, 0x28
cmp r14d, r12d
jl 0x14031866f
xor edi, edi
jmp 0x1403185d8
mov rsi, qword [rbp + 0xf]
mov rbx, qword [rbp - 0x41]
mov r14d, dword [rbp + 0x77]
cmp qword [rbp - 0x49], rdi
je 0x1403186cb
mov rax, qword [rbp - 9]
mov rcx, qword [rbp - 0x49]
call qword [rax + 0x20]
cmp r13d, 0x65
cmove r13d, edi
mov dword [rbp + 0x7f], r13d
inc rbx
inc r15d
mov qword [rbp - 0x41], rbx
test r13d, r13d
je 0x14031857c
mov r15, qword [rbp + 0x67]
mov dword [rbp + 0x77], r13d
test r13d, r13d
je 0x140318146
test rsi, rsi
je 0x14031876a
mov rbx, qword [rsi]
test rbx, rbx
jne 0x140318723
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rbx + 0x15]
call fcn.1402e3db0
mov ecx, 0x15022
call fcn.140372488
jmp 0x14031876a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140318732
call qword [0x140519fa0]
cmp qword [rsi + 0xb8], rdi
jle 0x140318746
mov rdx, rsi
mov rcx, rbx
call fcn.1403367b0
mov rcx, rsi
call fcn.140389eb4
cmp byte [rbx + 0x67], dil
jne 0x140318758
test eax, eax
je 0x140318762
mov edx, eax
mov rcx, rbx
call fcn.1402fd0a4
mov rcx, rbx
call fcn.140371220
mov rax, qword [rbp - 0x51]
cmp qword [rbp - 0x21], rax
mov rax, qword [rbp + 0x6f]
sete dil
mov dword [rax], edi
mov eax, r13d
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret