Function at 0x100419060
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, rdx
mov rbx, rcx
movups xmm0, xmmword [str.ConnGetProxyPassword]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x100475728]
movups xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [0x100475738]
movsd qword [rbp - 0x50], xmm0
movzx eax, word [0x100475740]
mov word [rbp - 0x48], ax
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x54], r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
lea r8d, [r12 + 0xc]
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp - 0x70]
mov r15d, 1
mov edx, r15d
mov rcx, rbx
call fcn.10040fcc0
test eax, eax
je 0x10041927b
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x68], r12w
mov eax, dword [r14 + 0xa14]
mov dword [rsp + 0x50], eax
mov esi, 4
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x68], r15w
lea r9d, [r12 - 0x10]
mov r8d, r15d
mov edx, r15d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], r12w
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], si
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.EXECUTE_master.dbo.sp_PostAgentInfo__
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, r15d
jne 0x10041923f
nop dword [rax]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8d, 0xfffffff0
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov edx, 2
mov r9d, 0x400
lea r8d, [rdx - 4]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x100419231
mov edi, r15d
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x100419223
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1004191c0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100419253
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
test edi, edi
je 0x10041927b
mov r8d, dword [rsp + 0x54]
cmp r8d, 0x400
jbe 0x1004192b1
xor edx, edx
mov r9d, 0x400
mov r8d, 0x1c5
mov ecx, r15d
call fcn.100432180
mov word [r14 + 0x210], r12w
mov eax, r15d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r8d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, qword [0x10049b770]
mov rcx, qword [rcx + 8]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov edi, r12d
test eax, eax
cmovns edi, dword [rsp + 0x50]
mov esi, r12d
setns sil
js 0x100419350
cmp edi, 0x800
ja 0x100419343
mov ebx, edi
lea rcx, [r14 + 0x210]
mov r8d, edi
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcpy
shr rbx, 1
mov word [r14 + rbx*2 + 0x20e], r12w
shr edi, 1
dec edi
mov dword [r14 + 0xa10], edi
mov eax, esi
jmp 0x100419286
mov dword [rsp + 0x20], edi
lea r9, str.BCryptDecrypt_size
jmp 0x10041935b
mov dword [rsp + 0x20], eax
lea r9, [0x1004757c8]
xor edx, edx
mov r8d, 0x1ba
mov ecx, r15d
call fcn.100432180
mov eax, esi
jmp 0x100419286