joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088342
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bcf08]
test eax, eax
je 0x1400883da
lea rax, [0x1400bcee0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bcf10]
mov qword [rbp - 8], rax
jmp 0x1400883be
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 0x1400883b2
cmp qword [rbp - 0x10], 0
je 0x1400883b2
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 0x140088378
lea rax, [0x1400bcee0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400883db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400884e0
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 0x140088508
mov eax, 0
jmp 0x140088556
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 0x140088531
mov eax, 0
jmp 0x140088556
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 0x140088551
mov eax, 0
jmp 0x140088556
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008855c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400885da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400885d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400885d1
mov rax, qword [rbp - 8]
jmp 0x1400885ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400885a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004450
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x140004579
lea rdx, [rsi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x140004558
xor eax, eax
lea rcx, [rsi + 8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rcx], 1
mov rax, qword [rsp + 0x40]
lea rcx, str.Configuring_service
mov dword [rax + 4], 0x3e8
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0x3e8
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], 0x3e8
mov dword [rsp + 0x38], 3
call fcn.140007890
lea r8, [rsp + 0x20]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140004534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rsi
ret
Function at 0x1400046a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor eax, eax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x14000478f
lea rdx, [rdi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x14000477e
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140004745
mov edx, dword [rsp + 0x78]
mov bl, 1
jmp 0x140004753
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
test bl, bl
jne 0x14000476a
lea rcx, str.get_status_failed.__error___d
call fcn.140007890
mov dword [rsp + 0x80], edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004795
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004795
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp bl, 1
jne 0x1400047d2
mov eax, dword [rsp + 0x34]
cmp eax, 4
je 0x1400047bd
cmp eax, 3
je 0x1400047bd
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov edx, dword [rsp + 0x80]
lea rcx, str.get_status_failed.__error___d
call fcn.140007890
mov rsi, qword [rsp + 0x88]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140004800
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r8
mov r13, rdx
mov r12, rcx
xor bl, bl
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004954
lea rdx, [r12 + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140004941
xor r8d, r8d
lea rdx, [0x140019e4c]
mov rcx, r13
call fcn.140005c40
mov dword [rsp + 0xc8], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400048fe
mov bl, 1
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400049a0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.1400058e0
nop
cmp qword [rsp + 0x80], 8
jb 0x1400048f5
mov rcx, qword [rsp + 0x68]
call fcn.140008eb0
mov edx, dword [rsp + 0xc8]
jmp 0x14000491e
mov edx, dword [rsp + 0xc8]
jmp 0x14000491e
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.get_status___failed___error___u
call fcn.140007890
test bl, bl
jne 0x140004936
lea rcx, str.get_status___failed.__error___d
call fcn.140007890
test rbp, rbp
je 0x140004936
mov dword [rbp], edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
jmp 0x14000495c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400050e0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14001e0c8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x1400051c7
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x2a8], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, [rbx + 0x220]
lea rdx, [rbx + 0x20]
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rsi, rax
je 0x1400051ae
mov rdx, rax
mov rcx, rbx
call fcn.140005310
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400051b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x2a8]
jmp 0x1400051cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140004450
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400089d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret

Function at 0x140005200
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbp, rax
je 0x1400052f4
lea rdx, [rsi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400052ce
mov rcx, rsi
call fcn.1400046a0
test al, al
je 0x140005267
mov rdx, rdi
mov rcx, rsi
call fcn.140005430
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000529f
mov rcx, rdi
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x40]
mov al, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140005310
Capabilities:
Query service status
Start service

Disassembly:
push rbx
sub rsp, 0x60
test rdx, rdx
mov rbx, rdx
je 0x14000541f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
jne 0x140005419
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea edi, [rax + 0x1388]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
lea r9d, [rsi + 0x24]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140005380
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
je 0x1400053d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400053f1
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400053c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
jne 0x140005387
lea rcx, str.Service_is_running.
call fcn.140007890
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov al, 1
add rsp, 0x60
pop rbx
ret
cmp dword [rsp + 0x34], 4
je 0x1400053d0
lea rcx, str.Service_did_not_enter_the_running_state
call fcn.140007890
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
xor al, al
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x140005430
Capabilities:
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x60
test rdx, rdx
mov rdi, rdx
je 0x140005518
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005512
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [rsp + 0x34], 1
lea ebx, [rax + 0x1388]
je 0x1400054c9
xor esi, esi
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1400054ea
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400054c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 1
jne 0x140005480
lea rcx, str.Service_stopped_successfully
call fcn.140007890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov al, 1
add rsp, 0x60
pop rdi
ret
cmp dword [rsp + 0x34], 1
je 0x1400054c9
lea rcx, str.Service_did_not_stop
call fcn.140007890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
xor al, al
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x60
pop rdi
ret
Function at 0x1400065b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x850
mov rax, qword [0x14001e0c8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbp, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], 0
call fcn.14000ac20
lea rcx, str.GetInstalledVidPids__
mov dword [rsp + 0x38], 0x400
xor ebx, ebx
call fcn.140007890
lea r8, str.ProdInstalled
lea rdx, str.SOFTWAREWow6432NodeHewlettPackardSISetup_
lea rcx, str.GetValueFromHKLM__s__s
mov qword [rsp + 0x30], rbx
call fcn.140007890
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREWow6432NodeHewlettPackardSISetup_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
mov edi, eax
je 0x14000668e
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea rdx, str.ProdInstalled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140006760
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov qword [rsp + 0x868], rsi
lea rsi, [rsp + 0x40]
not rcx
cmp rcx, 1
je 0x14000671e
nop
nop
cmp ebx, 0x64
je 0x14000674b
test rbp, rbp
je 0x1400066e4
mov ecx, ebx
mov r8, rsi
mov edx, 0x100
shl rcx, 9
add rcx, rbp
call fcn.140008ec0
lea rcx, str.__Installed_VidPid___s
mov rdx, rsi
add ebx, 1
call fcn.140007890
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rsi, [rsi + rcx*2]
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x1400066c0
mov eax, ebx
mov rsi, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400089d0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, str.WARNING__Exceeded_max_number_of_installed_vid_pids___d_
mov edx, 0x64
call fcn.140007890
mov eax, ebx
jmp 0x14000671e
mov eax, ebx
jmp 0x140006726
Function at 0x140007b70
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x14001e0c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x230], 0
call fcn.14000ac20
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x30], 0
call fcn.14000ac20
test rbx, rbx
je 0x140007cae
mov qword [rsp + 0x458], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x458]
not rcx
cmp rcx, 1
je 0x140007cae
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x100
call fcn.140008ec0
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.1400098a0
lea rdx, [0x14001acd8]
lea rcx, [rsp + 0x30]
call fcn.140009980
test rax, rax
je 0x140007cae
lea rdx, [0x14001ace0]
lea rcx, [rsp + 0x30]
call fcn.140009980
test rax, rax
je 0x140007cae
lea r9, str.SYSTEMCurrentControlSetenumUSB_
lea r8, str._s_s
lea rcx, [rsp + 0x230]
mov edx, 0x100
mov qword [rsp + 0x20], rbx
call fcn.140008bf0
lea rdx, [rsp + 0x230]
lea rcx, str.delete__s
call fcn.140007890
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call fcn.1400078a0
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, 1
jmp 0x140007cb0
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400089d0
add rsp, 0x440
pop rbx
ret
Function at 0x140007cd0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2b60
call fcn.140016be0
sub rsp, rax
mov rax, qword [0x14001e0c8]
xor rax, rsp
mov qword [rsp + 0x2b50], rax
lea rcx, str.RemoveUSBDeviceRegKeys
call fcn.140007890
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, 0x270e
mov word [rsp + 0x440], 0
call fcn.14000ac20
lea rsi, str.DelVidPids
lea rdx, str.SOFTWAREHewlettPackardSISetup_
lea rcx, str.GetValueFromHKey__s__s
mov r8, rsi
lea rbx, [rsp + 0x440]
mov dword [rsp + 0x3c], 0x2710
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call fcn.140007890
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREHewlettPackardSISetup_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
mov edi, eax
je 0x140007dcb
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x440]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x240], 0
call fcn.14000ac20
lea r9, str.SOFTWAREHewlettPackardSISetup_
lea r8, str._s_s
lea rcx, [rsp + 0x240]
mov edx, 0x100
mov qword [rsp + 0x20], rsi
call fcn.140008bf0
lea rdx, [rsp + 0x240]
lea rcx, str.__DeleteHKLM__s
call fcn.140007890
lea rdx, [rsp + 0x240]
mov rcx, 0xffffffff80000002
call fcn.1400078a0
lea rdx, str.SOFTWAREHewlettPackardSISetup_
lea rcx, str.DeleteValueFromHKey__s__s
mov r8, rsi
mov qword [rsp + 0x30], 0
call fcn.140007890
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREHewlettPackardSISetup_
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
and al, 0x30
Function at 0x14000a677
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e0c8]
jne 0x1400089ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400089e6
repz ret
ror rcx, 0x10
jmp 0x14000a5d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001f740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001f838]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000a655
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001f740]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000a677
mov rax, qword [rsp + 0x88]
mov qword [0x14001f838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001f7d8], rax
mov rax, qword [0x14001f838]
mov qword [0x14001f6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001f7c0], rax
mov dword [0x14001f6a0], 0xc0000409
mov dword [0x14001f6a4], 1
mov rax, qword [0x14001e0c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001e0d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001f738], eax
mov ecx, 1
call fcn.1400104a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140017768]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001f738], 0
jne 0x14000a6fe
mov ecx, 1
call fcn.1400104a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000a9c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14001fc18]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14000c290
test rax, rax
je 0x14000aa14
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14000aaa9
mov ecx, 2
call fcn.1400104a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14000ac20
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000aa95
test ebx, ebx
jne 0x14000aa95
lea ecx, [rax + 2]
call fcn.1400104a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret