joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400035d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
push rbx
push rdi
push r12
push r14
sub rsp, 0x78
xor edi, edi
mov ebx, r8d
mov r14, r9
mov dword [rax - 0x50], ecx
mov r12, rdx
mov qword [rax - 0x48], rdi
xor r8d, r8d
mov dword [rax - 0x40], edi
lea r9d, [rdi + 0x18]
mov qword [rax - 0x38], rdi
xor edx, edx
mov dword [rax - 0x30], edi
lea rcx, [rax - 0x60]
mov dword [rax - 0x78], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400037d0
mov qword [rsp + 0xa8], rbp
lea ecx, [rdi + 0x40]
lea ebp, [rbx + 0xc]
mov qword [rsp + 0xb0], rsi
mov edx, ebp
mov qword [rsp + 0x70], r15
mov r15, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400037ae
mov r8d, ebx
mov dword [rax], 0x208
lea rcx, [rax + 0xc]
mov dword [rax + 4], 0x6602
mov rdx, r12
mov dword [rax + 8], ebx
call fcn.14011b4a0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x20], 0x100
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1400037ae
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400037a3
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
xor r9d, r9d
lea edx, [rdi + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x140003798
mov r8d, dword [rsp + 0xc0]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140003798
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x20], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140003798
mov edx, dword [rsp + 0xa0]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003798
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0xa0]
mov r8, rax
mov dword [rsp + 0x20], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [rsp + 0xd0]
mov edi, eax
cmp dword [rsp + 0xa0], edx
mov rcx, qword [rsp + 0xc8]
cmovb edx, dword [rsp + 0xa0]
mov r8d, edx
mov rdx, rbx
call fcn.14011b4a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x78
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x140003ab0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
xor ebp, ebp
mov rdi, r9
mov ebx, r8d
mov r15, rdx
mov r14, rcx
cmp r8d, 0x10
jbe 0x140003ca2
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x140003c94
xor r9d, r9d
lea edx, [rbp + 1]
mov r8, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003c89
mov qword [rsp + 0x90], rsi
lea esi, [rbx + 0xf]
shr esi, 4
and ebx, 0xf
mov qword [rsp + 0xa8], r13
mov r13d, 0x10
mov edi, esi
cmovne r13d, ebx
shl edi, 4
cmp esi, 2
jbe 0x140003b68
lea eax, [rdi - 0x20]
xor r9d, r9d
mov dword [rsp + 0xa0], eax
xor r8d, r8d
lea rax, [rsp + 0xa0]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140003c79
lea eax, [r13 + 0x10]
mov qword [rsp + 0x98], r12
add esi, 0xfffffffe
mov r8d, eax
shl esi, 4
lea rcx, [rsp + 0x40]
add rsi, r15
mov ebx, eax
mov rdx, rsi
call fcn.14011b4a0
mov r12d, 0x10
lea rax, [rsp + 0x40]
add rax, rbx
sub r12d, r13d
mov rcx, rax
mov qword [rsp + 0x38], rax
mov r8d, r12d
xor edx, edx
call fcn.14011adb0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0xa0], Ordinal_26
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140003c71
movdqu xmm1, xmmword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
movdqu xmm0, xmmword [rsp + 0x50]
mov ebx, r13d
mov r8d, r12d
add rdx, rbx
pxor xmm1, xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.14011b4a0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0xa0], Ordinal_26
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebp, eax
test eax, eax
je 0x140003c71
movups xmm0, xmmword [rsp + 0x50]
lea ecx, [rdi - 0x10]
mov r8d, ebx
add rcx, r15
lea rdx, [rsp + 0x40]
movups xmmword [rsi], xmm0
call fcn.14011b4a0
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov r13, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebp
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
jne 0x140003c94
lea rax, [rsp + 0xa0]
mov dword [rsp + 0xa0], Ordinal_26
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140003ce0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rbp
push r12
push r14
sub rsp, 0x68
mov rax, r9
mov ebx, r8d
mov r12, rdx
mov r14, rcx
cmp r8d, 0x10
jbe 0x140003e4a
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003e3d
mov qword [rsp + 0x90], rsi
mov ebp, 0x10
mov qword [rsp + 0x98], rdi
lea esi, [rbx + 0xf]
shr esi, 4
and ebx, 0xf
mov qword [rsp + 0x60], r15
mov r15d, ebp
mov edi, esi
cmovne r15d, ebx
shl edi, 4
cmp esi, 2
jbe 0x140003da2
lea ecx, [rdi - 0x20]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
xor r8d, r8d
mov dword [rsp + 0xa0], ecx
xor edx, edx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140003da2
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop r12
pop rbp
pop rbx
ret
lea eax, [r15 + 0x10]
add esi, 0xfffffffe
shl esi, 4
lea rcx, [rsp + 0x40]
add rsi, r12
mov r8d, eax
mov rdx, rsi
mov ebx, eax
call fcn.14011b4a0
lea rcx, [rsp + 0x40]
sub ebp, r15d
add rcx, rbx
mov r8d, ebp
xor edx, edx
call fcn.14011adb0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x30], Ordinal_36
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0xa0], Ordinal_41
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
test eax, eax
je 0x140003d82
movups xmm0, xmmword [rsp + 0x50]
lea ecx, [rdi - 0x10]
mov r8d, r15d
add rcx, r12
lea rdx, [rsp + 0x40]
movups xmmword [rsi], xmm0
call fcn.14011b4a0
mov eax, ebx
jmp 0x140003d82
xor eax, eax
add rsp, 0x68
pop r14
pop r12
pop rbp
pop rbx
ret
jne 0x140003e3d
mov ebp, 0x10
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xa0], ebp
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
add rsp, 0x68
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x140003e90
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 0x20], rbp
mov dword [rsp + 8], ecx
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov dword [rsp + 0x60], 1
mov ebp, r8d
mov dword [rsp + 0x20], 0xf0000000
mov r14, rdx
lea rcx, [rsp + 0x38]
xor edi, edi
xor r8d, r8d
xor edx, edx
lea r9d, [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003fb2
mov qword [rsp + 0x68], rbx
lea edx, [rdi + 0x1c]
mov rbx, qword [rsp + 0x38]
lea ecx, [rdi + 0x40]
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140003f9b
mov dword [rax], 0x208
lea r8d, [rdi + 0x1c]
mov dword [rax + 4], 0x660e
xor r9d, r9d
mov dword [rax + 8], 0x10
mov rdx, rsi
movups xmm0, xmmword [r15]
mov rcx, rbx
movups xmmword [rax + 0xc], xmm0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x140003f9b
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
xor r9d, r9d
lea edx, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003f90
mov r8d, ebp
mov r9, qword [rsp + 0x88]
mov rdx, r14
mov rcx, qword [rsp + 0x30]
cmp dword [rsp + 0x90], edi
je 0x140003f89
call fcn.140003ce0
jmp 0x140003f8e
call fcn.140003ab0
mov edi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400042b0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, ecx
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000433a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000432d
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x140004350
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], 4
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400043dd
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x1400043d0
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x20], 0
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x58]
shr eax, 3
add rsp, 0x40
pop rbx
ret

Function at 0x1400043f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], 4
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000447d
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x140004470
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x20], 0
mov edx, 9
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x58]
shr eax, 3
add rsp, 0x40
pop rbx
ret
Function at 0x140005040
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rsp + 0x80]
mov rdi, r9
mov rbp, qword [0x1401b2878]
xor ebx, ebx
mov qword [r9], rbx
xor r8d, r8d
lea r9, [rsp + 0x68]
mov dword [rsp + 0x70], 2
xor edx, edx
mov dword [r14], 2
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x140005133
mov rcx, qword [rsp + 0x68]
lea r8d, [rbx + 1]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140005128
mov edx, dword [r14]
lea ecx, [rbx + 0x40]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
mov rsi, rax
test rax, rax
je 0x140005123
mov r8d, dword [rsp + 0x70]
mov rdx, rbp
mov rcx, rax
call fcn.14011b4a0
mov ecx, dword [r14]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], ecx
lea r8d, [rbx + 1]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
test eax, eax
jne 0x140005123
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140005690
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov r12, r8
mov esi, edx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
lea r9d, [rbx + 8]
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14000580a
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0xa8]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1400057ed
mov edx, dword [rsp + 0xa8]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400057fb
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0xa8]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x1400057c7
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
xor r9d, r9d
lea r8d, [rbx + 0x20]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
setns bl
mov dword [rsp + 0x40], ebx
test ebx, ebx
jne 0x1400057a4
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptFinishHash:_0x_08x_n
call fcn.14000afb0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140005818
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptCreateHash:_0x_08x_n
call fcn.14000afb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140005818
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptGetProperty:_0x_08x_n
call fcn.14000afb0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140005818
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptOpenAlgorithmProvider:_0x_08x_n
call fcn.14000afb0
jmp 0x14000582a
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140007d60
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x70
cmp qword [rsp + 0xc8], 0
mov rbp, r9
mov r14d, dword [rsp + 0xa0]
mov rdi, r8
mov dword [rax - 0x28], r14d
mov dword [rax - 0x18], edx
mov qword [rax - 0x10], rcx
mov qword [rax - 0x20], r9
je 0x140007e59
mov esi, dword [rsp + 0xd0]
test esi, esi
je 0x140007e59
call fcn.1400062e0
mov rbx, rax
test rax, rax
je 0x140007e54
mov rax, qword [rsp + 0xc0]
mov r9, rbp
mov rdx, qword [rsp + 0xc8]
mov r8d, esi
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call fcn.140007790
mov esi, eax
test eax, eax
je 0x140007e45
test rdi, rdi
je 0x140007e45
cmp qword [rbx + 0x30], 0
je 0x140007e45
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
je 0x140007e45
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140007e45
mov r8d, dword [rbx + 0x2c]
mov rcx, rax
mov rdx, qword [rbx + 0x30]
call fcn.14011b4a0
mov rcx, rbx
call fcn.140006430
mov eax, esi
jmp 0x140007edf
jmp 0x140007edf
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov eax, dword [rsp + 0xb0]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov ebx, eax
test eax, eax
je 0x140007edf
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0xc0]
mov edx, ecx
mov dword [rdi], ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
test rax, rax
je 0x140007ed2
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.14011b4a0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400089b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, dword [rcx + 0x1c]
mov eax, 0x8004
mov rbx, rcx
xor edi, edi
cmp r14d, 0x8009
mov r13, rdx
cmove r14d, eax
mov ecx, r14d
call fcn.1400042b0
mov ecx, dword [rbx + 0x28]
call fcn.1400043f0
mov ecx, dword [rbx + 0x28]
mov esi, eax
call fcn.140004350
lea ecx, [rdi + 0x40]
lea r15d, [rax + rsi]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140008bd4
mov dword [rsp + 0x40], 1
lea r9, [rbx + 0x34]
mov dword [rsp + 0x38], r15d
mov rdx, r13
mov qword [rsp + 0x30], rax
mov r15d, SQLAllocHandle
mov eax, dword [rbx + 0x20]
mov r8d, r15d
mov dword [rsp + 0x28], eax
mov ecx, r14d
mov qword [rsp + 0xa8], r12
mov r12d, 0x10
mov dword [rsp + 0x20], r12d
call fcn.1400037e0
test eax, eax
je 0x140008bc3
mov ecx, dword [rbx + 0x28]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140003fd0
test eax, eax
je 0x140008baf
mov rcx, qword [rsp + 0xa0]
lea r8, [rsi + rbp]
xor r9d, r9d
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140008b84
mov edx, dword [rbx + 0x54]
lea ecx, [rdi + 0x40]
mov dword [rsp + 0xb0], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140008b84
mov r8d, dword [rsp + 0xb0]
mov rcx, rax
mov rdx, qword [rbx + 0x4c]
call fcn.14011b4a0
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140008b7b
mov r14d, dword [rbx + 0x2c]
mov rdx, rsi
mov rcx, qword [rsp + 0xc0]
cmp r14d, r15d
cmovb r15d, r14d
mov r8d, r15d
call fcn.14011b4a0
mov ebx, dword [rbx + 0x30]
lea rdx, [r14 + rsi]
mov rcx, qword [rsp + 0xb8]
cmp ebx, r12d
cmovb r12d, ebx
mov r8d, r12d
call fcn.14011b4a0
mov edi, 1
add ebx, 0xfffffff0
je 0x140008b7b
xor edx, edx
test ebx, ebx
je 0x140008b7b
test edi, edi
je 0x140008b7b
xor ecx, ecx
mov eax, edx
add rax, r14
cmp byte [rax + rsi + 0x10], cl
cmove ecx, edi
inc edx
mov edi, ecx
cmp edx, ebx
jb 0x140008b61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
call fcn.140003460
test eax, eax
jne 0x140008bc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_credhist_entry_with_shaDerivedkey___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x140008bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_credhist_entry_with_shaDerivedkey___kull_m_crypto_hkey_session__0x_08x__n
mov edx, eax
call fcn.14000afb0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008bf0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
mov edx, 0x208
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, r14
mov qword [rsi], rax
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x140008c93
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
lea ecx, [rbx + 0x40]
add rdx, rdx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008ca5
test ebp, ebp
je 0x140008c88
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [rbp - 1]
cmp eax, ecx
jne 0x140008c88
mov rcx, qword [rsi]
mov r8, r14
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
mov rcx, rdi
setne bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008ca1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008ca5
mov rcx, qword [rsi]
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov ebx, eax
test ebx, ebx
jne 0x140008cae
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret