Function at 0x140007790
Capabilities:
Encode data using xor
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push r12
lea rbp, [rax - 0x108]
sub rsp, 0x1f8
mov qword [rax - 0x18], rbx
xor r12d, r12d
mov ebx, dword [rcx + 0x5c]
mov qword [rax - 0x20], rsi
mov rsi, qword [rbp + 0x138]
mov qword [rax - 0x28], rdi
test rsi, rsi
mov edi, dword [rcx + 0x3c]
mov qword [rax - 0x30], r13
mov r13, rcx
mov qword [rax - 0x38], r14
mov r14d, r12d
sete r14b
mov qword [rsp + 0x50], r12
shr ebx, 3
shr edi, 3
cmp dword [rcx + 0x38], 0x6603
jne 0x1400077ff
mov eax, reloc.ODBC32.dll_SQLAllocHandle
cmp edi, eax
cmovb edi, eax
mov qword [rsp + 0x1c8], r15
mov edx, 0x8004
test rsi, rsi
je 0x14000787b
mov ecx, 0x800e
mov r15d, SQLAllocHandle
cmp dword [r13 + 0x58], ecx
cmovne ecx, edx
cmove r15d, ebx
mov dword [rbp + 0x138], ecx
mov ecx, 0x40
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
mov rcx, rax
test rax, rax
je 0x140007882
mov rax, 0xffffffffffffffff
nop
cmp word [rsi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140007850
mov r9, rcx
mov dword [rsp + 0x20], r15d
mov ecx, dword [rbp + 0x138]
lea r8d, [rax + rax]
mov rdx, rsi
call fcn.1400032b0
mov r14d, eax
jmp 0x140007882
mov r15d, dword [rbp + 0x138]
test r14d, r14d
je 0x140007d06
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140007d06
mov rdx, qword [rsp + 0x50]
mov eax, r12d
mov r8, qword [r13 + 0x44]
test rdx, rdx
mov r11d, dword [rbp + 0x120]
mov r14d, dword [r13 + 0x58]
cmovne eax, r15d
mov ecx, dword [r13 + 0x40]
mov dword [rbp + 0x110], eax
mov dword [rsp + 0x5c], r14d
mov dword [rbp + 0x138], ecx
mov qword [rsp + 0x60], r8
cmp r11d, 0x14
jne 0x1400078f9
mov r10, qword [rbp + 0x118]
mov qword [rsp + 0x68], r10
test r10, r10
je 0x140007cfd
jmp 0x14000794e
mov rdx, qword [rbp + 0x118]
lea r9, [rbp]
mov r8d, r11d
mov dword [rsp + 0x20], Ordinal_26
mov ecx, 0x8004
call fcn.1400032b0
test eax, eax
je 0x140007cfd
mov ecx, dword [rbp + 0x138]
lea rax, [rbp]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov r10, qword [rbp + 0x118]
mov r11d, dword [rbp + 0x120]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x110]
cmp r14d, 0x8004
jne 0x14000799b
mov r9, qword [rbp + 0x128]
test r9, r9
jne 0x140007968
test rdx, rdx
je 0x14000799b
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x130]
mov qword [rsp + 0x30], rdx
mov edx, r11d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, ecx
mov rcx, r10
call fcn.140007540
mov r15d, eax
jmp 0x140007a56
mov r15d, dword [rbp + 0x130]
add eax, ecx
add eax, r15d
mov ecx, 0x40
mov edx, eax
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140007cfd
mov r8d, dword [rbp + 0x138]
mov rcx, rax
mov rdx, qword [rsp + 0x60]
call fcn.14011b4a0
mov rdx, qword [rbp + 0x128]
test rdx, rdx
je 0x1400079fa
test r15d, r15d
je 0x1400079fa
mov ecx, dword [rbp + 0x138]
mov r8d, r15d
add rcx, r14
call fcn.14011b4a0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140007a22
mov eax, dword [rbp + 0x110]
test eax, eax
je 0x140007a22
mov ecx, dword [rbp + 0x138]
mov r8d, eax
add rcx, r15
add rcx, r14
call fcn.14011b4a0
mov eax, dword [rsp + 0x58]
mov r9, r14
mov rdx, qword [rsp + 0x68]
mov r8d, SQLAllocHandle
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.1400035d0
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15d, r15d
je 0x140007cfd
mov edx, edi
mov ecx, 0x40
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140007cfd
mov r10d, dword [r13 + 0x58]
mov eax, r12d
cmp ebx, edi
mov dword [rbp + 0x138], r10d
setae al
mov dword [rbp + 0x110], eax
jb 0x140007b95
mov r8d, r15d
mov rdx, rsi
mov rcx, r14
call fcn.14011b4a0
cmp dword [rbp + 0x110], r12d
je 0x140007cf4
mov ecx, dword [r13 + 0x38]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov r8d, edi
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.140003fd0
test eax, eax
je 0x140007ce0
mov edx, dword [r13 + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rbp + 0x140]
mov qword [rbx], rax
test rax, rax
je 0x140007b66
mov r8d, dword [r13 + 0x6c]
mov rcx, rax
mov rdx, qword [r13 + 0x70]
call fcn.14011b4a0
mov rcx, qword [rbp + 0x148]
xor r9d, r9d
mov eax, dword [r13 + 0x6c]
xor edx, edx
mov qword [rsp + 0x28], rcx
mov dword [rcx], eax
lea r8d, [r9 + 1]
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r12d, eax
test eax, eax
jne 0x140007b66
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___CryptDecrypt__0x_08x__n
call fcn.14000afb0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x78]
call fcn.140003460
test eax, eax
jne 0x140007cf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x140007ced
movdqa xmm0, xmmword [str.6666666666666666_]
mov ecx, r12d
movdqa xmm1, xmmword [0x1401951e0]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
test ebx, ebx
je 0x140007c7b
cmp ebx, 0x10
jb 0x140007c46
lea eax, [rbx - 1]
mov edx, eax
lea r8, [rbp - 0x40]
add r8, rdx
lea r9, [rbp - 0x40]
add rax, rsi
cmp r9, rax
ja 0x140007bf2
cmp r8, rsi
jae 0x140007c46
lea r8, [rbp - 0x80]
add r8, rdx
lea rdx, [rbp - 0x80]
cmp rdx, rax
ja 0x140007c07
cmp r8, rsi
jae 0x140007c46
mov edx, ebx
and edx, 0xfffffff0
nop dword [rax]
mov eax, ecx
add ecx, 0x10
movdqu xmm0, xmmword [rbp + rax - 0x80]
movdqu xmm2, xmmword [rax + rsi]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x40]
movdqu xmmword [rbp + rax - 0x80], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbp + rax - 0x40], xmm2
cmp ecx, edx
jb 0x140007c10
cmp ecx, ebx
jae 0x140007c7b
lea rax, [rbp - 0x80]
mov edx, ecx
mov r9, rsi
mov r8d, ebx
sub r9, rax
sub r8d, ecx
nop dword [rax + rax]
lea rax, [rbp - 0x80]
add rax, rdx
movzx ecx, byte [r9 + rax]
xor byte [rbp + rdx - 0x40], cl
inc rdx
xor byte [rax], cl
sub r8, 1
jne 0x140007c60
lea r9, [rbp + 0x20]
mov dword [rsp + 0x20], ebx
mov r8d, Ordinal_69
lea rdx, [rbp - 0x80]
mov ecx, r10d
call fcn.1400032b0
test eax, eax
je 0x140007aa8
mov ecx, dword [rbp + 0x138]
lea r9, [rbp + 0x20]
mov eax, ebx
lea rdx, [rbp - 0x40]
add r9, rax
mov dword [rsp + 0x20], ebx
mov r8d, Ordinal_69
call fcn.1400032b0
test eax, eax
je 0x140007cf4
lea ecx, [rbx + rbx]
mov r8d, edi
cmp edi, ecx
lea rdx, [rbp + 0x20]
cmovae r8d, ecx
mov rcx, r14
call fcn.14011b4a0
jmp 0x140007ab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___kull_m_crypto_hkey_session__0x_08x__n
mov edx, eax
call fcn.14000afb0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x50]
mov r15, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x1d0]
mov r13, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x1e0]
mov rsi, qword [rsp + 0x1e8]
mov rbx, qword [rsp + 0x1f0]
test rax, rax
je 0x140007d49
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r12d
add rsp, 0x1f8
pop r12
pop rbp
ret