joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003e99d
xor eax, eax
jmp 0x14003eaf5
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14003e9c8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14003e9c8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14003eaf5
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003eae8
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003ea0b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14003ea36
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003eaed
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003eaa5
sub eax, 1
je 0x14003eaa5
cmp eax, 2
jne 0x14003eae8
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003eaed
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003ead6
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14003eae8
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14003eaed
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140061ad0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003ee30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003ef06
cmp byte [rcx + 0x71], 0
je 0x14003ef06
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003ef02
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003eec4
sub eax, 1
je 0x14003eec8
cmp eax, 2
jne 0x14003ef02
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ad0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003eef9
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14003ef02
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003eeac
xor al, al
jmp 0x14003eeac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ad0
add rsp, 0x60
pop rbx
ret
Function at 0x14005bfb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea r8, [rsp + 0x30]
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x1400c90d8]
mov rcx, 0xffffffff80000002
cmovae rdx, qword [0x1400c90d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test eax, eax
jne 0x14005c041
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x14005c00b
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14005c015
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x30]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x30]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14005c07c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005c077
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005c09f
mov rcx, r8
call fcn.140061af0
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14005ce20
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rdx + 0x10]
mov rbx, rcx
test rax, rax
je 0x14005ceae
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x14005ceae
add eax, eax
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005ce4b
mov rdx, qword [rdx]
cmp qword [r8 + 0x18], 8
lea eax, [r10 + r10]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rdx
jb 0x14005ce62
mov r8, qword [r8]
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14005ce9e
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, str.Problem_while_protecting_data.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, 0x80004005
add rsp, 0x60
pop rbx
ret
Function at 0x14005cec0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 8], 0
mov rsi, r9
mov r10, rdx
mov rdi, rcx
mov ebx, 0x80004005
je 0x14005cfd6
cmp dword [rdx], 0
jbe 0x14005cfd6
mov eax, dword [r8 + 0x10]
add eax, eax
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005cf13
mov r8, qword [r8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 4
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, r10
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14005cfc6
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
shr r8, 1
call fcn.14000c580
mov rdx, rax
mov rcx, rsi
call fcn.140008fe0
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14005cfc2
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cfbd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005cfbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061af0
xor ebx, ebx
jmp 0x14005cfd6
mov rcx, qword [rdi]
lea rdx, [0x1400a8c30]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140061ad0
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005d460
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push r14
sub rsp, 0x38
mov r14, r9
mov rsi, rdx
test rdx, rdx
je 0x14005d531
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x30], rdi
mov ebp, r8d
mov dword [rsp + 0x58], r8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
xor ebx, ebx
test rdi, rdi
mov eax, 0x8007000e
cmovne eax, ebx
je 0x14005d51a
lfence
mov r9d, ebp
mov r8, rsi
mov edx, ebp
mov rcx, rdi
call fcn.140019f50
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 1]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14005d505
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005d501
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005d518
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
mov eax, ebx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
ret
mov eax, 0x80004005
add rsp, 0x38
pop r14
pop rsi
ret

Function at 0x14005d850
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, dword [rdx]
mov rdi, rcx
mov rcx, qword [rdx + 8]
mov r15d, r9d
mov dword [rsp + 0x58], 4
mov rsi, r8
mov r14, rdx
test rcx, rcx
je 0x14005d940
test ebp, ebp
je 0x14005d940
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov edx, ebp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005d930
mov qword [rsp + 0x50], rbx
mov ebx, dword [rsp + 0x58]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [rsp + 0x58]
mov r8d, r15d
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, qword [r14 + 8]
mov edx, ebp
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005d91c
mov ecx, dword [rsp + 0x58]
mov eax, 1
mov dword [rsi], ecx
mov qword [rsi + 8], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rdi]
lea rdx, str.Problem_while_encoding_to_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x14005d903
mov rcx, qword [rdi]
lea rdx, str.Problem_while_finding_the_count_of_elements_to_encode_in_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x14005d908
Function at 0x14005daa0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r13, r8
mov r14, rdx
mov r12, rcx
mov dword [rsp + 0xd8], 0x80004005
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov edi, dword [rdx]
add edi, 8
mov r15d, edi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [r14]
mov r8, qword [r14 + 8]
mov edx, r15d
mov rcx, rsi
call fcn.140019f50
test eax, eax
jne 0x14005dbf3
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [r13]
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, r12
call sym.DiagsCap.exe_private:_void___cdecl_Hp::Bridge::Server::Services::Registration::CryptographyHelper::CreateTripleDESKey_unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_char____ptr64__unsigned_long_int__unsigned_char____ptr64____ptr64
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14005dc28
mov rcx, qword [rsp + 0xf0]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov qword [rcx + 8], rsi
mov dword [rsp + 0xd8], ebx
jmp 0x14005dbac
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005dbbc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005dbcc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005dbde
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
jle 0x14005dc06
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0x60]
call fcn.14005cdc0
lea rdx, [0x1400bfc00]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14005dc3a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0x78]
call fcn.14005cdc0
lea rdx, [0x1400bfc00]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005dc60
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r13, r9
mov r12, r8
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0xc8], 0x80004005
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov eax, dword [rdx]
inc eax
mov r14d, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rsi]
mov r8, qword [rsi + 8]
mov edx, r14d
mov rcx, rdi
call fcn.140019f50
test eax, eax
jne 0x14005ddb6
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, r15
call sym.DiagsCap.exe_private:_void___cdecl_Hp::Bridge::Server::Services::Registration::CryptographyHelper::CreateTripleDESKey_unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_char____ptr64__unsigned_long_int__unsigned_char____ptr64____ptr64
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14005ddeb
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov qword [rcx + 8], rdi
mov dword [rsp + 0xc8], ebx
jmp 0x14005dd65
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005dd75
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005dd85
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005dd97
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
jle 0x14005ddc9
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x60]
call fcn.14005cdc0
lea rdx, [0x1400bfc00]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14005ddfd
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x78]
call fcn.14005cdc0
lea rdx, [0x1400bfc00]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005e340
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r15d, r8d
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x18], rbx
mov r14, qword [rsp + 0x78]
mov qword [r14], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005e3cd
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005e3cd
mov qword [rsp + 0x20], r14
mov esi, 1
mov r9d, esi
mov r8, qword [rsp + 0x30]
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005e3dd
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140060bf0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0x12c
xor edx, edx
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor bl, bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140060c77
xor eax, eax
lea r8, [rsp + 0x30]
lea r9, str.SYSTEM
nop dword [rax]
movzx edx, word [r8 + rax*2]
inc rax
movzx ecx, word [r9 + rax*2 - 2]
sub edx, ecx
jne 0x140060c68
cmp rax, 7
jne 0x140060c50
movzx eax, bl
mov ecx, 1
test edx, edx
cmove eax, ecx
jmp 0x140060c7a
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140061ad0
add rsp, 0x2a0
pop rbx
ret
Function at 0x1800048c0
Capabilities:
Create directory

Disassembly:
push rdi
push r12
sub rsp, 0x1b8
mov rax, qword [0x1800ed040]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor r12d, r12d
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1800048ed
mov rcx, qword [rcx]
mov qword [rsp + 0x1d8], rbx
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x1e0], rbp
mov qword [rsp + 0x1b0], rsi
mov qword [rsp + 0x1a8], r14
mov qword [rsp + 0x1a0], r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x180004a66
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x180004ab5
mov rbp, r12
lea r15, [0x1800c5b44]
nop
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r15 + rbx], r12b
jne 0x180004947
cmp qword [rdi + 0x18], 0xf
mov r14, rdi
jbe 0x18000495d
mov r14, qword [rdi]
test rbx, rbx
je 0x1800049d0
cmp rbp, rsi
jae 0x1800049d0
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + r15]
mov rcx, r15
cmp r15, rdx
je 0x1800049a3
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rsp + rax + 0x90], 1
cmp rcx, rdx
jne 0x180004990
lea rcx, [rsi + r14]
lea rbx, [r14 + rbp]
cmp rbx, rcx
jae 0x1800049d0
movzx eax, byte [rbx]
cmp byte [rsp + rax + 0x90], r12b
jne 0x1800049c7
inc rbx
cmp rbx, rcx
jb 0x1800049b0
jmp 0x1800049d0
sub rbx, r14
cmp rbx, 0xffffffffffffffff
jne 0x1800049d4
mov rbx, qword [rdi + 0x10]
cmp qword [rdi + 0x10], rbx
mov r8, rbx
xorps xmm0, xmm0
mov qword [rsp + 0x38], r12
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], r12
jbe 0x1800049ff
mov rdx, qword [rdi]
lea rcx, [rsp + 0x28]
call fcn.180007dd0
cmp qword [rsp + 0x38], r12
je 0x180004a4b
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x180004a4b
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
jne 0x180004aab
lea rcx, [rsp + 0x28]
lea rbp, [rbx + 1]
call fcn.180008fd0
mov rsi, qword [rdi + 0x10]
cmp rbp, rsi
jb 0x180004940
mov al, 1
mov r15, qword [rsp + 0x1a0]
mov r14, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18009f3f0
add rsp, 0x1b8
pop r12
pop rdi
ret
lea rcx, [rsp + 0x28]
call fcn.180008fd0
xor al, al
jmp 0x180004a68
Function at 0x180011fd0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180012005
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800090f0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180012124
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x1800120a2
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180012113
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x1800120db
mov r10, qword [rdx]
cmp r10, rax
je 0x1800120d5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180012113
cmp r8, rdx
je 0x1800120ef
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180012135
cmp r8, rdx
jne 0x1800120e0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180012070
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180012113