joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b470
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.14000a3f0
mov ebx, eax
test eax, eax
jne 0x14000b5ae
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000b571
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000b470
mov ebx, eax
test eax, eax
jne 0x14000b5ae
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000b520
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000b586
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14000b5a0
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14000b730
jmp 0x14000b5ac
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000b5c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
mov dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140019e70
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b730
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000b7a4
lea rcx, [0x14001ea50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je case.default.0x14000b7bf
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000b7bf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000b7bf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
xchg esp, eax
int3
sbb al, 0x32
sbb eax, 0x41f66eb
or bl, byte [rsi]
invalid
jp 0x14004600c
pop rsi
push rbx
mov dl, byte [rsi]
xor al, 0x7f
jb 0x140046039
movabs dword [0x41aaffd37364288a], eax
cdq
sbb edi, dword [rsp + rbx*4 + 0x33]
pop qword [rbx]
ret

Function at 0x14000bcb0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x14000bcf0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x14000bd0b
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x14000bd15
inc eax
mov ecx, eax
add r8d, eax
add rdx, rcx
cmp eax, 1
jne 0x14000bd11
mov rcx, qword [r11]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret
Function at 0x14000da40
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 0x14000da73
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 0x14000dab9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000dab4
nop
cmp rbx, rcx
jae 0x14000dab9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x14000daa0
cmp rbx, rcx
jb 0x14000dabd
xor eax, eax
jmp 0x14000dac9
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 0x140015cc0
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0x590
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rdi, rcx
call fcn.140015f30
test eax, eax
je 0x140015cf1
mov eax, 1
jmp 0x140015dda
lea rdx, [rsp + 0x71]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140015ed3
cmp eax, 0x104
je 0x140015ed3
lea ecx, [rax + 1]
add eax, 2
mov byte [rsp + 0x70], 0x22
mov byte [rsp + rcx + 0x70], 0x22
cmp eax, 0x106
jae 0x140015f1c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x5a8], rbx
mov byte [rsp + rax + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140015df3
lea rdx, [rsp + 0x180]
mov r8d, 0x400
mov ecx, 0xd80a
call fcn.140014710
test eax, eax
jne 0x140015db9
lea r8, str.Could_not_open_Service_Manager
lea rcx, [rsp + 0x180]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140015db9
cmp eax, 0xc
je 0x140015ef0
cmp eax, 0x16
je 0x140015ee5
cmp eax, 0x22
je 0x140015ee5
cmp eax, 0x50
jne 0x140015eda
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rbx, qword [rsp + 0x5a8]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.140019e70
add rsp, 0x590
pop rdi
ret
xor ecx, ecx
lea rax, str.RPCSS
add rdi, 0x68
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov r8, rdi
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140015eb7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x180]
mov r8d, 0x400
mov ecx, 0xd80b
call fcn.140014710
test eax, eax
jne 0x140015eac
lea r8, str.Could_not_start_service
lea rcx, [rsp + 0x180]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140015eac
cmp eax, 0xc
je 0x140015f11
cmp eax, 0x16
je 0x140015f06
cmp eax, 0x22
je 0x140015f06
cmp eax, 0x50
jne 0x140015efb
xor r9d, r9d
mov r8, rdi
jmp 0x140015dc0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140015dd2
xor eax, eax
jmp 0x140015dda
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
call fcn.140019b48
int3
Function at 0x140015fb0
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x170
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r9, rdx
mov edx, pe_nt_image_headers64
mov rbx, rcx
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x60]
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR120.dll__vsnprintf_s]
cmp dword [rbx + 0x18c], 0
lea rax, [rsp + 0x60]
mov byte [rsp + 0x15f], 0
mov qword [rsp + 0x50], rax
jne 0x140016022
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR120.dll_puts]
lea rdx, [rbx + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rbx, rax
test rax, rax
je 0x140016078
xor ecx, ecx
mov r9d, 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
lea edx, [r9 + 3]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140019e70
add rsp, 0x170
pop rbx
ret
Function at 0x140016de0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
movzx ebp, dl
mov rbx, rcx
call fcn.140018940
test eax, eax
jne 0x140016e16
mov eax, 0x80004005
jmp 0x140016fd0
lea rax, str.APPID
mov qword [rsp + 0x70], rax
lea rax, [0x140020980]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0x70]
mov edx, 0x65
lea r8d, [rdx - 0x64]
mov rcx, qword [0x14002bc70]
call fcn.140018ed0
test eax, eax
js 0x140016fd0
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
mov r9d, 0x20006
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x58]
call fcn.14000a3f0
test eax, eax
je 0x140016e9e
mov ecx, eax
call fcn.140004720
mov ebx, eax
jmp 0x140016fb1
mov rdi, r14
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r14d
mov qword [rsp + 0x80], r14
mov qword [rsp + 0xc8], r14
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DE4AB1A4_4E82_4FD8_B712_CCE0D79C17D5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140016f90
mov dword [rsp + 0x78], r14d
mov rdi, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rdi
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test bpl, bpl
jne 0x140016f33
mov ebx, r14d
jmp 0x140016f99
lea rcx, [rbx + 0x68]
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
je 0x140016f7d
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140016f50
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbx
call fcn.140015cc0
test eax, eax
jne 0x140016f2e
mov ebx, 0x80004005
jmp 0x140016f99
mov ecx, eax
call fcn.140004720
mov ebx, eax
test rdi, rdi
je 0x140016fac
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r14d
cmp qword [rsp + 0x58], 0
je 0x140016fc9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop r14
pop rdi
pop rbp
ret
Function at 0x140018510
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15d, edx
mov rdi, rcx
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov r9d, 0x20019
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x38]
call fcn.14000a3f0
mov ebx, eax
test eax, eax
je 0x14001858e
mov dword [rdi + 0x17c], eax
jmp 0x1400186e0
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov r9d, 0x20019
lea r8, str.DE4AB1A4_4E82_4FD8_B712_CCE0D79C17D5
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000a3f0
mov ebx, eax
test eax, eax
jne 0x1400186bd
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, eax
test eax, eax
jne 0x14001862b
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14001860e
lea ecx, [rbx + 0xd]
jmp 0x14001862b
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140018624
cmp byte [rbp + rax - 0x71], 0
je 0x140018628
mov ecx, recv
jmp 0x14001862b
mov byte [rbp - 0x70], 0
mov ecx, r12d
mov eax, r12d
mov edx, 1
test ecx, ecx
cmove eax, edx
mov dword [rdi + 0x18c], eax
test eax, eax
je 0x140018683
lea rax, [rdi + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [0x1400195a0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x14001867b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x17c], eax
mov ebx, dword [rdi + 0x17c]
jmp 0x1400186c3
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test eax, eax
jns 0x1400186ac
cmp eax, 0x80010106
jne 0x1400186c3
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400186b0
jmp 0x1400186c3
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.140018150
mov ebx, eax
mov dword [rdi + 0x17c], eax
cmp qword [rsp + 0x50], 0
je 0x1400186db
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
cmp qword [rsp + 0x38], 0
je 0x1400186f8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov eax, ebx
mov dword [rsp + 0x40], r12d
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140019e70
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x140018730
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140018758
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
lea r8, [0x1400160a0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140018799
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x140018d90
Capabilities:
Delete registry value

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbp
call fcn.140018940
test eax, eax
jne 0x140018dbd
mov eax, 0x80004005
jmp 0x140018ebb
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
mov r9d, 0x20006
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x40]
call fcn.14000a3f0
test eax, eax
je 0x140018dfd
mov ecx, eax
call fcn.140004720
mov edi, eax
jmp 0x140018e9d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov r9d, 0x20006
lea r8, str.DE4AB1A4_4E82_4FD8_B712_CCE0D79C17D5
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000a3f0
test eax, eax
je 0x140018e34
mov ecx, eax
call fcn.140004720
jmp 0x140018e7f
lea rdx, str.LocalService
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea rax, str.APPID
mov qword [rsp + 0x58], rax
lea rax, [0x140020980]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r9, [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 0x65]
mov rcx, qword [0x14002bc70]
call fcn.140018ed0
mov edi, eax
cmp qword [rsp + 0x28], 0
je 0x140018e99
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], ebp
cmp qword [rsp + 0x40], 0
je 0x140018eb5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov eax, edi
mov rbp, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140019610
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14002bdd9], 0
mov ebx, r9d
je 0x14001962b
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea r8, [rsp + 0x20]
lea rcx, [0x14002be80]
mov rdx, rax
call fcn.140016680
cmp al, 1
jne 0x140019663
lea rcx, [0x14002be80]
mov edx, ebx
call fcn.140018510
mov ebx, eax
jmp 0x140019667
mov ebx, dword [rsp + 0x20]
cmp dword [0x14002c00c], 0
jne 0x14001967f
cmp byte [0x14002bee2], 0
je 0x14001967f
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400079a0
Capabilities:
Query or enumerate registry value

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400af008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 9
jb 0x14000d8af
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14000d6ec
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str.test.exe
lea rcx, [rsp + 0x58]
call fcn.14000cab0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14000d774
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d76f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d76f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059820
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
test rbp, rbp
je 0x14000d836
mov sil, 1
mov ecx, 1
mov edx, dword [rsp + 0x40]
cmp edx, ecx
jle 0x14000d7e7
lea rax, [rbp + 8]
mov rdi, qword [rax]
cmp word [rdi], 0x2f
jne 0x14000d7ba
inc ecx
add rax, 8
cmp ecx, edx
jl 0x14000d7a5
jmp 0x14000d7e7
lea rax, vtable.Hp::Bridge::Security::HPAuthenticodeFacade.0
mov qword [rsp + 0x48], rax
lea r8, [0x1400b4190]
mov rdx, rdi
call fcn.140013bd0
movzx esi, al
test al, al
je 0x14000d7e7
mov rdx, rdi
call fcn.140016680
movzx esi, al
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d830
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000d82b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d8a8
mov rcx, r8
call fcn.140059820
movzx eax, sil
jmp 0x14000d873
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d871
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000d86c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d8a8
mov rcx, r8
call fcn.140059820
xor al, al
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140059800
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140006cb0
nop
int3