joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400169a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x3a0
mov rax, qword [0x14006c868]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rsi, rcx
mov rbp, rdx
mov dword [rsp + 0x58], r8d
xor r12d, r12d
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x30c
xor bl, bl
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x70], r12
call fcn.14001f820
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
mov rax, qword [str.SOFTWAREIntelDisplayigfxcuiigfxsrvc]
mov qword [rdi - 1], rax
mov rax, qword [0x140057698]
mov qword [rdi + 7], rax
mov rax, qword [0x1400576a0]
mov qword [rdi + 0xf], rax
mov rax, qword [0x1400576a8]
mov qword [rdi + 0x17], rax
mov rax, qword [0x1400576b0]
mov qword [rdi + 0x1f], rax
test rsi, rsi
je 0x140016a6b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
movzx eax, word [0x1400539c4]
lea rcx, [rsp + 0x80]
mov r8, rsi
mov edx, 0x30c
mov word [rdi - 1], ax
call fcn.140022380
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x140016b14
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000002
call fcn.140016660
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140016b14
lea rcx, str..ServiceUtils.cpp
lea rdx, str.__RegOpenKey_failed__GetLastError___n
mov dword [rsp + 0x68], 0x5e
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
call fcn.140001290
jmp 0x140016b73
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140016b66
lea rcx, str..ServiceUtils.cpp
lea rdx, str.__RegQueryValueEx_failed__GetLastError___n
mov dword [rsp + 0x68], 0x54
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
call fcn.140001290
jmp 0x140016b68
mov bl, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14001f7f0
add rsp, 0x3a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140031e97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14006c868]
jne 0x14001f80a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001f806
repz ret
ror rcx, 0x10
jmp 0x140031df0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006ec90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14006ed88]
mov qword [rsp + 0x58], r11
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 0x140031e75
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, [0x14006ec90]
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 0x140031e97
mov rax, qword [rsp + 0x88]
mov qword [0x14006ed88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006ed28], rax
mov rax, qword [0x14006ed88]
mov qword [0x14006ec00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006ed10], rax
mov dword [0x14006ebf0], 0xc0000409
mov dword [0x14006ebf4], 1
mov rax, qword [0x14006c868]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14006c870]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006ec88], eax
mov ecx, 1
call fcn.14002d5e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14005d0b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006ec88], 0
jne 0x140031f1e
mov ecx, 1
call fcn.14002d5e0
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 0x140081920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x140081952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1400819fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x140081996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1400819e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400819b2
mov dword [rsp + 0x1c], 1
jmp 0x1400819ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1400819e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14008198c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x140081948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret
Function at 0x140001a60
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x370], rax
xor esi, esi
lea rax, [rsp + 0x52]
mov rdi, rdx
mov qword [rsp + 0x38], rsi
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov word [rsp + 0x50], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x160]
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 8]
mov r8d, 0x106
mov dword [rsp + 0x20], 0x204
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x140001b8e
nop
cmp word [rsp + 0x160], 0x103
je 0x140001ba0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x52]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
mov word [rsp + 0x50], 3
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
lea r9, [rsp + 0x160]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 8]
mov r8d, 0x106
mov dword [rsp + 0x20], 0x204
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
jne 0x140001b00
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140001ba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001bb2
xor eax, eax
jmp 0x140001bb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140009b60
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001c70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
sub rsp, 0x198
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, rcx
add rcx, 8
call fcn.140002be0
mov eax, dword [0x14001c4e0]
lea r11, [rsp + 0x48]
mov dword [r11], eax
mov eax, dword [0x14001c4e4]
lea rcx, [rsp + 0x48]
mov dword [r11 + 4], eax
mov eax, dword [0x14001c4e8]
mov r9d, 2
mov dword [r11 + 8], eax
mov eax, dword [0x14001c4ec]
xor r8d, r8d
xor edx, edx
mov dword [r11 + 0xc], eax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140001e63
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x190], r12
xor r12d, r12d
mov dword [rsp + 0x58], 0x20
mov qword [rsp + 0x1c0], rdi
mov ebx, r12d
nop
lea r8, [rsp + 0x58]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140001e2d
xor r9d, r9d
lea rdx, [rsp + 0x58]
mov rcx, rsi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140001e3a
xor edx, edx
lea rcx, [rsp + 0x102]
mov word [rsp + 0x100], r12w
lea r8d, [rdx + 0x7e]
call fcn.140012240
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
lea rdx, str.PortName
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001e1c
lea r8d, [rax + 0x7f]
lea rcx, [rsp + 0x81]
xor edx, edx
mov byte [rsp + 0x80], r12b
call fcn.140012240
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r8d, 1
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x100]
mov rcx, rbp
call fcn.140002360
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 1
jmp 0x140001d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140001e42
add ebx, 1
jmp 0x140001d10
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r12, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1b8]
mov rax, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140009b60
add rsp, 0x198
pop rsi
pop rbp
ret
Function at 0x140001e90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x2e0
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
add rcx, 8
call fcn.140002be0
lea r8, [rsp + 0x48]
lea rdx, str.SOFTWAREWordcraft_International_LtdTTECPorts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140001fbf
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2f8], rsi
mov qword [rsp + 0x38], rax
xor esi, esi
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x300], rdi
mov qword [rsp + 0x20], rsi
mov edi, esi
mov dword [rsp + 0x40], 0x200
mov dword [rsp + 0x44], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140001fa4
nop
nop
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002360
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
add edi, 1
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
mov edx, edi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x44], 0x80
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140001f40
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x2f8]
mov rax, qword [rbx + 0x18]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140009b60
add rsp, 0x2e0
pop rbx
ret
Function at 0x140004c20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x370
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, qword [rcx + 8]
mov rax, rdi
movzx ecx, word [rdi]
test cx, cx
je 0x140004c67
nop
cmp cx, 0x5c
jne 0x140004c5a
lea rdi, [rax + 2]
mov cx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140004c50
mov eax, dword [0x14001c4e0]
lea rcx, [rsp + 0x78]
mov r9d, 2
mov dword [rcx], eax
mov eax, dword [0x14001c4e4]
xor r8d, r8d
mov dword [rcx + 4], eax
mov eax, dword [0x14001c4e8]
xor edx, edx
mov dword [rcx + 8], eax
mov eax, dword [0x14001c4ec]
mov dword [rcx + 0xc], eax
lea rcx, [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
xor r12d, r12d
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140004e6b
mov qword [rsp + 0x3a0], rsi
mov qword [rsp + 0x3a8], r13
lea r13d, [r12 + 1]
mov qword [rsp + 0x398], rbx
mov esi, r12d
lea r8, [rsp + 0x58]
mov edx, esi
mov rcx, rbp
mov dword [rsp + 0x58], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140004da0
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov r8d, r13d
mov rcx, rbp
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140004db1
xor edx, edx
lea rcx, [rsp + 0x2e2]
mov word [rsp + 0x2e0], r12w
lea r8d, [rdx + 0x7e]
call fcn.140012240
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2e0]
lea rdx, str.PortName
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004d8f
lea rcx, [rsp + 0x2e0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004db9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, r13d
jmp 0x140004cd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140004e4a
add esi, r13d
jmp 0x140004cd5
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov r9d, 0x14
mov rcx, rbp
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x3c], 0x12
mov dword [rsp + 0x40], 3
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsW]
test eax, eax
je 0x140004e41
lea r8, [rsp + 0x58]
mov rdx, rbp
mov ecx, 0x12
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140004e1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004e41
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x58]
mov rcx, rbp
mov dword [rsp + 0x90], 0x248
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
cmovne r12d, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r13, qword [rsp + 0x3a8]
mov rsi, qword [rsp + 0x3a0]
mov rbx, qword [rsp + 0x398]
mov eax, r12d
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140009b60
add rsp, 0x370
pop r12
pop rdi
pop rbp
ret
Function at 0x140005f00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x1048
call fcn.14001af00
sub rsp, rax
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x1030], rax
cmp dword [0x140026bec], 0
je 0x140005f92
cmp dword [0x140026bf8], 0
lea rdx, [rsp + 0x1058]
je 0x140005f8d
mov r9, rcx
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x30]
mov edx, 0x800
mov r8d, 0x1000
call fcn.14000a270
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140009b60
add rsp, 0x1048
ret
call fcn.14000b570
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140009b60
add rsp, 0x1048
ret
Function at 0x1400063d0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r13, rdx
mov r12, rcx
mov ecx, 0x8000
call fcn.140009b40
mov rbp, rax
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
lea r14, [0x14001e570]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x68], rsi
lea r15, str..id2pd.inf
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x4000
mov r9, rax
lea r8, [0x14001e268]
xor edx, edx
lea rcx, str.Devices
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, rbp
cmp word [rbp], si
je 0x140006534
nop
nop
mov r8, rbx
mov rdx, r12
lea rcx, str.Compare_device_ID__s_with__s_r_n
call fcn.140005f00
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx - 2]
mov rdx, r12
mov rcx, rbx
call fcn.14000ba20
test eax, eax
je 0x1400064cf
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
cmp word [rbx], ax
jne 0x140006480
jmp 0x140006534
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x190
lea r9, [rsp + 0x70]
lea r8, [0x14001e268]
mov rdx, rbx
lea rcx, str.Devices
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140006534
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400056e0
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, str.Printer_driver_for_this_device___s__is__s_r_n
call fcn.140005f00
mov rcx, rbp
call fcn.14000abe0
cmp qword [rsp + 0x58], 0
je 0x1400065ab
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov rdx, r13
call fcn.1400061c0
mov rsi, rax
test rax, rax
jne 0x140006584
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rcx, str.No_printers_found_that_use__s_r_n
call fcn.140005f00
jmp 0x1400065ab
cmp rax, 1
jbe 0x1400065ab
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov rdx, rax
lea rcx, str._d_printers_found_that_use__s_r_n
call fcn.140005f00
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400065bf
call fcn.140009fa0
cmp qword [rsp + 0x60], 8
jb 0x1400065d6
mov rcx, qword [rsp + 0x48]
call fcn.140009fa0
mov rax, rsi
jmp 0x1400065d9
mov rax, rsi
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140009b60
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007140
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x40], rdx
mov rbp, rcx
xor esi, esi
mov r9d, 0xc8
lea r8, [rsp + 0xc0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1400072d6
nop
nop
nop
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400072a0
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x38], 0x60
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Port
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000724a
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x40]
sub r8, rax
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140007244
add rax, 2
test ecx, ecx
jne 0x140007230
test edx, edx
sete dil
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140007140
test rbx, rbx
je 0x140007267
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
je 0x1400072a0
lea rdx, [rsp + 0xc0]
lea rcx, str.Delete_UMP3_device_registry_key:__s_n
call fcn.140005f00
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1400072a0
lea rcx, str.__Failed_n
call fcn.140005f00
add esi, 1
test rbx, rbx
je 0x1400072b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0xc8
lea r8, [rsp + 0xc0]
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400071a0
xor eax, eax
jmp 0x1400072d8
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140009b60
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008940
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x2b0
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r12d, r12d
test ecx, ecx
lea r13, str.wilusbmonitor
lea rax, [0x140008810]
mov rdi, rdx
movsxd rsi, ecx
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], rax
mov rbx, r12
lea ebp, [r12 + 1]
jle 0x140008a1d
nop
nop
mov rcx, qword [rdi + rbx*8]
lea rdx, str._install
call fcn.14000b760
test eax, eax
je 0x140008ae5
mov rcx, qword [rdi + rbx*8]
lea rdx, str._remove
call fcn.14000b760
test eax, eax
je 0x140008a6a
mov rcx, qword [rdi + rbx*8]
lea rdx, [0x14001eeec]
call fcn.14000b760
test eax, eax
je 0x140008a5d
mov rcx, qword [rdi + rbx*8]
lea rdx, [0x14001eef4]
call fcn.14000b760
mov ecx, dword [0x140026bec]
test eax, eax
cmove ecx, ebp
add rbx, rbp
cmp rbx, rsi
mov dword [0x140026bec], ecx
jl 0x1400089b0
lea rcx, [rsp + 0x70]
mov dword [0x140026bf8], ebp
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140009b60
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov dword [0x140026bec], ebp
call fcn.140008470
jmp 0x140008a2e
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x140008ad4
mov r8d, 0x10000
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbx, rax
je 0x140008aba
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140008a2e
lea rcx, str.Cannot_open_port_tracking_service
call fcn.14000bb00
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140008a2e
lea rcx, str.Cannot_open_service_control_manager
call fcn.14000bb00
jmp 0x140008a2e
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x140008ad4
lea rdx, [rsp + 0x90]
mov r8d, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
lea r8, str.Unimessage_Printer_tracking_service
mov r9d, 0xf00b0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
mov rdx, r13
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x140008b80
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140008a2e
lea rcx, str.Cannot_create_WilPrinters_service
call fcn.14000bb00
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140008a2e