joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418280
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4182cb
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x418301
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4182f7
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea eax, [rbx + 1]
jmp 0x418301
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x418de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rdi
mov ebx, r8d
mov rdi, rdx
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418e3e
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
jmp 0x418e8e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x419720
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov esi, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41978e
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x4197eb
mov rcx, qword [rbx]
mov eax, dword [rcx - 8]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, esi
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
cmp dword [rbp + 0x10], ecx
jne 0x4197cc
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, esi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x419a30
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov rbx, rdx
mov rsi, rcx
mov edi, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x419a8d
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x419ae3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
cmp dword [rsi + 0x10], ecx
jne 0x419acd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
add rsp, 0x58
ret

Function at 0x41a320
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x005e3e40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x005e3f38]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x41a3a1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x005e3f38]
jmp 0x41a3bd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x005e3f38], r11
mov qword [0x005e3ed8], rax
mov rax, qword [0x005c3458]
mov qword [0x005e3db0], r11
mov qword [0x005e3ec0], rdi
mov dword [0x005e3da0], 0xc0000409
mov dword [0x005e3da4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x005c3450]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0055b848]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x005c3458]
jne 0x5555c9
rol rcx, 0x10
test cx, 0xffff
jne 0x5555c5
ret
ror rcx, 0x10
jmp 0x41a320
Function at 0x41d2d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0xa8
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea rdx, [r11 + 0x10]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x24], 1
cmp qword [rbx + 0x10], 0
jne 0x41d365
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, str.empty_name
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005be8c0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea rax, [0x0055bca4]
lea rdx, [0x0055bca0]
test sil, sil
cmovne rdx, rax
call qword [sym.imp.msvcrt.dll_fopen]
mov rsi, rax
test rax, rax
je 0x41d404
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fseek]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fclose]
mov rax, rdi
mov rbx, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
add rsp, 0xa8
ret
Function at 0x41d480
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x68], rdi
mov rdi, rdx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x50], al
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
mov rcx, qword [rbx + 8]
lea rdx, [0x0055bcb4]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rbx, rax
je 0x41d4f8
mov rcx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov r9, rax
test rcx, rcx
mov edx, 1
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret

Function at 0x41d520
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
test rcx, rcx
mov rdi, rdx
lea rdx, [0x0055bcb8]
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rbx, rax
je 0x41d57f
mov rcx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov r9, rax
test rcx, rcx
mov edx, 1
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x41e2e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea r9, [r11 + 0x10]
xor r8d, r8d
mov edx, 0x105
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
mov ebx, dword [rsp + 0x40]
add ebx, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41e392
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
mov rcx, rdi
call fcn.004200b0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x41e3c4
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, [0x0055be38]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x41e450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x105
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x20], 1
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
lea ecx, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x41e760
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea r9, [r11 + 0x10]
xor r8d, r8d
mov edx, 0x105
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
mov ebx, dword [rsp + 0x40]
add ebx, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41e80f
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
mov rcx, rdi
call fcn.004200b0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x41e841
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, str.d:windows_system32
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x421660
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x58], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x400
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x58], 1
mov rcx, qword [rbx + 0x10]
add ecx, 0xffffffff
mov dword [rsp + 0x50], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
lea r8, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x4216db
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
jmp 0x4216f3
mov r8, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r8, qword [r8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x421730
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x58], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x400
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x58], 1
mov rcx, qword [rbx + 0x10]
add ecx, 0xffffffff
mov dword [rsp + 0x50], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4217ac
mov edx, dword [rsp + 0x50]
add edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
jmp 0x4217c4
mov r8, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r8, qword [r8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x421a70
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, 0x9c
mov rbx, rcx
call sub.msvcrt.dll_memset
mov rcx, rbx
mov dword [rbx], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, [rbx + 0xa0]
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, rbx
add rsp, 0x20
pop rbx
ret