Function at 0x180049d90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
xor r12d, r12d
lea r8, [rbp + 0x7f]
xor r9d, r9d
mov qword [rbp - 0x49], r12
mov r13, rcx
mov qword [rbp + 0x7f], r12
mov edi, r12d
mov r15d, r12d
lea edx, [r12 + 0x1b]
call fcn.180052600
mov dword [rbp + 0x77], eax
mov ebx, eax
test eax, eax
jne 0x18004a725
movsxd r8, dword [r13 + 0x208]
lea edx, [rax + 1]
mov qword [rsp + 0xb0], rsi
mov rsi, qword [rbp + 0x7f]
mov rcx, rsi
mov qword [rsp + 0xa8], r14
call fcn.1800fc770
movsxd r8, dword [r13 + 0x1e8]
lea edx, [rbx + 2]
mov rcx, rsi
call fcn.1800fc770
lea rdi, [0x1801233f8]
mov rcx, rsi
call fcn.180101220
cmp eax, 0x64
jne 0x180049f3a
test rsi, rsi
je 0x180049e72
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180049e48
call qword [0x180147110]
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x180049e5e
cmp r12w, word [rsi + 0xc0]
jb 0x180049e75
mov rcx, qword [rsi]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1800a8050
mov rcx, rdi
movzx eax, word [rcx + 8]
test al, 0x24
je 0x180049e82
mov r14, qword [rcx]
jmp 0x180049eab
test al, 8
je 0x180049e94
movsd xmm0, qword [rcx]
call fcn.180033770
mov r14, rax
jmp 0x180049eab
test al, 0x12
je 0x180049ea8
cmp qword [rcx + 0x10], r12
je 0x180049ea8
call fcn.18007fdc0
mov r14, rax
jmp 0x180049eab
mov r14, r12
test rsi, rsi
je 0x180049eea
mov rax, qword [rsi]
cmp byte [rax + 0x61], r12b
jne 0x180049ecb
mov edx, dword [rsi + 0x38]
cmp edx, 0xc0a
je 0x180049ecb
mov ecx, dword [rax + 0x54]
and ecx, edx
jmp 0x180049ed8
mov rcx, rax
call fcn.180026100
mov ecx, eax
mov rax, qword [rsi]
mov dword [rsi + 0x38], ecx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180049eea
call qword [0x180147120]
mov edi, r12d
cmp dword [r13 + 0x1e8], r12d
jle 0x180049f2b
mov rsi, qword [rbp - 0x49]
nop word [rax + rax]
lea r9, [rbp + 0x77]
mov r8d, edi
mov edx, r14d
mov rcx, r13
call fcn.18003d950
xor rsi, rax
inc edi
cmp edi, dword [r13 + 0x1e8]
jl 0x180049f00
mov ebx, dword [rbp + 0x77]
mov qword [rbp - 0x49], rsi
mov rsi, qword [rbp + 0x7f]
lea rdi, [0x1801233f8]
test ebx, ebx
je 0x180049e20
test rsi, rsi
jne 0x180049f47
mov edi, r12d
jmp 0x180049fcd
mov r14, qword [rsi]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x180049f59
call qword [0x180147110]
cmp qword [rsi + 0xb8], r12
jle 0x180049f6d
mov rdx, rsi
mov rcx, r14
call fcn.180079cb0
mov rcx, rsi
call fcn.1800ef720
mov dword [rsi + 0x24], 0x2df20da3
mov edi, eax
mov dword [rsi + 0x34], 0xffffffff
mov qword [rsi + 0x38], r12
mov word [rsi + 0xc2], 0xff02
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x40], r12d
mov qword [rsi + 0x50], r12
cmp byte [r14 + 0x61], r12b
jne 0x180049fb4
cmp eax, 0xc0a
je 0x180049fb4
and edi, dword [r14 + 0x54]
jmp 0x180049fbe
mov rcx, r14
call fcn.180026100
mov edi, eax
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x180049fcd
call qword [0x180147120]
test ebx, ebx
jne 0x18004a711
mov ebx, edi
test edi, edi
jne 0x18004a711
mov rsi, qword [rbp + 0x67]
mov qword [rbp - 9], r12
mov rax, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x1b8]
mov rcx, qword [rax]
mov qword [rbp - 0x21], rcx
lea rcx, str.SELECT__s
call fcn.1801004e0
mov rdi, rax
test rax, rax
jne 0x18004a015
lea ebx, [rax + 7]
jmp 0x18004a711
mov rcx, qword [rsi + 0x18]
lea rax, [rbp - 9]
mov qword [rsp + 0x30], r12
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov r8d, 0xffffffff
mov rdx, rdi
mov qword [rsp + 0x20], r12
call fcn.1800c9e40
cmp dword [0x180147090], r12d
mov ebx, eax
je 0x18004a094
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18004a05d
call qword [0x180147110]
mov rcx, rdi
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rdi
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18004a09d
call qword [0x180147120]
jmp 0x18004a09d
mov rcx, rdi
call qword [0x1801470b8]
mov r13, qword [rbp - 9]
test ebx, ebx
jne 0x18004a562
mov edi, 0x202
nop
mov rcx, r13
call fcn.180101220
cmp eax, 0x64
jne 0x18004a562
test r13, r13
je 0x18004a10d
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18004a0d9
call qword [0x180147110]
mov rcx, qword [r13 + 0xa0]
test rcx, rcx
je 0x18004a0f8
cmp r12w, word [r13 + 0xc0]
jae 0x18004a0f8
lea r14, [0x1801233f8]
jmp 0x18004a117
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1800a8050
lea r14, [0x1801233f8]
mov rcx, r14
movzx eax, word [rcx + 8]
test al, 0x24
je 0x18004a128
mov rax, qword [rcx]
mov qword [rbp - 0x29], rax
jmp 0x18004a154
test al, 8
je 0x18004a13b
movsd xmm0, qword [rcx]
call fcn.180033770
mov qword [rbp - 0x29], rax
jmp 0x18004a154
test al, 0x12
je 0x18004a150
cmp qword [rcx + 0x10], r12
je 0x18004a150
call fcn.18007fdc0
mov qword [rbp - 0x29], rax
jmp 0x18004a154
mov qword [rbp - 0x29], r12
test r13, r13
je 0x18004a197
mov rax, qword [r13]
cmp byte [rax + 0x61], r12b
jne 0x18004a176
mov edx, dword [r13 + 0x38]
cmp edx, 0xc0a
je 0x18004a176
mov ecx, dword [rax + 0x54]
and ecx, edx
jmp 0x18004a184
mov rcx, rax
call fcn.180026100
mov ecx, eax
mov rax, qword [r13]
mov dword [r13 + 0x38], ecx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18004a197
call qword [0x180147120]
mov dword [rbp - 0x39], r12d
cmp qword [rsi + 0x58], r12
je 0x18004a287
mov edi, dword [rsi + 0x30]
inc edi
test r13, r13
je 0x18004a1ff
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18004a1c2
call qword [0x180147110]
mov rdx, qword [r13 + 0xa0]
test rdx, rdx
je 0x18004a1ea
movzx eax, word [r13 + 0xc0]
cmp edi, eax
jge 0x18004a1ea
test edi, edi
js 0x18004a1ea
movsxd rax, edi
imul rcx, rax, 0x38
add rcx, rdx
jmp 0x18004a202
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1800a8050
mov rcx, r14
movzx eax, word [rcx + 8]
test al, 0x24
je 0x18004a213
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
jmp 0x18004a23f
test al, 8
je 0x18004a226
movsd xmm0, qword [rcx]
call fcn.180033770
mov qword [rbp - 0x39], rax
jmp 0x18004a23f
test al, 0x12
je 0x18004a23b
cmp qword [rcx + 0x10], r12
je 0x18004a23b
call fcn.18007fdc0
mov qword [rbp - 0x39], rax
jmp 0x18004a23f
mov qword [rbp - 0x39], r12
test r13, r13
je 0x18004a282
mov rax, qword [r13]
cmp byte [rax + 0x61], r12b
jne 0x18004a261
mov edx, dword [r13 + 0x38]
cmp edx, 0xc0a
je 0x18004a261
mov ecx, dword [rax + 0x54]
and ecx, edx
jmp 0x18004a26f
mov rcx, rax
call fcn.180026100
mov ecx, eax
mov rax, qword [r13]
mov dword [r13 + 0x38], ecx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18004a282
call qword [0x180147120]
mov edi, 0x202
mov rcx, r12
mov r14d, 1
mov qword [rbp + 7], rcx
mov dword [rbp - 0x31], r14d
nop dword [rax + rax]
lea eax, [r14 - 1]
mov dword [rbp - 0x11], eax
cmp eax, dword [rsi + 0x30]
jge 0x18004a0b0
mov rax, qword [rsi + 0x40]
cmp byte [rcx + rax], r12b
jne 0x18004a3f5
test r13, r13
je 0x18004a31a
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18004a2d6
call qword [0x180147110]
mov rdx, qword [r13 + 0xa0]
test rdx, rdx
je 0x18004a305
movzx eax, word [r13 + 0xc0]
cmp r14d, eax
jge 0x18004a305
test r14d, r14d
js 0x18004a305
movsxd rax, r14d
imul rcx, rax, 0x38
add rcx, rdx
jne 0x18004a321
mov rbx, r12
jmp 0x18004a350
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1800a8050
lea rcx, [0x1801233f8]
movzx edx, word [rcx + 8]
movzx eax, dx
and ax, di
cmp ax, di
jne 0x18004a33c
cmp byte [rcx + 0xa], 1
jne 0x18004a33c
mov rbx, qword [rcx + 0x10]
jmp 0x18004a350
test dl, 1
je 0x18004a346
mov rbx, r12
jmp 0x18004a350
mov dl, 1
call fcn.180107610
mov rbx, rax
test r13, r13
je 0x18004a38e
mov rcx, qword [r13]
cmp byte [rcx + 0x61], r12b
jne 0x18004a372
mov edx, dword [r13 + 0x38]
cmp edx, 0xc0a
je 0x18004a372
mov eax, dword [rcx + 0x54]
and eax, edx
jmp 0x18004a37b
call fcn.180026100
mov rcx, qword [r13]
mov dword [r13 + 0x38], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x18004a38e
call qword [0x180147120]
mov rsi, qword [rsi + 0x48]
lea r9, [rbp - 0x41]
mov r8d, 0xffffffff
mov qword [rbp - 0x41], r12
mov rdx, rbx
mov rcx, rsi
mov rdi, qword [rsi]
call qword [rdi + 0x18]
test eax, eax
jne 0x18004a415
mov rcx, qword [rbp - 0x41]
mov qword [rcx], rsi
cmp dword [rdi], 1
jl 0x18004a415
mov edx, dword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
call qword [rdi + 0x30]
mov ebx, eax
test eax, eax
je 0x18004a415
mov rcx, qword [rbp - 0x41]
call qword [rdi + 0x20]
mov rcx, r12
mov qword [rbp - 0x41], r12
mov rdi, qword [rbp - 0x21]
test rcx, rcx
je 0x18004a3e6
call qword [rdi + 0x20]
mov rsi, qword [rbp + 0x67]
cmp ebx, 0x65
mov rcx, qword [rbp + 7]
cmove ebx, r12d
inc r14d
inc rcx
mov dword [rbp - 0x31], r14d
mov qword [rbp + 7], rcx
test ebx, ebx
jne 0x18004a562
mov edi, 0x202
jmp 0x18004a2a0
mov rcx, qword [rbp - 0x41]
mov ebx, eax
mov qword [rbp - 1], rcx
test eax, eax
jne 0x18004a3da
mov rdi, qword [rbp - 0x21]
nop word [rax + rax]
lea rax, [rbp + 0x77]
mov dword [rbp + 0x7f], r12d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x15]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x15], r12d
lea r8, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
mov dword [rbp - 0x19], r12d
mov dword [rbp + 0x77], r12d
call qword [rdi + 0x28]
mov ebx, eax
test eax, eax
jne 0x18004a551
mov rax, qword [rbp - 0x29]
movsxd r13, dword [rbp - 0x11]
movsxd rdx, dword [rbp + 0x77]
mov esi, dword [rbp + 0x7f]
mov r11, qword [rbp + 0xf]
lea r14, [rax + rax*8]
movsxd rax, dword [rbp - 0x39]
add r14, rax
imul rcx, r14, 0x51
add rcx, r13
lea rax, [rdx + rcx*8]
add rcx, rax
test esi, esi
jle 0x18004a4ba
mov rdx, r11
mov r8d, esi
movsx rax, byte [rdx]
lea rcx, [rcx + rcx*8]
add rcx, rax
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18004a4a1
movsxd rdx, dword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
xor r15, rcx
mov rcx, qword [rbp - 1]
mov eax, dword [r8 + 0x1e8]
cmp eax, 1
jle 0x18004a430
mov r10, qword [r8 + 0x1f0]
lea edi, [rax - 1]
add r10, 0x28
mov ebx, 1
movsxd rcx, dword [r10]
cmp ecx, esi
jg 0x18004a537
lea r8, [rbx + r14*8]
mov r9, rcx
add r8, r14
lea rax, [r8*8]
add rax, r13
add r8, rax
lea rax, [rdx + r8*8]
mov rdx, r12
add r8, rax
test ecx, ecx
jle 0x18004a534
nop word [rax + rax]
movsx rcx, byte [rdx + r11]
lea r8, [r8 + r8*8]
add r8, rcx
inc rdx
cmp rdx, r9
jl 0x18004a520
xor r15, r8
movsxd rdx, dword [rbp + 0x77]
inc rbx
add r10, 0x28
sub rdi, 1
jne 0x18004a4e8
mov rcx, qword [rbp - 1]
jmp 0x18004a423
mov r13, qword [rbp - 9]
mov rcx, qword [rbp - 1]
mov r14d, dword [rbp - 0x31]
jmp 0x18004a3de
test r13, r13
je 0x18004a711
mov rsi, qword [r13]
test rsi, rsi
jne 0x18004a5b0
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rsi + 0x15]
call fcn.1801003c0
lea rax, [0x180131c04]
mov r9d, 0x14497
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea ecx, [rsi + 0x15]
call fcn.1801003c0
jmp 0x18004a711
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x18004a5bf
call qword [0x180147110]
cmp qword [r13 + 0xb8], r12
jle 0x18004a5d3
mov rdx, r13
mov rcx, rsi
call fcn.180079cb0
mov eax, dword [r13 + 0x24]
mov r14d, r12d
cmp eax, 0x2df20da3
je 0x18004a5e8
cmp eax, 0x319c2973
jne 0x18004a5f3
mov rcx, r13
call fcn.1800ef720
mov r14d, eax
mov rdi, qword [r13]
mov rdx, r13
mov rcx, rdi
call fcn.1800e2270
mov rdx, qword [r13 + 8]
mov rcx, qword [r13 + 0x10]
test rdx, rdx
je 0x18004a615
mov qword [rdx + 0x10], rcx
jmp 0x18004a619
mov qword [rdi + 8], rcx
mov rcx, qword [r13 + 0x10]
test rcx, rcx
je 0x18004a62a
mov rax, qword [r13 + 8]
mov qword [rcx + 8], rax
mov dword [r13 + 0x24], 0x5606c3c8
mov qword [r13], r12
test rdi, rdi
je 0x18004a697
cmp qword [rdi + 0x2d8], r12
je 0x18004a654
mov rdx, r13
mov rcx, rdi
call fcn.18007fd50
jmp 0x18004a6f2
cmp r13, qword [rdi + 0x1c8]
jae 0x18004a697
cmp r13, qword [rdi + 0x1b8]
jb 0x18004a67a
mov rax, qword [rdi + 0x1b0]
mov qword [r13], rax
mov qword [rdi + 0x1b0], r13
jmp 0x18004a6f2
cmp r13, qword [rdi + 0x1c0]
jb 0x18004a697
mov rax, qword [rdi + 0x1a0]
mov qword [r13], rax
mov qword [rdi + 0x1a0], r13
jmp 0x18004a6f2
cmp dword [0x180147090], r12d
je 0x18004a6e9
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18004a6b2
call qword [0x180147110]
mov rcx, r13
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, r13
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x18004a6f2
call qword [0x180147120]
jmp 0x18004a6f2
mov rcx, r13
call qword [0x1801470b8]
cmp byte [rsi + 0x61], r12b
jne 0x18004a701
cmp r14d, 0xc0a
jne 0x18004a709
mov rcx, rsi
call fcn.180026100
mov rcx, rsi
call fcn.1800c93f0
mov rdi, qword [rbp - 0x49]
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xa8]
mov rax, qword [rbp + 0x6f]
cmp rdi, r15
sete r12b
mov dword [rax], r12d
mov eax, ebx
add rsp, 0xb8
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret