joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400174f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r9, [r8 + 0x10]
mov r11, qword [r9 + 0x10]
mov rdi, rdx
mov r10, rcx
jb 0x140017512
mov r9, qword [r9]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r11, r11
je 0x140017544
movabs rbx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + r9]
inc rcx
xor rdx, rax
imul rdx, rbx
cmp rcx, r11
jb 0x140017530
mov r9, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r9, rdx
shl r9, 4
add rcx, r9
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x140017584
cmp rax, r8
jne 0x14001757a
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r9 + rcx + 8], rax
jmp 0x14001758f
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x14001758f
cmp rax, r8
jne 0x14001758f
mov rax, qword [r8]
mov qword [rcx], rax
mov rcx, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rcx], rbx
mov rdx, qword [r8]
mov rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
mov rdx, r8
dec qword [r10 + 0x10]
call fcn.140012900
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140049490
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x380
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x370], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140049552
lea rcx, [rsp + 0x60]
call fcn.140011c30
nop
lea rdx, str.failed_to_get_system_directory
lea rcx, [rsp + 0x70]
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.Hwa::Ux::HwaFrameWnd::InitIsSupportAcrylicBlur
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.1400094c0
jmp 0x140049646
movdqa xmm0, xmmword [0x1400973f0]
movdqu xmmword [rsp + 0x40], xmm0
xor eax, eax
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x30]
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov r8d, 0xa
lea rdx, str._ntdll.dll
lea rcx, [rsp + 0x30]
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140049601
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400495f7
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2c]
call rax
movzx eax, word [rsp + 0x28]
cmp dword [rsp + 0x2c], 0xa
jne 0x1400495f0
cmp eax, 0x42ee
mov byte [0x1400d0dc1], 1
jae 0x1400495f7
mov byte [0x1400d0dc1], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140049646
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049641
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049641
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ba9c
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14006b6b0
add rsp, 0x380
pop rbx
ret
Function at 0x1400540e0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
call qword [sym.imp.DuiLib.dll_public:_struct_HWND______ptr64___cdecl_DuiLib::CWindowWnd::GetHWND_void_const___ptr64]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 9
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
test rdi, rdi
je 0x1400541b2
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp edi, eax
je 0x140054165
mov r8d, 1
mov edx, edi
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edi, edi
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, rbx
lea rdx, [rdi - 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x30], 3
lea rdx, [rdi - 2]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400596d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
mov qword [rcx + 0x20], 0
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140059709
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rbx + 0x18], 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCP140.dll__Cnd_signal]
test eax, eax
je 0x140059723
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x140059739
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14005979b
lea r8, str.MBAMessageCenter
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x14005978e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
jbe 0x140059750
jmp 0x14005979b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14005979b
call fcn.140055240
call qword [sym.imp.MSVCP140.dll__Cnd_do_broadcast_at_thread_exit]
test rdi, rdi
je 0x1400597b4
mov edx, 8
mov rcx, rdi
call fcn.14006ba9c
nop
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005cdb0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x370
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov edx, 1
call fcn.14005c380
test al, al
je 0x14005cf54
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005cf54
movdqa xmm0, xmmword [0x1400973f0]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x28]
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov r8d, 0xb
lea rdx, str.Shcore.dll
lea rcx, [rsp + 0x28]
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14005cf0f
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005cf05
mov ecx, 2
call rax
test eax, eax
je 0x14005cf05
lea rcx, [rsp + 0x50]
call fcn.140011c30
nop
lea rdx, str.set_dpi_awareness_failed.
lea rcx, [rsp + 0x60]
call fcn.140013250
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.DPIAware
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.1400094c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14005cf54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cf4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005cf4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ba9c
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14006b6b0
add rsp, 0x370
pop rbx
ret
Function at 0x14006a440
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
jne 0x14006a4d0
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
mov eax, 1
cmp dword [rsp + 0x70], eax
cmove ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006b6b0
add rsp, 0x80
pop rbx
ret
Function at 0x14006a4f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
call fcn.14005c380
test al, al
je 0x14006a6f7
call fcn.14006a440
test eax, eax
je 0x14006a6f7
mov qword [rsp + 0x330], rbx
call fcn.14006a080
mov rbx, rax
test rax, rax
je 0x14006a6f3
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rsp + 0xe0]
mov ecx, 0x208
mov edx, 0x104
rep stosb byte [rdi], al
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140096a70]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call qword [sym.imp.huawei_secure_c.dll_wcscat_s]
test eax, eax
jne 0x14006a6f3
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400d2a40], eax
jle 0x14006a5f6
lea rcx, [0x1400d2a40]
call fcn.14006bd08
cmp dword [0x1400d2a40], 0xffffffff
jne 0x14006a5f6
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x1400d2a40]
mov qword [0x1400d2a48], rax
call fcn.14006bca8
mov rcx, qword [0x1400d2a48]
mov qword [rsp + 0x338], rsi
test rcx, rcx
je 0x14006a6e6
lea rdx, str.CreateProcessWithTokenW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14006a6e6
xor edx, edx
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ecx, 0x18
mov qword [rsp + 0x58], rax
mov r9, r14
mov qword [rsp + 0x60], rax
mov r8, rbp
rep stosb byte [rdi], al
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 1]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x20
call rsi
mov edi, eax
cmp eax, 1
jne 0x14006a6af
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rsi, qword [rsp + 0x338]
mov rbx, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14006b6b0
add rsp, 0x300
pop r14
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14006a6ba
xor eax, eax
jmp 0x14006a6c2
xor edi, edi
mov dword [rsp + 0x28], 1
mov r9, r14
mov qword [rsp + 0x20], rdi
mov r8, rbp
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta dil
mov eax, edi
jmp 0x14006a6ca
Function at 0x14006a730
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x58], 0x104
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
lea rdx, [0x14008927c]
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov dword [rsp + 0x40], 1
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14006a85e
mov ecx, dword [rsp + 0x58]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x70]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x104
cmp qword [r14 + 0x18], 8
jb 0x14006a7f0
mov r14, qword [r14]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8, rsi
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14006a855
mov qword [rsp + 0x60], rbp
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
cmp eax, 1
jne 0x14006a855
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14006b6b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14006a890
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor esi, esi
mov ecx, eax
mov qword [rsp + 0x20], rsi
mov edi, esi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp eax, 1
jne 0x14006a8e6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 0x104
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14006a93a
cmp edi, 1
jne 0x14006a92f
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], 7
mov rcx, rbx
mov word [rbx], si
call sym.PCManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006b6b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14006ade0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [rdx]
mov rbp, 0xffffffffffffffff
mov qword [rdx + 8], rax
mov r14d, r8d
cmp qword [rcx + 0x10], 0
mov rbx, rdx
mov rdi, rcx
lea r15d, [rbp + 3]
je 0x14006af1f
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, rbp
je 0x14006af24
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x14006af12
nop dword [rax]
mov r9d, dword [rsp + 0x28]
test r9d, 0xfffffffb
je 0x14006aefb
lea rcx, [rsp + 0x4c]
mov rax, rbp
inc rax
cmp word [rcx + rax*2], 0
jne 0x14006ae86
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14006ae9d
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
cmp r8, rax
jne 0x14006aee5
lea rdx, [rsp + 0x4c]
test r8, r8
je 0x14006aec4
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x14006aee5
add rcx, r15
add rdx, r15
sub r8, 1
jne 0x14006aeb0
mov rdx, qword [rbx + 8]
cmp qword [rbx + 0x10], rdx
je 0x14006aed8
mov dword [rdx], r9d
add qword [rbx + 8], 4
jmp 0x14006aee5
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14006af70
cmp r14d, 1
jne 0x14006aefb
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 2
test rax, rax
jne 0x14006af12
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x14006ae70
xor ebp, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006af24
mov ebp, 0x57
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 2
test rcx, rcx
cmove ebp, r15d
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14006b6b0
lea r11, [rsp + 0x270]
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
Function at 0x14006b110
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x198
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400c8010]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor ecx, ecx
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x70], ecx
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, 0x220
lea r8d, [rcx + 0x20]
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
jne 0x14006b233
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14006b228
lea rcx, [rsp + 0x80]
call fcn.140011c30
nop
lea rdx, str._PsVerifyAdminPrivilege__CheckTokenMembership_Ret:
lea rcx, [rsp + 0x90]
call fcn.140013250
mov rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140089628]
call fcn.140013250
mov rcx, rax
lea rdx, str.HWPROCESS6::PsVerifyAdminPrivilege
call fcn.140013440
mov rcx, rax
lea rdx, [0x140089624]
call fcn.140013250
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x80]
mov edx, 3
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x80]
call fcn.1400094c0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14006b6b0
add rsp, 0x198
ret
Function at 0x2fc4c9e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4ca822
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4ca8ba
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4ca89e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4ca892
cmp qword [rbp - 0x10], 0
je 0x2fc4ca892
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4ca858
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ca8bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ca9c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4ca9e8
mov eax, 0
jmp 0x2fc4caa36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4caa11
mov eax, 0
jmp 0x2fc4caa36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4caa31
mov eax, 0
jmp 0x2fc4caa36
mov eax, 1
add rsp, 0x20
pop rbp
ret