joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400070f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
mov rdi, r8
mov esi, edx
mov rbx, qword [0x1400d00a0]
mov qword [rsp + 0x48], rbx
lea rdx, str.Service_trying_to_start.
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], 0x428
mov dword [rbx + 0x1c], 2
xor r15d, r15d
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x30], r15d
mov ecx, dword [0x1400cb038]
lea eax, [rcx + 1]
mov dword [0x1400cb038], eax
mov dword [rbx + 0x2c], ecx
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rax, qword [rbx]
mov r8, rdi
mov edx, esi
mov rcx, rbx
call qword [rax + 8]
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x24], r15d
mov qword [rbx + 0x2c], r15
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, rbx
call fcn.140007650
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlPowerModernSleep
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140007214
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EnabledActions
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [0x1400d0098]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r8d, byte [0x1400d0098]
lea rdx, str.System_Supports_Modern_Standby:__d
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
cmp byte [0x1400d0098], r15b
je 0x1400072bd
lea rax, [0x140007910]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x98], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x50]
mov edx, 2
lea rcx, [0x14007a3b8]
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingRegisterNotification]
test eax, eax
je 0x14000728a
mov r8d, eax
lea rdx, str.PowerSettingRegisterNotification_failed:__u
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
lea r9, str.CE7DC567_F47B_4A07_8489_C9DEB372B88F
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400d0090], rax
test rax, rax
jne 0x1400072bd
lea rdx, str.Failed_to_create_notification_event_for_modern_Standby
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], r15d
mov eax, r15d
jmp 0x1400072d1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000d800
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov r8, rdx
lea rdx, str.test.exe
lea rcx, [rsp + 0x38]
call fcn.1400100c0
nop
cmp qword [rax + 0x18], 8
jb 0x14000d856
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d8ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d8a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d8a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
test rbp, rbp
je 0x14000d995
mov sil, 1
mov eax, 1
mov edx, dword [rsp + 0x20]
cmp edx, eax
jle 0x14000d933
lea rcx, [rbp + 8]
nop dword [rax]
mov rdi, qword [rcx]
cmp word [rdi], 0x2f
jne 0x14000d8f5
inc eax
add rcx, 8
cmp eax, edx
jl 0x14000d8e0
jmp 0x14000d933
lea rax, vtable.Hp::Bridge::Security::HPAuthenticodeFacadeBase.0
mov qword [rsp + 0x28], rax
lea r15, vtable.Hp::Bridge::Security::HPAuthenticodeFacade.0
mov qword [rsp + 0x28], r15
lea r8, [0x1400d0290]
mov rdx, rdi
call fcn.140014460
movzx esi, al
test al, al
je 0x14000d92e
mov rdx, rdi
call fcn.1400167e0
movzx esi, al
mov qword [rsp + 0x28], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d978
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000d973
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d98e
mov rcx, r8
call fcn.1400624a0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
jmp 0x14000d9e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d9d0
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000d9cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000da09
mov rcx, r8
call fcn.1400624a0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062480
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
Function at 0x14003e1a0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.14000cb60
nop
xor edx, edx
mov r8d, 0x20a
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 8
jb 0x14003e202
mov rsi, qword [rsi]
mov r8d, 0x105
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14003e2fc
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003e240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003e2d9
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003e260
mov rcx, rbx
call fcn.1400059e0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003e2b9
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e2b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e2b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062480
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_create_storage_directory
lea rcx, [rsp + 0x20]
call fcn.140006620
lea rdx, [0x1400c1310]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_expanded_environment_variable_pointing_to_output_directory
lea rcx, [rsp + 0x20]
call fcn.140006620
lea rdx, [0x1400c1310]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14003e910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x14003e940
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14003e968
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003e96a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003e9cb
test ecx, ecx
jle 0x14003e9a3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14003e9cb
cmp qword [rdi + 0x80], 0
je 0x14003e9cb
lfence
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
out dx, al
dec byte [rdi - 0x24]
mov esp, 0xa912f4ac
fidivr dword [rdi]
in eax, 0xa4
int 0x23
cmp ebp, dword [rsp + rdi + 0x598b4e9c]
invalid
stc
sbb r10b, al
shr ch, 1
jg 0x140140335
out 0x84, eax
outsb dx, byte [rsi]
xchg byte [rcx], al
cmc
invalid
push rdi
mov cl, 0xd5
jbe 0x14014037c
jnp fcn.140140405
invalid
Function at 0x14003e9f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003ea12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14003ea24
lfence
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14003ea4c
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003ea4e
xor ecx, ecx
movsxd rax, ecx
mov rdi, rbp
test ecx, ecx
je 0x14003ea83
cmp rax, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, rbx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003eb24
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003eabe
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x14003eb01
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14003eb24
cmp rbx, rax
ja 0x14003ead0
test rdi, rdi
je 0x14003eb24
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rdi
sub rbx, rax
sub rbp, rbx
mov rax, rbp
lfence
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
lodsd eax, dword [rsi]
inc dword [0x1059fb36e]
Function at 0x14003ef40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003ef6d
xor eax, eax
jmp 0x14003f0c5
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14003ef98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14003ef98
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 0x14003f0c5
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f0b8
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003efdb
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 0x14003f006
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 0x14003f0bd
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 0x14003f075
sub eax, 1
je 0x14003f075
cmp eax, 2
jne 0x14003f0b8
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 0x14003f0bd
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f0a6
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 0x14003f0b8
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14003f0bd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140062480
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003f400
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003f4d6
cmp byte [rcx + 0x71], 0
je 0x14003f4d6
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003f4d2
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 0x14003f494
sub eax, 1
je 0x14003f498
cmp eax, 2
jne 0x14003f4d2
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062480
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003f4c9
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 0x14003f4d2
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003f47c
xor al, al
jmp 0x14003f47c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062480
add rsp, 0x60
pop rbx
ret
Function at 0x14005c960
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, [0x1400cb0d8]
mov rcx, 0xffffffff80000002
cmovae rdx, qword [0x1400cb0d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test eax, eax
jne 0x14005c9f1
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x14005c9bb
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14005c9c5
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 0x14005ca2c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005ca27
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005ca4f
mov rcx, r8
call fcn.1400624a0
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 0x14005d7d0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rdx + 0x10]
mov rbx, rcx
test rax, rax
je 0x14005d85e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x14005d85e
add eax, eax
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005d7fb
mov rdx, qword [rdx]
cmp qword [r8 + 0x18], 8
lea eax, [r10 + r10]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rdx
jb 0x14005d812
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 0x14005d84e
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 0x14005d870
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400cb008]
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 0x14005d986
cmp dword [rdx], 0
jbe 0x14005d986
mov eax, dword [r8 + 0x10]
add eax, eax
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005d8c3
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 0x14005d976
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
shr r8, 1
call fcn.14000c620
mov rdx, rax
mov rcx, rsi
call fcn.140009080
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14005d972
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d96d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d96d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
xor ebx, ebx
jmp 0x14005d986
mov rcx, qword [rdi]
lea rdx, str.Problem_while_decrypting_the_data.
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.140062480
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005de10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push r14
sub rsp, 0x38
mov r14, r9
mov rsi, rdx
test rdx, rdx
je 0x14005dee1
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 0x14005deca
lfence
mov r9d, ebp
mov r8, rsi
mov edx, ebp
mov rcx, rdi
call fcn.140019ff0
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 0x14005deb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005deb1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005dec8
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 0x14005e200
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 0x14005e2f0
test ebp, ebp
je 0x14005e2f0
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 0x14005e2e0
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 0x14005e2cc
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, [0x1400aa350]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x14005e2b3
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 0x14005e2b8