Function at 0x140253f54
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, 0xa8
xor edi, edi
lea r8, [rbp - 0x49]
xor r9d, r9d
mov qword [rbp - 0x11], rdi
mov r13, rcx
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x49], rdi
lea edx, [rdi + 0x1b]
call fcn.14025b050
mov dword [rbp + 0x77], eax
mov r15d, eax
mov dword [rbp + 0x7f], eax
mov ebx, eax
lea r12d, [rdi + 7]
test eax, eax
jne 0x1402544a3
mov rsi, qword [rbp - 0x49]
lea edx, [rdi + 1]
movsxd r8, dword [r13 + 0x208]
mov rcx, rsi
call fcn.140235230
movsxd r8, dword [r13 + 0x1e8]
lea edx, [rdi + 2]
mov rcx, rsi
call fcn.140235230
mov r12d, edi
test rsi, rsi
jne 0x140253fee
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1402220fc
jmp 0x140254011
cmp qword [rsi], rdi
jne 0x14025400b
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1402220fc
mov eax, 1
jmp 0x14025400d
mov eax, edi
test eax, eax
je 0x140254022
mov ecx, 0x14f40
call fcn.1402ae464
mov ebx, eax
jmp 0x1402543ab
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140254034
call qword [0x1404267d0]
mov byte [rsi + 0xcd], dil
cmp dword [rsi + 0x24], 0x2df20da3
je 0x1402540be
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140254056
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x14025406a
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c8650
or dword [rsi + 0x34], 0xffffffff
mov dword [rsi + 0x24], 0x2df20da3
mov dword [rsi + 0x38], edi
mov word [rsi + 0xca], 0xff02
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x48], edi
mov qword [rsi + 0x58], rdi
cmp byte [rbx + 0x67], dil
jne 0x1402540a5
test eax, eax
je 0x1402540af
mov edx, eax
mov rcx, rbx
call fcn.140239520
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402540be
call qword [0x1404267e0]
mov rbx, qword [rsi]
cmp byte [rbx + 0x67], dil
jne 0x140254387
cmp dword [rsi + 0x34], edi
jge 0x140254166
test byte [rsi + 0xd0], 3
je 0x140254107
mov r14d, 1
mov dword [rsi + 0x38], 0x11
cmp byte [rsi + 0xcc], dil
jge 0x14025420d
mov rcx, rsi
call fcn.1402c9370
mov r14d, eax
jmp 0x14025420d
cmp dword [rbx + 0xd8], edi
jne 0x140254115
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x14025413c
cmp byte [rbx + 0xc5], dil
jne 0x14025413c
cmp qword [rsi + 0x100], rdi
je 0x14025413c
mov rcx, qword [rbx]
lea rdx, [rsi + 0xc0]
call fcn.1402aeb7c
inc dword [rbx + 0xd8]
test byte [rsi + 0xd0], 0x80
jne 0x140254151
inc dword [rbx + 0xe0]
test dword [rsi + 0xd0], 0x100
je 0x140254163
inc dword [rbx + 0xdc]
mov dword [rsi + 0x34], edi
test byte [rsi + 0xd0], 0xc
mov rcx, rsi
je 0x140254179
call fcn.1402c6590
jmp 0x14025418a
inc dword [rbx + 0xe4]
call fcn.1402be810
dec dword [rbx + 0xe4]
mov r14d, eax
cmp eax, 0x64
je 0x1402541dd
cmp qword [rsi + 0xc0], rdi
jle 0x1402541a6
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
cmp r14d, 0x65
jne 0x1402541c9
cmp byte [rbx + 0x65], dil
je 0x1402541dd
mov rcx, rbx
call fcn.140243504
mov dword [rsi + 0x38], eax
test eax, eax
je 0x1402541dd
mov r14d, 1
jmp 0x1402541dd
cmp byte [rsi + 0xcc], dil
jge 0x1402541dd
mov rcx, rsi
call fcn.1402c9370
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x38]
cmp byte [rcx + 0x67], dil
jne 0x1402541f1
test edx, edx
je 0x14025420d
call fcn.140239520
mov ecx, 7
cmp eax, ecx
jne 0x14025420d
cmp byte [rsi + 0xcc], dil
mov dword [rsi + 0x38], ecx
cmovl r14d, ecx
mov ebx, dword [rbx + 0x58]
and ebx, r14d
cmp ebx, 0x11
jne 0x140254394
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x140254394
mov rbx, qword [rsi]
lea rax, [rbp - 0x29]
movzx r9d, byte [rsi + 0xcc]
mov rcx, rbx
mov rdx, qword [rsi + 0x100]
or r8d, 0xffffffff
mov r15d, dword [rsi + 0x34]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1402adb64
mov r14d, eax
test eax, eax
jne 0x14025431f
mov rbx, qword [rbp - 0x29]
mov rdx, rsi
mov rcx, rbx
call fcn.1402c917c
mov rdx, rsi
mov rcx, rbx
call fcn.1402ba6a8
mov rcx, rbx
mov dword [rbx + 0x38], edi
call fcn.1402c5d20
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402542a2
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x1402542b6
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c8650
or dword [rsi + 0x34], 0xffffffff
mov dword [rsi + 0x24], 0x2df20da3
mov dword [rsi + 0x38], edi
mov word [rsi + 0xca], 0xff02
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x48], edi
mov qword [rsi + 0x58], rdi
cmp byte [rbx + 0x67], dil
jne 0x1402542f1
test eax, eax
je 0x1402542fb
mov edx, eax
mov rcx, rbx
call fcn.140239520
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14025430a
call qword [0x1404267e0]
test r15d, r15d
js 0x14025403b
mov byte [rsi + 0xcd], 1
jmp 0x14025403b
mov eax, 7
cmp r14d, eax
jne 0x140254331
mov rcx, rbx
call fcn.1402ae7cc
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.1402bdb10
mov rdx, qword [rsi + 0xb0]
mov rbx, rax
test rdx, rdx
je 0x140254356
mov rcx, r13
call fcn.1402938ec
cmp byte [r13 + 0x67], dil
jne 0x140254380
mov rdx, rbx
mov rcx, r13
call fcn.140293b9c
mov edx, r14d
mov qword [rsi + 0xb0], rax
mov rcx, r13
call fcn.140239520
mov ebx, eax
mov dword [rsi + 0x38], eax
jmp 0x140254394
mov qword [rsi + 0xb0], rdi
mov r14d, 7
mov ebx, r14d
mov dword [rsi + 0x38], r14d
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1402543a3
call qword [0x1404267e0]
mov r15d, dword [rbp + 0x77]
mov r13, qword [rbp + 0x67]
cmp ebx, 0x64
jne 0x140254405
xor edx, edx
mov rcx, rsi
call fcn.140235cfc
mov r14d, eax
mov ebx, edi
cmp dword [r13 + 0x1e8], edi
jle 0x1402543fc
mov rsi, qword [rbp - 0x11]
lea r9, [rbp + 0x7f]
mov r8d, ebx
mov edx, r14d
mov rcx, r13
call fcn.14024a000
xor rsi, rax
inc ebx
cmp ebx, dword [r13 + 0x1e8]
jl 0x1402543cc
mov r15d, dword [rbp + 0x7f]
mov qword [rbp - 0x11], rsi
mov rsi, qword [rbp - 0x49]
mov dword [rbp + 0x77], r15d
test r15d, r15d
je 0x140253fd5
test rsi, rsi
jne 0x140254411
mov ebx, edi
jmp 0x140254491
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140254423
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x140254437
mov rdx, rsi
mov rcx, r14
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c8650
or dword [rsi + 0x34], 0xffffffff
mov dword [rsi + 0x24], 0x2df20da3
mov dword [rsi + 0x38], edi
mov word [rsi + 0xca], 0xff02
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x48], edi
mov qword [rsi + 0x58], rdi
cmp byte [r14 + 0x67], dil
jne 0x140254476
test eax, eax
jne 0x140254476
mov ebx, edi
jmp 0x140254482
mov edx, eax
mov rcx, r14
call fcn.140239520
mov ebx, eax
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140254491
call qword [0x1404267e0]
test r15d, r15d
jne 0x140254b3a
mov r14d, ebx
lea r12d, [r15 + 7]
jmp 0x1402544a7
mov r14d, dword [rbp + 0x77]
test ebx, ebx
jne 0x140254b3e
mov rax, qword [r13 + 0x48]
lea rcx, str.SELECT__s
mov rdx, qword [r13 + 0x1b8]
mov rsi, rdi
mov qword [rbp - 0x49], rdi
mov rax, qword [rax]
mov qword [rbp - 1], rax
call fcn.1402332c8
mov rbx, rax
test rax, rax
jne 0x1402544e4
mov r14d, r12d
jmp 0x140254ac9
mov rcx, qword [r13 + 0x18]
lea rax, [rbp - 0x49]
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.1402adb64
mov rcx, rbx
mov dword [rbp + 0x77], eax
mov r13d, eax
call fcn.14023352c
mov rsi, qword [rbp - 0x49]
test r13d, r13d
jne 0x140254ac5
mov r12d, edi
test rsi, rsi
jne 0x140254541
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1402220fc
jmp 0x140254564
cmp qword [rsi], rdi
jne 0x14025455e
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1402220fc
mov eax, 1
jmp 0x140254560
mov eax, edi
test eax, eax
je 0x140254575
mov ecx, 0x14f40
call fcn.1402ae464
mov ebx, eax
jmp 0x1402548fc
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140254587
call qword [0x1404267d0]
mov byte [rsi + 0xcd], dil
cmp dword [rsi + 0x24], 0x2df20da3
je 0x140254611
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402545a9
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x1402545bd
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c8650
or dword [rsi + 0x34], 0xffffffff
mov dword [rsi + 0x24], 0x2df20da3
mov dword [rsi + 0x38], edi
mov word [rsi + 0xca], 0xff02
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x48], edi
mov qword [rsi + 0x58], rdi
cmp byte [rbx + 0x67], dil
jne 0x1402545f8
test eax, eax
je 0x140254602
mov edx, eax
mov rcx, rbx
call fcn.140239520
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140254611
call qword [0x1404267e0]
mov rbx, qword [rsi]
cmp byte [rbx + 0x67], dil
jne 0x1402548df
cmp dword [rsi + 0x34], edi
jge 0x1402546b9
test byte [rsi + 0xd0], 3
je 0x14025465a
mov r14d, 1
mov dword [rsi + 0x38], 0x11
cmp byte [rsi + 0xcc], dil
jge 0x140254760
mov rcx, rsi
call fcn.1402c9370
mov r14d, eax
jmp 0x140254760
cmp dword [rbx + 0xd8], edi
jne 0x140254668
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x14025468f
cmp byte [rbx + 0xc5], dil
jne 0x14025468f
cmp qword [rsi + 0x100], rdi
je 0x14025468f
mov rcx, qword [rbx]
lea rdx, [rsi + 0xc0]
call fcn.1402aeb7c
inc dword [rbx + 0xd8]
test byte [rsi + 0xd0], 0x80
jne 0x1402546a4
inc dword [rbx + 0xe0]
test dword [rsi + 0xd0], 0x100
je 0x1402546b6
inc dword [rbx + 0xdc]
mov dword [rsi + 0x34], edi
test byte [rsi + 0xd0], 0xc
mov rcx, rsi
je 0x1402546cc
call fcn.1402c6590
jmp 0x1402546dd
inc dword [rbx + 0xe4]
call fcn.1402be810
dec dword [rbx + 0xe4]
mov r14d, eax
cmp eax, 0x64
je 0x140254730
cmp qword [rsi + 0xc0], rdi
jle 0x1402546f9
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
cmp r14d, 0x65
jne 0x14025471c
cmp byte [rbx + 0x65], dil
je 0x140254730
mov rcx, rbx
call fcn.140243504
mov dword [rsi + 0x38], eax
test eax, eax
je 0x140254730
mov r14d, 1
jmp 0x140254730
cmp byte [rsi + 0xcc], dil
jge 0x140254730
mov rcx, rsi
call fcn.1402c9370
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x38]
cmp byte [rcx + 0x67], dil
jne 0x140254744
test edx, edx
je 0x140254760
call fcn.140239520
mov ecx, 7
cmp eax, ecx
jne 0x140254760
cmp byte [rsi + 0xcc], dil
mov dword [rsi + 0x38], ecx
cmovl r14d, ecx
mov ebx, dword [rbx + 0x58]
and ebx, r14d
cmp ebx, 0x11
jne 0x1402548e9
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x1402548e9
mov rbx, qword [rsi]
lea rax, [rbp + 7]
movzx r9d, byte [rsi + 0xcc]
mov rcx, rbx
mov rdx, qword [rsi + 0x100]
or r8d, 0xffffffff
mov r15d, dword [rsi + 0x34]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1402adb64
mov r14d, eax
test eax, eax
jne 0x140254872
mov rbx, qword [rbp + 7]
mov rdx, rsi
mov rcx, rbx
call fcn.1402c917c
mov rdx, rsi
mov rcx, rbx
call fcn.1402ba6a8
mov rcx, rbx
mov dword [rbx + 0x38], edi
call fcn.1402c5d20
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402547f5
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x140254809
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c8650
or dword [rsi + 0x34], 0xffffffff
mov dword [rsi + 0x24], 0x2df20da3
mov dword [rsi + 0x38], edi
mov word [rsi + 0xca], 0xff02
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x48], edi
mov qword [rsi + 0x58], rdi
cmp byte [rbx + 0x67], dil
jne 0x140254844
test eax, eax
je 0x14025484e
mov edx, eax
mov rcx, rbx
call fcn.140239520
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14025485d
call qword [0x1404267e0]
test r15d, r15d
js 0x14025458e
mov byte [rsi + 0xcd], 1
jmp 0x14025458e
mov r15d, 7
cmp r14d, r15d
jne 0x140254885
mov rcx, rbx
call fcn.1402ae7cc
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.1402bdb10
mov rdx, qword [rsi + 0xb0]
mov rbx, rax
test rdx, rdx
je 0x1402548aa
mov rcx, r13
call fcn.1402938ec
cmp byte [r13 + 0x67], dil
jne 0x1402548cf
mov rdx, rbx
mov rcx, r13
call fcn.140293b9c
mov edx, r14d
mov qword [rsi + 0xb0], rax
mov rcx, r13
call fcn.140239520
jmp 0x1402548e4
mov qword [rsi + 0xb0], rdi
mov ebx, r15d
mov dword [rsi + 0x38], r15d
jmp 0x1402548e9
mov eax, 7
mov ebx, eax
mov dword [rsi + 0x38], eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1402548f8
call qword [0x1404267e0]
mov r13d, dword [rbp + 0x77]
cmp ebx, 0x64
jne 0x140254ac5
xor edx, edx
mov rcx, rsi
call fcn.140235d30
mov r12, rax
mov qword [rbp - 0x19], rax
mov rax, qword [rbp + 0x67]
mov r14d, edi
mov dword [rbp + 0x7f], edi
cmp qword [rax + 0x58], rdi
je 0x14025493d
mov edx, dword [rax + 0x30]
mov rcx, rsi
inc edx
call fcn.140235cfc
mov r14d, eax
mov dword [rbp + 0x7f], eax
mov rax, qword [rbp + 0x67]
mov rbx, rdi
mov r15d, edi
mov qword [rbp - 0x29], rbx
test r13d, r13d
jne 0x140254ac5
cmp r15d, dword [rax + 0x30]
jge 0x14025451f
mov rax, qword [rax + 0x40]
cmp byte [rbx + rax], dil
jne 0x140254aa9
lea edx, [r15 + 1]
mov rcx, rsi
call fcn.140235d64
lea rcx, [rbp - 0x31]
mov qword [rbp - 0x31], 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.14029eb4c
mov r13d, eax
test eax, eax
jne 0x140254a8c
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x1d]
lea rax, [rbp - 0x21]
mov dword [rbp - 0x3d], edi
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x3d]
mov rax, qword [rbp - 1]
lea rdx, [rbp - 9]
mov dword [rbp - 0x1d], edi
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x41], edi
call qword [rax + 0x28]
mov dword [rbp + 0x77], eax
mov r13d, eax
test eax, eax
jne 0x140254a7b
mov esi, dword [rbp - 0x41]
xor r9d, r9d
mov r13d, dword [rbp - 0x3d]
mov r8d, r14d
mov rcx, qword [rbp - 9]
mov edx, r13d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r12
call fcn.140249fa8
xor qword [rbp - 0x39], rax
mov r14d, 1
mov rax, qword [rbp + 0x67]
mov r12d, dword [rax + 0x1e8]
cmp r12d, r14d
jle 0x140254a6f
mov rbx, qword [rax + 0x1f0]
mov edi, dword [rbp + 0x7f]
add rbx, 0x28
cmp dword [rbx], r13d
jg 0x140254a61
mov rax, qword [rbp - 0x19]
mov r9d, r14d
mov edx, dword [rbx]
mov r8d, edi
mov rcx, qword [rbp - 9]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.140249fa8
xor qword [rbp - 0x39], rax
inc r14d
add rbx, 0x28
cmp r14d, r12d
jl 0x140254a35
xor edi, edi
mov r13d, dword [rbp + 0x77]
mov r12, qword [rbp - 0x19]
mov r14d, dword [rbp + 0x7f]
test r13d, r13d
je 0x1402549a3
mov rsi, qword [rbp - 0x49]
mov rbx, qword [rbp - 0x29]
cmp qword [rbp - 0x31], rdi
je 0x140254a9d
mov rax, qword [rbp - 1]
mov rcx, qword [rbp - 0x31]
call qword [rax + 0x20]
cmp r13d, 0x65
cmove r13d, edi
mov dword [rbp + 0x77], r13d
mov rax, qword [rbp + 0x67]
inc rbx
inc r15d
mov qword [rbp - 0x29], rbx
test r13d, r13d
je 0x140254950
jmp 0x14025451f
mov r14d, dword [rbp + 0x77]
test rsi, rsi
je 0x140254b3e
mov rbx, qword [rsi]
test rbx, rbx
jne 0x140254af1
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rbx + 0x15]
call fcn.1402220fc
mov ecx, 0x14cac
call fcn.1402ae464
jmp 0x140254b3e
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140254b00
call qword [0x1404267d0]
cmp qword [rsi + 0xc0], rdi
jle 0x140254b14
mov rdx, rsi
mov rcx, rbx
call fcn.140272bdc
mov rcx, rsi
call fcn.1402c5d20
cmp byte [rbx + 0x67], dil
jne 0x140254b26
test eax, eax
je 0x140254b30
mov edx, eax
mov rcx, rbx
call fcn.140239520
mov rcx, rbx
call fcn.1402ad210
jmp 0x140254b3e
mov r14d, dword [rbp + 0x77]
mov rax, qword [rbp - 0x39]
cmp qword [rbp - 0x11], rax
mov rax, qword [rbp + 0x6f]
sete dil
mov dword [rax], edi
mov eax, r14d
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret