Function at 0x140211934
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.1402189f0
mov dword [rbp + 0x77], eax
mov r13d, eax
mov dword [rbp + 0x7f], eax
test eax, eax
jne 0x14021253a
mov rsi, qword [rbp - 0x19]
lea edx, [rdi + 1]
movsxd r8, dword [r15 + 0x208]
mov rcx, rsi
mov qword [rbp - 0x41], rsi
call fcn.1401f3974
movsxd r8, dword [r15 + 0x1e8]
lea edx, [rdi + 2]
mov rcx, rsi
call fcn.1401f3974
mov r12d, edi
test rsi, rsi
jne 0x1402119cc
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1401e0be4
jmp 0x1402119ef
cmp qword [rsi], rdi
jne 0x1402119e9
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1401e0be4
mov eax, 1
jmp 0x1402119eb
mov eax, edi
test eax, eax
je 0x140211a00
mov ecx, 0x152cc
call fcn.14026c038
mov ebx, eax
jmp 0x140211d9a
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140211a12
call qword [0x1403c8f80]
mov al, byte [rsi + 0xc5]
mov rbx, qword [rsi]
cmp al, 2
je 0x140211b4e
jmp 0x140211ab0
cmp al, 3
jne 0x140211b4e
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140211a42
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x140211a56
mov rdx, rsi
mov rcx, r14
call fcn.140230578
mov rcx, rsi
call fcn.140286440
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 0x140211a91
test eax, eax
je 0x140211a9b
mov edx, eax
mov rcx, r14
call fcn.1401f6e68
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140211aaa
call qword [0x1403c8f90]
mov al, byte [rsi + 0xc5]
cmp al, 1
jne 0x140211a28
test byte [rsi + 0xc8], 3
je 0x140211aeb
mov r14d, 1
mov dword [rsi + 0x34], 0x11
cmp byte [rsi + 0xc4], dil
jge 0x140211bfe
mov rcx, rsi
call fcn.1402870e4
mov r14d, eax
jmp 0x140211bfe
cmp dword [rbx + 0xd8], edi
jne 0x140211af9
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x140211b20
cmp byte [rbx + 0xc5], dil
jne 0x140211b20
cmp qword [rsi + 0xf8], rdi
je 0x140211b20
mov rcx, qword [rbx]
lea rdx, [rsi + 0xb8]
call fcn.14026c6d4
inc dword [rbx + 0xd8]
test byte [rsi + 0xc8], 0x40
jne 0x140211b35
inc dword [rbx + 0xe0]
test byte [rsi + 0xc8], 0x80
je 0x140211b44
inc dword [rbx + 0xdc]
mov dword [rsi + 0x30], edi
mov byte [rsi + 0xc5], 2
test byte [rsi + 0xc8], 0xc
mov rcx, rsi
je 0x140211b61
call fcn.1402842e8
jmp 0x140211b72
inc dword [rbx + 0xe4]
call fcn.14027c90c
dec dword [rbx + 0xe4]
mov r14d, eax
mov eax, 0x64
cmp r14d, eax
je 0x140211d7e
cmp qword [rsi + 0xb8], rdi
jle 0x140211b97
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
cmp r14d, 0x65
jne 0x140211bba
cmp byte [rbx + 0x65], dil
je 0x140211bce
mov rcx, rbx
call fcn.140200e78
mov dword [rsi + 0x34], eax
test eax, eax
je 0x140211bce
mov r14d, 1
jmp 0x140211bce
cmp byte [rsi + 0xc4], dil
jge 0x140211bce
mov rcx, rsi
call fcn.1402870e4
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x140211be2
test edx, edx
je 0x140211bfe
call fcn.1401f6e68
mov ecx, 7
cmp eax, ecx
jne 0x140211bfe
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 0x140211d83
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x140211d83
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.14026b738
mov ebx, eax
test eax, eax
jne 0x140211d0f
mov rbx, qword [rbp - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.140286f08
mov rdx, rsi
mov rcx, rbx
call fcn.14027897c
mov rcx, rbx
mov dword [rbx + 0x34], edi
call fcn.140283a64
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140211c92
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x140211ca6
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
mov rcx, rsi
call fcn.140286440
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 0x140211ce1
test eax, eax
je 0x140211ceb
mov edx, eax
mov rcx, rbx
call fcn.1401f6e68
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140211cfa
call qword [0x1403c8f90]
test r15d, r15d
js 0x140211a12
mov byte [rsi + 0xc3], 0xfe
jmp 0x140211a12
cmp ebx, 7
jne 0x140211d1c
mov rcx, r14
call fcn.14026c324
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.14027bc68
mov rdx, qword [rsi + 0xa8]
mov r14, rax
test rdx, rdx
je 0x140211d41
mov rcx, r13
call fcn.1402514c0
cmp byte [r13 + 0x67], dil
jne 0x140211d68
mov rdx, r14
mov rcx, r13
call fcn.140251770
mov edx, ebx
mov qword [rsi + 0xa8], rax
mov rcx, r13
call fcn.1401f6e68
mov dword [rsi + 0x34], eax
jmp 0x140211d81
mov r14d, 7
mov qword [rsi + 0xa8], rdi
mov ebx, r14d
mov dword [rsi + 0x34], r14d
jmp 0x140211d83
mov dword [rbx + 0x50], eax
mov ebx, eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140211d92
call qword [0x1403c8f90]
mov r13d, dword [rbp + 0x77]
mov r15, qword [rbp + 0x67]
cmp ebx, 0x64
jne 0x140211df4
xor edx, edx
mov rcx, rsi
call fcn.1401d9894
mov r14d, eax
mov ebx, edi
cmp dword [r15 + 0x1e8], edi
jle 0x140211deb
mov rsi, qword [rbp - 0x21]
lea r9, [rbp + 0x7f]
mov r8d, ebx
mov edx, r14d
mov rcx, r15
call fcn.140207a28
xor rsi, rax
inc ebx
cmp ebx, dword [r15 + 0x1e8]
jl 0x140211dbb
mov r13d, dword [rbp + 0x7f]
mov qword [rbp - 0x21], rsi
mov rsi, qword [rbp - 0x41]
mov dword [rbp + 0x77], r13d
test r13d, r13d
je 0x1402119b3
test rsi, rsi
jne 0x140211e00
mov esi, edi
jmp 0x140211e80
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140211e12
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x140211e26
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
mov rcx, rsi
call fcn.140286440
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 0x140211e65
test eax, eax
jne 0x140211e65
mov esi, edi
jmp 0x140211e71
mov edx, eax
mov rcx, rbx
call fcn.1401f6e68
mov esi, eax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140211e80
call qword [0x1403c8f90]
test r13d, r13d
jne 0x14021253a
mov r13d, esi
test esi, esi
jne 0x14021253a
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.1401f152c
mov rbx, rax
test rax, rax
jne 0x140211eca
lea r13d, [rax + 7]
jmp 0x1402124cb
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.14026b738
mov rcx, rbx
mov dword [rbp + 0x77], eax
mov r13d, eax
call fcn.1401f1d34
mov rsi, qword [rbp - 0x29]
mov dword [rbp + 0x7f], r13d
test r13d, r13d
jne 0x1402124cb
mov qword [rbp + 0xf], rsi
mov r12d, edi
test rsi, rsi
jne 0x140211f2f
lea rdx, str.API_called_with_NULL_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1401e0be4
jmp 0x140211f52
cmp qword [rsi], rdi
jne 0x140211f4c
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1401e0be4
mov eax, 1
jmp 0x140211f4e
mov eax, edi
test eax, eax
je 0x140211f63
mov ecx, 0x152cc
call fcn.14026c038
mov ebx, eax
jmp 0x1402122ff
mov r13, qword [rsi]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140211f75
call qword [0x1403c8f80]
mov al, byte [rsi + 0xc5]
mov rbx, qword [rsi]
cmp al, 2
je 0x1402120b1
jmp 0x140212013
cmp al, 3
jne 0x1402120b1
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140211fa5
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x140211fb9
mov rdx, rsi
mov rcx, r14
call fcn.140230578
mov rcx, rsi
call fcn.140286440
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 0x140211ff4
test eax, eax
je 0x140211ffe
mov edx, eax
mov rcx, r14
call fcn.1401f6e68
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x14021200d
call qword [0x1403c8f90]
mov al, byte [rsi + 0xc5]
cmp al, 1
jne 0x140211f8b
test byte [rsi + 0xc8], 3
je 0x14021204e
mov r14d, 1
mov dword [rsi + 0x34], 0x11
cmp byte [rsi + 0xc4], dil
jge 0x140212161
mov rcx, rsi
call fcn.1402870e4
mov r14d, eax
jmp 0x140212161
cmp dword [rbx + 0xd8], edi
jne 0x14021205c
mov dword [rbx + 0x198], edi
test byte [rbx + 0x6e], 0x82
je 0x140212083
cmp byte [rbx + 0xc5], dil
jne 0x140212083
cmp qword [rsi + 0xf8], rdi
je 0x140212083
mov rcx, qword [rbx]
lea rdx, [rsi + 0xb8]
call fcn.14026c6d4
inc dword [rbx + 0xd8]
test byte [rsi + 0xc8], 0x40
jne 0x140212098
inc dword [rbx + 0xe0]
test byte [rsi + 0xc8], 0x80
je 0x1402120a7
inc dword [rbx + 0xdc]
mov dword [rsi + 0x30], edi
mov byte [rsi + 0xc5], 2
test byte [rsi + 0xc8], 0xc
mov rcx, rsi
je 0x1402120c4
call fcn.1402842e8
jmp 0x1402120d5
inc dword [rbx + 0xe4]
call fcn.14027c90c
dec dword [rbx + 0xe4]
mov r14d, eax
mov eax, 0x64
cmp r14d, eax
je 0x1402122e3
cmp qword [rsi + 0xb8], rdi
jle 0x1402120fa
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
cmp r14d, 0x65
jne 0x14021211d
cmp byte [rbx + 0x65], dil
je 0x140212131
mov rcx, rbx
call fcn.140200e78
mov dword [rsi + 0x34], eax
test eax, eax
je 0x140212131
mov r14d, 1
jmp 0x140212131
cmp byte [rsi + 0xc4], dil
jge 0x140212131
mov rcx, rsi
call fcn.1402870e4
mov r14d, eax
mov dword [rbx + 0x50], r14d
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x140212145
test edx, edx
je 0x140212161
call fcn.1401f6e68
mov ecx, 7
cmp eax, ecx
jne 0x140212161
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 0x1402122e8
mov eax, r12d
inc r12d
cmp eax, 0x32
jge 0x1402122e8
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.14026b738
mov r14d, eax
test eax, eax
jne 0x140212273
mov rbx, qword [rbp + 7]
mov rdx, rsi
mov rcx, rbx
call fcn.140286f08
mov rdx, rsi
mov rcx, rbx
call fcn.14027897c
mov rcx, rbx
mov dword [rbx + 0x34], edi
call fcn.140283a64
mov rbx, qword [rsi]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402121f6
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x14021220a
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
mov rcx, rsi
call fcn.140286440
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 0x140212245
test eax, eax
je 0x14021224f
mov edx, eax
mov rcx, rbx
call fcn.1401f6e68
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14021225e
call qword [0x1403c8f90]
test r15d, r15d
js 0x140211f75
mov byte [rsi + 0xc3], 0xfe
jmp 0x140211f75
mov r15d, 7
cmp r14d, r15d
jne 0x140212286
mov rcx, rbx
call fcn.14026c324
mov rcx, qword [r13 + 0x190]
mov dl, 1
call fcn.14027bc68
mov rdx, qword [rsi + 0xa8]
mov rbx, rax
test rdx, rdx
je 0x1402122ab
mov rcx, r13
call fcn.1402514c0
cmp byte [r13 + 0x67], dil
jne 0x1402122d3
mov rdx, rbx
mov rcx, r13
call fcn.140251770
mov edx, r14d
mov qword [rsi + 0xa8], rax
mov rcx, r13
call fcn.1401f6e68
mov dword [rsi + 0x34], eax
jmp 0x1402122e6
mov qword [rsi + 0xa8], rdi
mov ebx, r15d
mov dword [rsi + 0x34], r15d
jmp 0x1402122e8
mov dword [rbx + 0x50], eax
mov ebx, eax
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1402122f7
call qword [0x1403c8f90]
mov r13d, dword [rbp + 0x77]
mov r15, qword [rbp + 0x67]
cmp ebx, 0x64
jne 0x1402124cb
xor edx, edx
mov rcx, rsi
call fcn.1401d98c8
mov r12, rax
mov qword [rbp - 0x31], rax
mov r14d, edi
mov dword [rbp + 0x77], edi
cmp qword [r15 + 0x58], rdi
je 0x140212339
mov edx, dword [r15 + 0x30]
mov rcx, rsi
inc edx
call fcn.1401d9894
mov r14d, eax
mov dword [rbp + 0x77], eax
mov rbx, rdi
mov r15d, edi
mov qword [rbp - 0x41], rbx
test r13d, r13d
jne 0x1402124cb
mov rax, qword [rbp + 0x67]
cmp r15d, dword [rax + 0x30]
jge 0x1402124ba
mov rax, qword [rax + 0x40]
cmp byte [rbx + rax], dil
jne 0x1402124a7
lea edx, [r15 + 1]
mov rcx, rsi
call fcn.1401d98fc
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.14025c6fc
mov r13d, eax
test eax, eax
jne 0x14021248a
mov esi, dword [rbp + 0x77]
jmp 0x1402123ac
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 0x14021247e
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.1402079d0
xor qword [rbp - 0x51], rax
mov r14d, 1
mov rax, qword [rbp + 0x67]
mov r12d, dword [rax + 0x1e8]
cmp r12d, r14d
jle 0x1402123a8
mov rbx, qword [rax + 0x1f0]
mov edi, dword [rbp - 0x59]
add rbx, 0x28
cmp dword [rbx], r13d
jg 0x14021246b
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.1402079d0
xor qword [rbp - 0x51], rax
inc r14d
add rbx, 0x28
cmp r14d, r12d
jl 0x14021243f
xor edi, edi
jmp 0x1402123a8
mov rsi, qword [rbp + 0xf]
mov rbx, qword [rbp - 0x41]
mov r14d, dword [rbp + 0x77]
cmp qword [rbp - 0x49], rdi
je 0x14021249b
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 0x14021234c
mov r15, qword [rbp + 0x67]
mov dword [rbp + 0x77], r13d
test r13d, r13d
je 0x140211f16
test rsi, rsi
je 0x14021253a
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1402124f3
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rbx + 0x15]
call fcn.1401e0be4
mov ecx, 0x15022
call fcn.14026c038
jmp 0x14021253a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140212502
call qword [0x1403c8f80]
cmp qword [rsi + 0xb8], rdi
jle 0x140212516
mov rdx, rsi
mov rcx, rbx
call fcn.140230578
mov rcx, rsi
call fcn.140283a64
cmp byte [rbx + 0x67], dil
jne 0x140212528
test eax, eax
je 0x140212532
mov edx, eax
mov rcx, rbx
call fcn.1401f6e68
mov rcx, rbx
call fcn.14026ade4
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