joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000178c
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [r11 - 0x38], 0
mov rsi, rdx
and dword [rsp + 0x28], 0
mov r8d, 3
xor edx, edx
mov dword [r11 - 0x48], r8d
xor r9d, r9d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400017ec
mov rdx, rdi
lea rcx, str.Failed_to_open_the_drive__ws___n
call fcn.140001008
xor eax, eax
jmp 0x14000185d
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x48]
and dword [rsp + 0x4c], 0
mov r9d, 0xc
and dword [rsp + 0x40], 0
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
mov rcx, rbx
mov eax, dword [rsi + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test eax, eax
jne 0x140001852
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IOCTL_STORAGE_QUERY_PROPERTY_failed___ErrorCode:__u__n
call fcn.140001008
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400021d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140002b28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002b72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002b72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b72
cmp dword [rcx + 0x84], 0xe
jbe 0x140002b72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002b74
xor al, al
add rsp, 0x28
ret

Function at 0x14000eb04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e900
Function at 0x1400135b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001363f
mov rsi, rbx
cmp word [rax], bp
je 0x1400135fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400135e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400135e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010980
mov rdi, rax
test rax, rax
je 0x14001362c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001aea0
mov rbp, rdi
xor ecx, ecx
call fcn.14000f494
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017968
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001797e
mov al, 1
jmp 0x1400179de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001798f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400179dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013dc0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400179dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400179dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400179dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400179de
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001a650
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a678
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001a678
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000270e
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x140006cbe
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14000248b
test eax, eax
je 0x1400013af
jmp 0x140004ee9
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140006c19
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1400041b7
jmp 0x140001843
jmp 0x140006cbe
mov rcx, qword [rsp + 0x70]
call fcn.140002ddb
jmp 0x140002af6
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
jne 0x140002d12
jmp 0x140001396
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x1400075e6
jmp 0x14000248b
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140004c6f
jmp 0x14000465f
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x1400075e6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140004c6f
jmp 0x14000465f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140004ffc
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140007108
jmp 0x140004ee9
Function at 0x14000832c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
sub rsp, 0x50
cmp dword [0x14000d754], 0
mov rbx, rdx
jne 0x1400083db
xor r8d, r8d
test rcx, rcx
jne 0x1400083b2
and qword [r11 - 0x18], rcx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWOF
and qword [r11 - 0x28], rcx
xor r9d, r9d
mov dword [rsp + 0x28], 0xf013f
and dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400083db
mov r8d, dword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov rdx, rbx
call fcn.14000832c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400083db
mov rcx, qword [rcx]
lea rax, [rsp + 0x70]
mov r9d, 4
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x50
pop rbx
ret
Function at 0x140001300
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, rdx
mov rbx, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
xor dil, dil
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x14000133b
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x14000138e
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001389
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001389
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400064fc
test ebx, ebx
jne 0x140001397
mov dil, 1
jmp 0x1400013a1
mov rdx, rsi
mov ecx, ebx
call fcn.140001260
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006610
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001590
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x34], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x400
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1400015f5
mov rax, qword [rax]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001667
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001662
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001662
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400064fc
test ebx, ebx
jne 0x14000170a
cmp dword [rsp + 0x3c], 1
jne 0x1400016a0
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
jmp 0x140001704
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, str.Registry_value__1_is_not_a_string
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rbx, rax
mov dl, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140006610
add rsp, 0x498
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov rbp, rcx
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rsi, r9
mov rbx, r8
xor dil, dil
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001ba2
mov rdx, qword [rax]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001bb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x48]
mov ebx, eax
cmp rdx, 8
jb 0x140001c25
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c20
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400064fc
test ebx, ebx
jne 0x140001c2e
mov dil, 1
jmp 0x140001c38
mov rdx, rsi
mov ecx, ebx
call fcn.140001260
movzx eax, dil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006610
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002e20
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov bl, 1
call fcn.140005e00
test al, al
je 0x140002e47
mov rcx, rdi
call fcn.140006070
movzx ebx, al
test al, al
je 0x140002e83
mov rcx, rdi
call fcn.140001730
test al, al
je 0x140002e62
mov rcx, rdi
call fcn.140001a00
movzx ebx, al
test al, al
je 0x140002e83
mov rcx, rdi
call fcn.140004050
test al, al
je 0x140002e80
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140004860
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbx
push rdi
sub rsp, 0x98
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r8, rcx
lea rcx, [rsp + 0xc8]
call fcn.140004ad0
movzx ebx, al
test al, al
je 0x1400049b2
mov qword [rsp + 0xb0], rbp
lea rcx, str.kernel32
xor ebp, ebp
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xb8], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400048f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0xb8]
call rsi
test eax, eax
je 0x1400048f0
mov eax, ebp
cmp dword [rsp + 0xb8], eax
setne al
jmp 0x1400048f2
mov eax, ebp
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x38], rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
shl eax, 8
xor r8d, r8d
add eax, 0xf003f
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb0]
test rsi, rsi
je 0x140004983
lea rdx, str.Shell
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov rcx, rsi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140004983
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.140001260
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
movzx eax, bl
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x140004790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1060
call fcn.1400066c0
sub rsp, rax
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004834
lea r8d, [rax - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140006610
add rsp, 0x1060
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004860
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov bl, 1
call fcn.140005e00
test al, al
je 0x140002e47
mov rcx, rdi
call fcn.140006070
movzx ebx, al
test al, al
je 0x140002e83
mov rcx, rdi
call fcn.140001730
test al, al
je 0x140002e62
mov rcx, rdi
call fcn.140001a00
movzx ebx, al
test al, al
je 0x140002e83
mov rcx, rdi
call fcn.140004050
test al, al
je 0x140002e80
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140004860
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbx
push rdi
sub rsp, 0x98
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r8, rcx
lea rcx, [rsp + 0xc8]
call fcn.140004ad0
movzx ebx, al
test al, al
je 0x1400049b2
mov qword [rsp + 0xb0], rbp
lea rcx, str.kernel32
xor ebp, ebp
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xb8], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400048f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0xb8]
call rsi
test eax, eax
je 0x1400048f0
mov eax, ebp
cmp dword [rsp + 0xb8], eax
setne al
jmp 0x1400048f2
mov eax, ebp
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x38], rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
shl eax, 8
xor r8d, r8d
add eax, 0xf003f
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb0]
test rsi, rsi
je 0x140004983
lea rdx, str.Shell
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov rcx, rsi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140004983
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.140001260
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
movzx eax, bl
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x140004ad0
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov rsi, r8
mov dword [rsp + 0x20], ebp
mov rbx, rdx
lea r8, [0x1400099f8]
mov rdi, rcx
lea rdx, [0x14000a1d4]
lea r9d, [rbp + 2]
lea rcx, [0x1400099f0]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x140004bb9
call fcn.140004a60
test al, al
je 0x140004b7c
lea r8, [0x1400099f0]
lea edx, [rbp + 8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rbx], 0x38
lea rax, [rsp + 0x30]
mov qword [rbx + 0x10], rbp
mov rdx, rbx
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rbp
mov qword [rbx + 8], rax
mov rcx, qword [rdi]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x140004bae
mov al, 1
jmp 0x140004bcb
mov r9d, 0xffffffff
lea rdx, str.Failed_to_setup_privileges
xor r8d, r8d
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004bc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rsi
call fcn.140001260
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006610
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005160
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rdi, r8
mov rcx, r8
mov rsi, rdx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
test rax, rax
je 0x1400051db
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov r9d, dword [rax + 4]
lea ebx, [r9*2 + 2]
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
test eax, eax
sete al
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005cc0
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
xor bl, bl
mov dword [r11 + 0x20], r12d
mov rsi, r8
mov dword [r11 + 0x18], r12d
mov r15d, edx
mov r14, rcx
test r8, r8
je 0x140005df0
lea rax, [r11 - 0x38]
mov rdx, rcx
mov qword [r11 - 0x48], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x50], rax
xor ecx, ecx
mov qword [r11 - 0x58], r12
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140005df0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005df0
mov ecx, dword [rsp + 0x98]
mov qword [rsp + 0x88], rdi
call fcn.140005230
mov rdi, rax
test rax, rax
je 0x140005deb
mov ecx, dword [rsp + 0x90]
mov qword [rsp + 0x80], rbp
call fcn.140005260
mov rbp, rax
test rax, rax
je 0x140005dcb
lea rax, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x98]
lea rax, [rsp + 0x90]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140005dc3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140005db8
cmp dword [rsp + 0x40], r15d
jne 0x140005db8
mov qword [rsi], rdi
mov bl, 1
jmp 0x140005dc3
mov rcx, rdi
mov qword [rsi], r12
call fcn.140005c90
mov rcx, rbp
call fcn.140005c90
mov rbp, qword [rsp + 0x80]
movzx eax, bl
mov rdi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
movzx eax, bl
jmp 0x140005dd6
movzx eax, bl
add rsp, 0x50
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret