joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180041cb8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbp, rcx
mov edx, 0x338
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180041e1a
and dword [rbx + 0x1c], 0
and dword [rbx + 0x20], 0
lea rsi, [rax + 8]
mov eax, 0x4000000
mov r8, rbp
xor edx, edx
mov dword [rsi], eax
mov dword [rbx + 0xc], eax
mov eax, SQLGetData
mov rcx, rsi
mov word [rbx + 0x28], ax
call fcn.180042254
test eax, eax
je 0x180041dfc
lea rdi, [rbx + 0x22a]
mov ecx, 0x100
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x180041e08
lea r8, [0x180122d58]
mov edx, 0x100
mov rcx, rdi
call fcn.180042364
test eax, eax
js 0x180041e08
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rsi
lea rax, [0x180042174]
mov qword [rsp + 0x50], rax
lea rax, [0x18004213c]
lea rdi, [rbx + 0x32c]
mov qword [rsp + 0x48], rax
lea rax, [0x180042100]
lea r9, [0x180041fb8]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1800420c8]
lea r8, [0x180041fa4]
mov qword [rsp + 0x38], rax
lea rax, [0x18004208c]
lea rdx, [0x180041f98]
mov qword [rsp + 0x30], rax
lea rax, [0x180042050]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [fcn.180041fc8]
mov qword [rsp + 0x20], rax
call sub.Cabinet.dll_FCICreate
mov qword [rbx], rax
test rax, rax
jne 0x180041e1a
mov ecx, dword [rdi]
call fcn.180041c3c
mov edx, dword [rdi]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.18004d68c
jmp 0x180041e08
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.18004d68c
cmp qword [rbx], 0
jne 0x180041e1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180043cec
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov r15, r9
mov esi, r8d
mov r14, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x180043d84
cmp dword [rbp + 0x40], 4
jne 0x180043e66
lea rdx, [rbp - 0x20]
mov ecx, 0xffffff7c
call sub.cryptdll.dll_CDLocateCheckSum
test eax, eax
js 0x180043e66
mov rax, qword [rbp - 0x20]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x180043e66
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov r8, r14
mov edx, esi
call qword [rax + reloc.ODBC32.dll_SQLAllocHandle]
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov rdx, r15
call qword [rax + 0x20]
lea rcx, [rbp - 0x10]
test eax, eax
mov rax, qword [rbp - 0x20]
setns bl
call qword [rax + Ordinal_41]
jmp 0x180043e66
lea rcx, [rbp - 8]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180043e66
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180043e5a
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180043e50
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
lea r9, [rbp + 0x20]
lea esi, [r8 + 2]
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180043e50
mov edx, dword [rbp + 0x20]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180043e50
mov rcx, qword [rbp - 0x18]
lea r9, [rbp + 0x20]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp + 0x40]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, r15
call fcn.1800ca790
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180043e88
Capabilities:
Encrypt data using des via winapi

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 r12
push r14
push r15
sub rsp, 0x30
mov r12, rcx
mov esi, r9d
mov ecx, 0x6603
xor ebx, ebx
mov r14, r8
mov r15d, edx
lea ebp, [rsi + 0xc]
cmp edx, ecx
je 0x180043f1f
lea ecx, [rbx + 0x40]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180043f4d
lea rcx, [rax + 0xc]
mov r8d, esi
mov rdx, r14
mov dword [rax], 0x208
mov dword [rax + 4], r15d
mov dword [rax + 8], esi
call fcn.1800ca790
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180043f4d
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x180043f4d
mov r9d, dword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov r8d, esi
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.1800447b4
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180043f74
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov r14, r9
mov dword [rbp - 0x28], ecx
mov edi, r8d
mov rsi, rdx
lea rcx, [rbp - 0x38]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], ebx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800440e5
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x6602
mov dword [rsp + 0x20], 0x100
call fcn.180043e88
test eax, eax
je 0x1800440d9
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800440cf
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x28]
lea edx, [rbx + 5]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1800440c5
mov r8d, dword [rbp + 0x40]
mov rcx, qword [rbp - 0x40]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800440c5
mov rcx, qword [rbp - 0x40]
lea esi, [rbx + 2]
lea r9, [rbp + 0x20]
mov edx, esi
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800440c5
mov edx, dword [rbp + 0x20]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800440c5
mov rcx, qword [rbp - 0x40]
lea r9, [rbp + 0x20]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp + 0x50]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, qword [rbp + 0x48]
call fcn.1800ca790
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800444a4
Capabilities:
Create new key via cryptacquirecontext

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, 0x60
mov rbp, r9
mov r14d, ecx
mov edi, r8d
mov rsi, rdx
xor ebx, ebx
lea rcx, [rax - 0x18]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x28], 1
mov dword [rax - 0x48], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18004457f
mov r9d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov r8, rbp
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.180043e88
test eax, eax
je 0x180044572
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea edx, [rbx + 4]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180044567
mov r9, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
mov r8d, edi
mov rdx, rsi
cmp dword [rsp + 0xa0], ebx
je 0x180044560
call fcn.1800464e4
jmp 0x180044565
call fcn.18004633c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x60]
mov eax, ebx
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 0x1800445a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x150
xor esi, esi
cmp r8d, dword [rsp + 0x190]
mov r14, r9
setae sil
mov edi, r8d
mov rbx, rdx
mov r15d, ecx
test esi, esi
je 0x1800445ee
mov r8d, dword [rsp + 0x190]
mov rcx, r9
jmp 0x1800446a4
mov r12d, Ordinal_69
lea rcx, [rsp + 0x70]
lea edx, [r12 - 0xa]
mov r8d, r12d
call fcn.1800cadf0
lea edx, [r12 + 0x1c]
lea rcx, [rsp + 0x30]
mov r8d, r12d
call fcn.1800cadf0
test edi, edi
je 0x18004463f
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8, rdi
sub rcx, rbx
sub rdx, rbx
mov al, byte [rbx]
xor byte [rcx + rbx], al
xor byte [rdx + rbx], al
inc rbx
dec r8
jne 0x18004462f
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov r8d, r12d
mov ecx, r15d
mov dword [rsp + 0x20], edi
call fcn.180043cec
test eax, eax
je 0x1800446a9
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x30]
mov r8d, r12d
mov ecx, r15d
add r9, rdi
mov dword [rsp + 0x20], edi
call fcn.180043cec
mov esi, eax
test eax, eax
je 0x1800446a9
lea ecx, [rdi + rdi]
lea rdx, [rsp + 0xb0]
cmp dword [rsp + 0x190], ecx
cmovb ecx, dword [rsp + 0x190]
mov r8d, ecx
mov rcx, r14
call fcn.1800ca790
lea r11, [rsp + 0x150]
mov eax, esi
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 0x180044a6c
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov ebx, ecx
lea rcx, [rsp + 0x58]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180044af0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180044ae3
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 2]
lea r9, [rsp + 0x48]
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 0x180044b00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and dword [rax + 0x10], 0
mov ebx, ecx
lea rcx, [rax - 0x18]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
mov dword [rax + 0x18], 4
mov dword [rax - 0x28], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180044b85
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 0x180044b78
mov rcx, qword [rsp + 0x68]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
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 0x180044b98
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and dword [rax + 0x10], 0
mov ebx, ecx
lea rcx, [rax - 0x18]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
mov dword [rax + 0x18], 4
mov dword [rax - 0x28], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180044c1d
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 0x180044c10
mov rcx, qword [rsp + 0x68]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
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 0x180044d50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov rbx, rcx
mov r15, r8
mov rdi, rdx
xor ebp, ebp
lea rcx, [rax - 0x28]
lea r9d, [rbp + 0x18]
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x38], 1
mov dword [rax - 0x58], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180044ee1
and qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebp
lea r9d, [rbp + 0x10]
mov r8, rbx
mov edx, 0x660e
call fcn.180043e88
test eax, eax
je 0x180044ebe
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea edx, [rbp + 4]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180044e9d
mov rcx, qword [rsp + 0x48]
lea edx, [rbp + 1]
xor r9d, r9d
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180044e8e
lea ecx, [rbp + 0x40]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rsp + 0xa0]
mov qword [rbx], rax
test rax, rax
je 0x180044eb1
mov rsi, qword [rsp + 0xa8]
mov r8d, r14d
mov rdx, r15
mov dword [rsi], r14d
mov rcx, qword [rbx]
call fcn.1800ca790
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x48]
lea r8d, [rbp + 1]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebp, eax
test eax, eax
jne 0x180044eb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
and dword [rsi], ebp
jmp 0x180044eb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptSetKeyParam__IV___0x_08x__n
jmp 0x180044eaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptSetKeyParam__MODE___0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x180044ed2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___kull_m_crypto_hkey__0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180044ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.18004d68c
lea r11, [rsp + 0x60]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180044fe0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
lea rax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov r14d, r9d
mov r15, r8
mov edi, edx
mov rsi, rcx
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], 1
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], 1
call fcn.180053470
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1800450e5
mov r9d, dword [rbp - 0x20]
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x40]
mov rdx, rax
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800450c7
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov rdx, r15
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1800450a8
mov r9, qword [rbp + 0x48]
lea r8, [rbp - 0x30]
mov edx, edi
mov rcx, rsi
call fcn.180045108
mov rcx, qword [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1800450bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_DerAndKeyToPfx___CryptImportKey__0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rbp - 0x40]
call fcn.1800446d0
jmp 0x1800450db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_DerAndKeyToPfx___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180045f64
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x70]
mov rbx, r9
mov rbp, rdx
xor esi, esi
xor edx, edx
and qword [r9], rsi
mov dword [rdi], r8d
lea r9, [rax + 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x180046038
and dword [rsp + 0x30], esi
mov rcx, qword [rsp + 0x70]
lea r8d, [rsi + 1]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x18004602d
mov edx, dword [rdi]
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18004602d
mov r8d, dword [rsp + 0x60]
mov rdx, rbp
mov rcx, rax
call fcn.1800ca790
mov eax, dword [rdi]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
lea r8d, [rsi + 1]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test eax, eax
jne 0x18004602d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180046058
Capabilities:
Encrypt or decrypt via wincrypt

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, 0x30
mov r14, qword [rsp + 0x60]
mov esi, r8d
mov rbx, r9
mov rbp, rdx
xor edi, edi
xor r8d, r8d
and qword [r9], rdi
lea r9, [rax + 0x28]
xor edx, edx
mov dword [r14], esi
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x1800460f9
lea ecx, [rdi + 0x40]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800460ee
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call fcn.1800ca790
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x60]
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
test eax, eax
jne 0x1800460ee
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1800462e4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
sub rsp, 0x48
shl r8d, 4
lea rax, [r11 + 0x18]
mov dword [r11 + 0x18], r8d
test r9d, r9d
je 0x180046318
mov dword [r11 - 0x18], r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x180046330
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
add rsp, 0x48
ret

Function at 0x18004633c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r14d, r14d
mov rdi, r9
mov ebx, r8d
mov r15, rdx
mov rsi, rcx
cmp r8d, 0x10
jbe 0x1800464a9
lea r9, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x1800464bd
lea edx, [r14 + 1]
xor r9d, r9d
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x18004649d
lea edi, [rbx + 0xf]
lea r13d, [r14 + 0x10]
shr edi, 4
and ebx, 0xf
cmovne r13d, ebx
cmp edi, 2
jbe 0x1800463d6
lea r8d, [rdi - 2]
xor r9d, r9d
mov rdx, r15
mov rcx, rsi
call fcn.1800462e4
test eax, eax
je 0x18004649d
lea eax, [r13 + 0x10]
lea r12d, [rdi - 2]
lea rcx, [rbp - 0x28]
shl r12d, 4
mov r8d, eax
mov ebx, eax
add r12, r15
mov rdx, r12
call fcn.1800ca790
mov eax, 0x10
lea rcx, [rbp - 0x28]
sub eax, r13d
add rcx, rbx
xor edx, edx
mov r8d, eax
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], rax
call fcn.1800cadf0
mov rcx, qword [rbp - 0x40]
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp - 0x28]
call fcn.1800462e4
test eax, eax
je 0x18004649d
lea rdx, [rbp - 0x28]
lea r9, [rbp - 0x18]
mov r10d, 0x10
mov al, byte [r9]
inc r9
xor byte [rdx], al
inc rdx
dec r10
jne 0x18004643d
mov r8, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x28]
mov ebx, r13d
add rdx, rbx
call fcn.1800ca790
xor r9d, r9d
lea rdx, [rbp - 0x18]
lea r8d, [r9 + 1]
mov rcx, rsi
call fcn.1800462e4
mov r14d, eax
test eax, eax
je 0x18004649d
movups xmm0, xmmword [rbp - 0x18]
shl edi, 4
lea rdx, [rbp - 0x28]
lea ecx, [rdi - 0x10]
mov r8d, ebx
add rcx, r15
movdqu xmmword [r12], xmm0
call fcn.1800ca790
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1800464bd
cmp ebx, 0x10
jne 0x1800464bd
lea r8d, [rbx - 0xf]
xor r9d, r9d
call fcn.1800462e4
mov r14d, eax
lea r11, [rsp + 0x60]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret