joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400035e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
mov dword [rbp + 7], edx
lea r8, str.DSDFunctionKeyCtlServiceProc::SetSupportAppFlag
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
lea rsi, str.DSDFunctionKeyCtlServiceProc.cpp
lea r14, str.__DSDFunctionKeyCtlServiceProc::SetSupportAppFlag_
lea r15, [0x14004b4ac]
lea rdx, str.ENTER__s
lea rcx, [rbp + 0x17]
mov qword [rbp + 0xf], r8
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r15
mov dword [rbp + 0x1f], 0xc2
mov dword [rbp + 0x37], 3
call fcn.1400028a0
mov r9d, dword [rbp + 7]
lea r8, str.dwSupportValue
lea rdx, str._s__0x_08X
lea rcx, [rbp - 0x29]
xor edi, edi
mov qword [rbp - 0x29], rsi
mov dword [rbp - 0x21], 0xc6
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov qword [rbp - 1], rdi
mov dword [rbp - 9], 3
call fcn.1400028a0
lea rax, [rbp - 1]
lea rdx, str.SYSTEMCurrentControlSetServicesDSDFunctionKeyCtlService
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000370a
mov dword [rbp - 0x21], 0xc7
mov ebx, 0x80004005
lea rdx, str.Error_Code:_0x_X
lea rcx, [rbp - 0x29]
mov r8d, ebx
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], edi
call fcn.1400028a0
jmp 0x14000377f
mov rcx, qword [rbp - 1]
lea rax, [rbp + 7]
lea rdx, str.SupportApp
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140003742
mov dword [rbp - 0x21], 0xc8
jmp 0x1400036e1
mov rcx, qword [rbp - 1]
lea rax, [rbp + 7]
lea rdx, str.OnlineMeetingsSupport
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000377d
mov dword [rbp - 0x21], 0xc9
jmp 0x1400036e1
mov ebx, edi
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140003792
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 1], rdi
mov r8, qword [rbp + 0xf]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x17]
call fcn.1400028a0
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003e90
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
mov edi, edx
lea r8, str.DSDFunctionKeyCtlServiceProc::IsSession0Connected
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
lea rsi, str.DSDFunctionKeyCtlServiceProc.cpp
lea r14, str.__DSDFunctionKeyCtlServiceProc::IsSession0Connected_
lea r15, [0x14004b4ac]
lea rdx, str.ENTER__s
lea rcx, [rbp + 0x17]
mov qword [rbp + 0xf], r8
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r15
mov dword [rbp + 0x1f], 0x130
mov dword [rbp + 0x37], 3
call fcn.1400028a0
xor eax, eax
lea r9, [rbp - 1]
mov r8d, 5
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
lea rax, [rbp + 7]
mov edx, edi
xor ecx, ecx
mov bl, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140003fa8
mov rcx, qword [rbp - 1]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003f60
test rax, rax
je 0x140003fa2
mov r8, rcx
lea rdx, str.WTSUserName_:__s
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rsi
mov dword [rbp - 0x21], 0x13e
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], 3
call fcn.1400028a0
mov rcx, qword [rbp - 1]
xor bl, bl
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea r8, str.dwSessionID
lea rdx, str._s___d
lea rcx, [rbp - 0x29]
mov r9d, edi
mov qword [rbp - 0x29], rsi
mov dword [rbp - 0x21], 0x144
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], 3
call fcn.1400028a0
lea rax, [0x14004dbe8]
lea r8, [0x14004dbf0]
test bl, bl
lea rdx, str.Session0_Connected_:__s
lea rcx, [rbp - 0x29]
cmovne r8, rax
mov qword [rbp - 0x29], rsi
mov dword [rbp - 0x21], 0x145
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], 3
call fcn.1400028a0
mov r8, qword [rbp + 0xf]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x17]
call fcn.1400028a0
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140004d40
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x58
lea rcx, str.C:Program_FilesDynabookSystem_SettingDSHost.exe
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004dd4
lea rcx, str.C:Program_FilesDynabookSystem_SettingTosSettingsHost.exe
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004dd4
lea rcx, str.C:Program_FilesTOSHIBASystem_SettingTosSettingsHost.exe
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004dd4
lea rcx, str.C:Program_FilesTOSHIBASystem_SettingTCrdMain_Win8.exe
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140004dd4
lea rax, str.DSDFunctionKeyCtlServiceProc.cpp
lea rdx, str.The_Desktop_version_is_not_installed
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.__DSDFunctionKeyCtlServiceProc::FoundSettingsWin32App_
mov dword [rsp + 0x28], 0x243
mov qword [rsp + 0x30], rax
lea rax, [0x14004b4ac]
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x38], rax
call fcn.1400028a0
xor al, al
add rsp, 0x58
ret
lea rax, str.DSDFunctionKeyCtlServiceProc.cpp
lea rdx, str.PC_has_installed_the_Desktop_version
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.__DSDFunctionKeyCtlServiceProc::FoundSettingsWin32App_
mov dword [rsp + 0x28], 0x23e
mov qword [rsp + 0x30], rax
lea rax, [0x14004b4ac]
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x38], rax
call fcn.1400028a0
mov al, 1
add rsp, 0x58
ret
Function at 0x140005180
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
lea r8, str.DSDFunctionKeyCtlServiceProc::IsForcedToRun
lea rbx, str.DSDFunctionKeyCtlServiceProc.cpp
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
lea rdi, str.__DSDFunctionKeyCtlServiceProc::IsForcedToRun_
lea rsi, [0x14004b4ac]
lea rdx, str.ENTER__s
lea rcx, [rbp + 0x1f]
mov qword [rbp + 0x17], r8
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x37], rsi
mov dword [rbp + 0x27], 0x27d
mov dword [rbp + 0x3f], 3
call fcn.1400028a0
lea rax, [rbp + 0x13]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
lea r8, str.ForcedToRun
mov qword [rsp + 0x28], rax
lea rdx, str.SYSTEMCurrentControlSetServicesDSDFunctionKeyCtlService
mov r9d, 0x10
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], 0
mov dword [rbp + 0x13], 4
mov dword [rbp + 0xf], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000528c
lea rdx, str.Error_Code:_0x_X
lea rcx, [rbp - 0x19]
mov r8d, 0x80004005
mov qword [rbp - 0x19], rbx
mov dword [rbp - 0x11], 0x282
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rsi
mov dword [rbp + 7], 0
call fcn.1400028a0
mov ecx, dword [rbp + 0xf]
lea rdx, [0x14004dbe8]
lea rax, [0x14004dbf0]
test ecx, ecx
mov dword [rsp + 0x28], ecx
lea r9, str.ForcedToRun
cmovne rax, rdx
lea r8, [0x14004ae90]
lea rcx, [rbp - 0x19]
lea rdx, str._s__s:__s___d_
mov qword [rbp - 0x19], rbx
mov dword [rbp - 0x11], 0x286
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rsi
mov dword [rbp + 7], 3
mov qword [rsp + 0x20], rax
call fcn.1400028a0
cmp dword [rbp + 0xf], 0
mov r8, qword [rbp + 0x17]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x1f]
setne bl
call fcn.1400028a0
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140005e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005e53
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005e99
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005e94
nop
cmp rbx, rcx
jae 0x140005e99
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140005e80
cmp rbx, rcx
jb 0x140005e9d
xor eax, eax
jmp 0x140005ea9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007f30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x60
mov ebp, dword [0x14006ee38]
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140007fb9
lea rcx, str.ExtKeyboardEvent.cpp
xor ebx, ebx
lea rdx, str.Error_Code:_0x_X
mov qword [rsp + 0x30], rcx
lea rcx, str.__CExtKeyboard::LoadExtKeyboardModule_
mov r8d, 0x80004005
mov qword [rsp + 0x40], rcx
lea rcx, [0x14004b4ac]
mov dword [rsp + 0x38], 0x4e
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x50], ebx
call fcn.1400028a0
mov eax, 0x80004005
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov qword [rdi + 0x38], rbx
xor ebx, ebx
mov rcx, rdi
mov dword [rdi + 0x44], ebx
mov qword [rsp + 0x70], rsi
call fcn.1400080c0
mov esi, eax
test eax, eax
jns 0x140008020
lea rcx, str.ExtKeyboardEvent.cpp
lea rdx, str.Error_Code:_0x_X
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea rcx, str.__CExtKeyboard::LoadExtKeyboardModule_
mov dword [rsp + 0x38], 0x52
mov qword [rsp + 0x40], rcx
lea rcx, [0x14004b4ac]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
call fcn.1400028a0
mov eax, esi
jmp 0x1400080a1
mov rax, qword [rdi + 0x38]
lea r9, [rdi + 0x18]
lea r8, [0x140007d00]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [r9], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14000809c
lea rcx, str.ExtKeyboardEvent.cpp
lea rdx, str.Error_Code:_0x_X
mov r8d, 0x80004003
mov qword [rsp + 0x30], rcx
lea rcx, str.__CExtKeyboard::LoadExtKeyboardModule_
mov dword [rsp + 0x38], 0x56
mov qword [rsp + 0x40], rcx
lea rcx, [0x14004b4ac]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
call fcn.1400028a0
mov eax, 0x80004003
jmp 0x1400080a1
mov dword [rdi + 0x40], ebp
mov eax, ebx
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400080c0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
mov esi, 1
mov rbx, rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], rax
mov dword [rcx + 0x28], eax
mov rax, qword [rcx + 0x38]
lea edx, [rsi + 2]
lea r8d, [rsi + 0xf]
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x38], 0x4ff01
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x34], 0x2100
mov dword [rbp - 0x28], 0x1ff02
mov dword [rbp - 0x24], 0x2100
mov dword [rbp - 0x18], 0x4ffbc
mov dword [rbp - 0x14], 0x2100
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14000819f
lea rcx, str.ExtKeyboardEvent.cpp
lea rdx, str.Error_Code:_0x_X
mov r8d, 0x80004005
mov qword [rbp - 0x60], rcx
lea rcx, str.__CExtKeyboard::RegistryKeyoardHIDDevice_
mov dword [rbp - 0x58], 0x7c
mov qword [rbp - 0x50], rcx
lea rcx, [0x14004b4ac]
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x60]
call fcn.1400028a0
mov eax, 0x80004005
jmp 0x1400081a4
mov dword [rbx + 0x28], esi
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140009a10
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
lea r8, str.CFuncKeyLibProc::OnCreate
mov qword [r11 - 0x58], r8
lea rbp, str.FuncKeyLibProc.cpp
mov qword [r11 - 0x50], rbp
mov dword [rsp + 0x70], 0x76
lea r14, str.__CFuncKeyLibProc::OnCreate_
mov qword [r11 - 0x40], r14
lea r15, [0x14004b4ac]
mov qword [r11 - 0x38], r15
mov dword [r11 - 0x30], 3
lea rdx, str.ENTER__s
lea rcx, [r11 - 0x50]
call fcn.1400028a0
nop
mov qword [rdi], rbx
mov rcx, rdi
call fcn.14000a5e0
test rsi, rsi
je 0x140009acd
mov rax, qword [rsi + 8]
mov qword [rdi + 8], rax
xor esi, esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140009590]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140009b2b
mov ebx, 0x80004003
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], 0x80
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], esi
mov r8d, ebx
lea rdx, str.Error_Code:_0x_X
lea rcx, [rsp + 0x30]
call fcn.1400028a0
jmp 0x140009b7f
call fcn.14000b2b0
movzx eax, al
mov dword [rdi + 0x34], eax
test eax, eax
je 0x140009b49
call fcn.1400091e0
mov rcx, rax
call fcn.140011040
jmp 0x140009b60
xor r9d, r9d
mov edx, 0xc8
mov r8d, 0x2bf20
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetTimer]
call fcn.140008ff0
mov rdx, qword [rdi]
call fcn.14000b7b0
call fcn.140007990
mov rcx, rax
mov rdx, qword [rdi]
call fcn.140007f30
mov ebx, esi
mov r8, qword [rsp + 0x60]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x68]
call fcn.1400028a0
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140009bd0
Capabilities:
Terminate thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor eax, eax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
lea r8, str.CFuncKeyLibProc::OnDestroy
mov qword [r11 - 0x40], r8
lea rax, str.FuncKeyLibProc.cpp
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x38], 0x98
lea rax, str.__CFuncKeyLibProc::OnDestroy_
mov qword [r11 - 0x28], rax
lea rax, [0x14004b4ac]
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], 3
lea rdx, str.ENTER__s
lea rcx, [r11 - 0x38]
call fcn.1400028a0
nop
mov edx, 0xc8
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, rbx
call fcn.14000a850
call fcn.140008ff0
mov rcx, rax
call fcn.14000bd70
call fcn.140007990
mov rdi, rax
mov rcx, qword [rax + 0x20]
xor esi, esi
test rcx, rcx
je 0x140009cad
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x44], 1
mov qword [rdi + 0x38], rsi
call fcn.1400091e0
mov rcx, rax
call fcn.140011100
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140009cd9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x38], rsi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140009cf8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov r8, qword [rsp + 0x28]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x30]
call fcn.1400028a0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002f400
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140009d30
Capabilities:
Terminate thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor eax, eax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
lea r8, str.CFuncKeyLibProc::OnEndSession
mov qword [r11 - 0x40], r8
lea rax, str.FuncKeyLibProc.cpp
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x38], 0xab
lea rax, str.__CFuncKeyLibProc::OnEndSession_
mov qword [r11 - 0x28], rax
lea rax, [0x14004b4ac]
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], 3
lea rdx, str.ENTER__s
lea rcx, [r11 - 0x38]
call fcn.1400028a0
nop
mov rcx, rbx
call fcn.14000a850
call fcn.140008ff0
mov rcx, rax
call fcn.14000bd70
call fcn.1400091e0
mov rcx, rax
call fcn.140011100
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140009df2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140009e15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0
mov edx, 0xc8
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_KillTimer]
nop
mov r8, qword [rsp + 0x28]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x30]
call fcn.1400028a0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002f400
add rsp, 0x60
pop rbx
ret
Function at 0x14000a9d0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov ebx, 1
lea r9, [rbp - 0x18]
lea r8d, [rbx + 4]
xor ecx, ecx
mov edi, edx
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea rsi, str.FuncKeyLibProc.cpp
lea r14, str.__CFuncKeyLibProc::IsSession0Connected_
lea r15, [0x14004b4ac]
test eax, eax
je 0x14000aa98
mov rcx, qword [rbp - 0x18]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000aa50
test rax, rax
je 0x14000aa92
mov r8, rcx
lea rdx, str.WTSUserName_:__s
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x38], 0x1ef
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x20], 3
call fcn.1400028a0
mov rcx, qword [rbp - 0x18]
xor ebx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea r8, str.dwChangedSessionId
lea rdx, str._s___d
lea rcx, [rbp - 0x40]
mov r9d, edi
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x38], 0x1f5
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x20], 3
call fcn.1400028a0
lea rax, [0x14004dbe8]
test ebx, ebx
lea r8, [0x14004dbf0]
lea rdx, str.Session0_Connected_:__s
lea rcx, [rbp - 0x40]
cmovne r8, rax
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x38], 0x1f6
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x20], 3
call fcn.1400028a0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000b360
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
mov dword [rbp + 7], edx
lea r8, str.CFuncKeyLibProc::SetPhoneExtendHotkeyStatus
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
lea rsi, str.FuncKeyLibProc.cpp
lea r14, str.__CFuncKeyLibProc::SetPhoneExtendHotkeyStatus_
lea r15, [0x14004b4ac]
lea rdx, str.ENTER__s
lea rcx, [rbp + 0x17]
mov qword [rbp + 0xf], r8
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r15
mov dword [rbp + 0x1f], 0x2c5
mov dword [rbp + 0x37], 3
call fcn.1400028a0
mov r9d, dword [rbp + 7]
lea r8, str.dwExtendStatus
lea rdx, str._s__0x_08X
lea rcx, [rbp - 0x29]
xor edi, edi
mov qword [rbp - 0x29], rsi
mov dword [rbp - 0x21], 0x2c9
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov qword [rbp - 1], rdi
mov dword [rbp - 9], 3
call fcn.1400028a0
lea rax, [rbp - 1]
lea rdx, str.SYSTEMCurrentControlSetServicesDSDFunctionKeyCtlService
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000b48a
mov dword [rbp - 0x21], 0x2ca
mov ebx, 0x80004005
lea rdx, str.Error_Code:_0x_X
lea rcx, [rbp - 0x29]
mov r8d, ebx
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], edi
call fcn.1400028a0
jmp 0x14000b4c4
mov rcx, qword [rbp - 1]
lea rax, [rbp + 7]
lea rdx, str.PhoneHotkeyExtend
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000b4c2
mov dword [rbp - 0x21], 0x2cb
jmp 0x14000b461
mov ebx, edi
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14000b4d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 1], rdi
mov r8, qword [rbp + 0xf]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x17]
call fcn.1400028a0
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret