Function at 0x1401d7030
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1402ded38]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xe8]
mov rdi, qword [rbp + 0xf8]
xor r14d, r14d
mov qword [rsp + 0x38], r9
mov r9, qword [rbp + 0xd8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0xf0]
mov dword [rsp + 0x18], r8d
mov r8, qword [rbp + 0xe0]
mov qword [rsp + 0x50], rax
mov r11d, edx
mov r10, rcx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
nop dword [rax]
mov eax, dword [rcx]
add rcx, 4
inc dword [rbp + rax*4 - 0x20]
dec edx
jne 0x1401d70c0
cmp dword [rbp - 0x20], r11d
jne 0x1401d70e1
mov qword [r9], r14
xor eax, eax
mov dword [r8], r14d
jmp 0x1401d74a2
mov qword [rsp + 0x188], rsi
mov esi, dword [r8]
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x170], r15
mov ecx, 1
mov eax, ecx
cmp dword [rbp + rax*4 - 0x20], r14d
jne 0x1401d7111
inc ecx
cmp ecx, 0xf
jbe 0x1401d7101
cmp esi, ecx
mov r13d, ecx
mov edx, reloc.ODBC32.dll_SQLFreeEnv
cmovb esi, ecx
lea rax, [rbp + 0x1c]
cmp dword [rax], r14d
jne 0x1401d712f
sub rax, 4
dec edx
jne 0x1401d7122
cmp esi, edx
movsxd r15, edx
cmova esi, edx
mov dword [rsp + 8], r15d
mov dword [r8], esi
mov r8d, 1
shl r8d, cl
cmp ecx, edx
jae 0x1401d7162
nop dword [rax]
mov eax, ecx
sub r8d, dword [rbp + rax*4 - 0x20]
js 0x1401d7172
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x1401d7150
mov ecx, edx
mov eax, dword [rbp + rcx*4 - 0x20]
sub r8d, eax
mov dword [rsp + 0x20], r8d
jns 0x1401d717c
mov eax, 0xfffffffd
jmp 0x1401d748a
add eax, r8d
dec edx
mov qword [rsp + 0x1c0], rbx
mov dword [rbp + rcx*4 - 0x20], eax
mov qword [rsp + 0x180], r12
mov dword [rbp + 0x24], r14d
mov ecx, r14d
je 0x1401d71c0
mov rax, r14
nop word [rax + rax]
add ecx, dword [rbp + rax - 0x1c]
add rax, 4
dec edx
mov dword [rbp + rax + 0x24], ecx
jne 0x1401d71b0
mov edx, r14d
mov eax, dword [r10]
add r10, 4
test eax, eax
je 0x1401d71dd
mov ecx, eax
mov eax, dword [rbp + rax*4 + 0x20]
mov dword [rdi + rax*4], edx
inc eax
mov dword [rbp + rcx*4 + 0x20], eax
inc edx
cmp edx, r11d
jb 0x1401d71c3
mov eax, dword [rbp + r15*4 + 0x20]
mov rdx, rdi
or r12, 0xffffffffffffffff
mov r11d, esi
mov ebx, r14d
mov dword [rbp + 0x20], r14d
neg r11d
mov dword [rsp + 0x1c], eax
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x60], r14
mov r9, r14
mov r10d, r14d
mov rdi, r12
cmp r13d, r15d
jg 0x1401d7466
nop dword [rax]
movsxd rax, r13d
lea rax, [rbp + rax*4 - 0x20]
mov qword [rsp + 0x28], rax
mov r8d, dword [rax]
test r8d, r8d
je 0x1401d7455
nop dword [rax]
dec r8d
lea ecx, [r11 + rsi]
mov dword [rsp + 0xc], r8d
cmp r13d, ecx
jle 0x1401d7358
mov eax, esi
lea r14d, [r8 + 1]
neg eax
lea r15d, [rax + rax]
mov r9d, dword [rsp + 8]
inc r12d
inc rdi
sub r9d, ecx
mov r11d, ecx
mov ecx, r13d
cmp r9d, esi
mov edx, 1
cmova r9d, esi
sub ecx, r11d
shl edx, cl
cmp edx, r14d
jbe 0x1401d72c7
or eax, 0xffffffff
sub eax, r8d
mov r8, qword [rsp + 0x28]
add edx, eax
cmp ecx, r9d
jae 0x1401d72c7
inc ecx
cmp ecx, r9d
jae 0x1401d72c7
nop word [rax + rax]
mov eax, dword [r8 + 4]
add r8, 4
add edx, edx
cmp edx, eax
jbe 0x1401d72c7
inc ecx
sub edx, eax
cmp ecx, r9d
jb 0x1401d72b0
mov r8, qword [rsp + 0x50]
mov r10d, 1
mov eax, dword [r8]
shl r10d, cl
lea edx, [rax + r10]
cmp edx, 0x5a0
ja 0x1401d74ba
mov r9, qword [rsp + 0x40]
mov dword [r8], edx
lea r9, [r9 + rax*8]
mov qword [rsp + rdi*8 + 0x60], r9
test r12d, r12d
je 0x1401d7336
mov rdx, qword [rsp + rdi*8 + 0x58]
mov byte [rsp], cl
mov r8d, ebx
lea ecx, [r15 + r11]
mov rax, r9
mov byte [rsp + 1], sil
sub rax, rdx
add ecx, esi
mov dword [rbp + rdi*4 + 0x20], ebx
shr r8d, cl
sar rax, 3
sub eax, r8d
mov dword [rsp + 4], eax
mov rax, qword [rsp]
mov qword [rdx + r8*8], rax
jmp 0x1401d733e
mov rax, qword [rsp + 0x48]
mov qword [rax], r9
mov r8d, dword [rsp + 0xc]
lea ecx, [r11 + rsi]
cmp r13d, ecx
jg 0x1401d7261
mov rdx, qword [rsp + 0x10]
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
movzx eax, r13b
sub al, r11b
mov byte [rsp + 1], al
mov eax, dword [rsp + 0x1c]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x1401d737b
mov byte [rsp], 0xc0
jmp 0x1401d73c4
mov ecx, dword [rdx]
mov eax, dword [rsp + 0x18]
cmp ecx, eax
jae 0x1401d739d
mov eax, 0x60
cmp ecx, 0x100
mov dword [rsp + 4], ecx
cmovb eax, r14d
mov byte [rsp], al
jmp 0x1401d73bb
sub ecx, eax
mov rax, qword [rbp + 0xd0]
movzx eax, byte [rax + rcx*4]
add al, 0x50
mov byte [rsp], al
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 4], eax
add rdx, 4
mov qword [rsp + 0x10], rdx
mov ecx, r13d
mov r8d, 1
mov edx, ebx
sub ecx, r11d
shl r8d, cl
mov ecx, r11d
shr edx, cl
cmp edx, r10d
jae 0x1401d73ef
mov rax, qword [rsp]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x1401d73e3
lea ecx, [r13 - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x1401d7408
nop
xor ebx, eax
shr eax, 1
test ebx, eax
jne 0x1401d7400
xor ebx, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rbp + rdi*4 + 0x20]
je 0x1401d743d
nop
sub r11d, esi
mov eax, 1
dec rdi
mov ecx, r11d
dec r12d
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rbp + rdi*4 + 0x20]
jne 0x1401d7420
mov r8d, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x10]
test r8d, r8d
jne 0x1401d7240
mov r15d, dword [rsp + 8]
inc r13d
cmp r13d, r15d
jle 0x1401d7220
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x1401d7477
cmp r15d, 1
je 0x1401d7477
mov r14d, 0xfffffffb
mov eax, r14d
mov r12, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x188]
mov r13, qword [rsp + 0x178]
mov r15, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14017ae40
add rsp, 0x190
pop r14
pop rdi
pop rbp
ret
mov eax, 0xfffffffd
jmp 0x1401d747a