joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009294
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, edx
xor ecx, ecx
xor edx, edx
lea r8d, [rdx + 0x24]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xorps xmm0, xmm0
mov rdi, rax
xor eax, eax
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rbp - 0x40], 0
mov esi, eax
test rdi, rdi
je 0x14000944f
cmp ebx, 1
jne 0x140009303
lea rdx, [0x14003ae00]
jmp 0x140009313
cmp ebx, 2
jne 0x140009446
lea rdx, [0x140059018]
mov r8d, 0x10024
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140009446
lea rax, [rbp - 0x40]
mov r9d, 0x24
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000943d
cmp dword [rbp - 0x34], 3
jne 0x1400093c6
mov r12d, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x20]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000937a
mov edx, 0x3e8
jmp 0x140009381
cmp edx, r12d
cmova edx, r12d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x40]
mov r9d, 0x24
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400093c6
cmp dword [rbp - 0x34], 1
je 0x1400093c6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x1400093c6
cmp dword [rbp - 0x34], 3
je 0x140009360
lea r8, [rbp - 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000942c
cmp dword [rbp - 0x34], 1
je 0x140009434
mov ecx, dword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x40]
mov r9d, 0x24
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000942c
cmp dword [rbp - 0x34], 1
je 0x140009434
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x14000942c
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x1400093e2
jmp 0x14000942f
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x14000943d
mov rcx, rbx
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]
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400099ec
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp - 0x10], rax
call fcn.1400096b8
test eax, eax
jne 0x140009a1d
mov eax, 0x80004005
jmp 0x140009afe
and dword [rbp - 0x3c], 0
lea r8, str.AppID
and qword [rbp - 0x48], 0
lea rcx, [rbp - 0x48]
and dword [rbp - 0x40], 0
mov edi, 0x20006
and qword [rbp - 0x38], 0
mov r9d, edi
mov rdx, 0xffffffff80000000
call fcn.1400068d8
test eax, eax
je 0x140009a60
mov ecx, eax
call fcn.14000374c
mov edi, eax
jmp 0x140009aeb
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x60]
and dword [rbp - 0x54], 0
mov r9d, edi
and qword [rbp - 0x60], 0
lea rdi, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
and dword [rbp - 0x58], 0
mov r8, rdi
and qword [rbp - 0x50], 0
call fcn.1400068d8
test eax, eax
je 0x140009a99
mov ecx, eax
call fcn.14000374c
jmp 0x140009ad8
mov rcx, qword [rbp - 0x60]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140058f40]
lea rax, str.APPID
xor r8d, r8d
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
mov qword [rbp - 0x28], rdi
lea r9, [rbp - 0x30]
movdqu xmmword [rbp - 0x20], xmm0
lea edx, [r8 + 0x65]
call fcn.140009b1c
cmp qword [rbp - 0x60], 0
mov edi, eax
je 0x140009aeb
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x48], 0
je 0x140009afc
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013a90
mov rdi, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x140009f38
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140058f24], 0
mov edi, edx
mov rbx, rcx
je 0x140009f55
or eax, 0xffffffff
jmp 0x140009f9d
and dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.140006b60
cmp al, 1
jne 0x140009f82
mov edx, edi
mov rcx, rbx
call fcn.140009000
mov edi, eax
jmp 0x140009f86
mov edi, dword [rsp + 0x40]
cmp dword [rbx + 0x28c], 0
jne 0x140009f9b
cmp byte [rbx + 0x62], 0
je 0x140009f9b
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b01c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x40
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov r15d, 0x400
mov edx, r15d
lea rcx, [0x14005bb80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, r15d
lea rdx, [0x14005b380]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
mov dword [rsp + 0x20], 0x18
xor r9d, r9d
mov dword [rsp + 0x30], esi
lea r8, [rsp + 0x28]
lea rcx, str.D:_A_OICIID_FA___BA__A_OICIID_FA___SY__A_OICIID_0x1200a9___BU__A__OICIID__GRGX____AU__A__OI__FRFXDT____AU_
lea edx, [rsi + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x14000b197
lea edx, [rsi + 0x5c]
lea rcx, [0x14005b380]
call fcn.140017274
test rax, rax
je 0x14000b0af
mov word [rax], si
lea rdi, [0x14005c380]
mov rdx, r15
mov rcx, rdi
lea r8, [0x14005bb80]
call fcn.14001b554
mov edx, 0x5c
mov rcx, rdi
call fcn.1400171f8
test rax, rax
je 0x14000b166
sub rax, rdi
sar rax, 1
inc eax
add rax, rax
cmp rax, 0x800
jae 0x14000b191
lea r8, str.Intel
mov word [rax + rdi], si
mov rdx, r15
mov rcx, rdi
call fcn.14001b4d0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.GfxCPLBatchFiles
mov rdx, r15
mov rcx, rdi
call fcn.14001b4d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b14a
test al, 0x10
je 0x14000b14a
mov rcx, rdi
call fcn.14000be60
mov rcx, rdi
call fcn.14000d83c
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.14000ebcc
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r15
ret
call fcn.140013d64
int3
mov ecx, 1
call fcn.14001e540
int3
Function at 0x14000c0d8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
and qword [r11 - 0x40], 0
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCplsigfxcpl.cpl
and dword [rsp + 0x4c], 0
lea rcx, [r11 - 0x38]
and qword [r11 - 0x48], 0
xor r9d, r9d
and qword [r11 - 0x38], 0
mov rdx, 0xffffffff80000002
and dword [rsp + 0x48], 0
and qword [r11 - 0x28], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call fcn.1400046c8
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x14000c178
and dword [rsp + 0x58], eax
lea r9d, [rax + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RunLevel
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp qword [rsp + 0x40], 0
je 0x14000c183
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test rcx, rcx
je 0x14000c183
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013a90
add rsp, 0x78
ret

Function at 0x14000c198
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [r11 - 0x20], r8d
lea rax, [r11 - 0x28]
and qword [r11 - 0x28], 0
mov rdi, rdx
mov rdx, rcx
mov qword [r11 - 0x58], rax
mov rbx, rcx
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c220
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000c256
mov r9d, 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
Function at 0x14000c964
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov rsi, rdx
mov qword [rsp + 0x20], rax
mov rdx, rcx
mov rbx, r8
mov rdi, rcx
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c9ea
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rdi
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rsp + 0x50], 0
je 0x14000ca2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013a90
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000ca44
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareIntelDisplayigfxcui
mov ecx, 1
call fcn.140004e14
mov rbx, rax
test rax, rax
je 0x14000caab
mov r9d, 4
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.YangraDriverInstalled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013a90
add rsp, 0x40
pop rbx
ret
Function at 0x14000d83c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5a8]
sub rsp, 0x6a0
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, rcx
mov r8, rcx
mov esi, 0x104
lea rcx, [rbp + 0x380]
mov edx, esi
call fcn.14001b554
lea r8, [0x14003b588]
mov edx, esi
lea rcx, [rbp + 0x380]
call fcn.14001b4d0
mov r8, rdi
lea rcx, [rbp + 0x170]
mov edx, esi
call fcn.14001b554
lea r8, [0x14003b160]
mov edx, esi
lea rcx, [rbp + 0x170]
call fcn.14001b4d0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d9ba
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0x380]
mov rdx, rsi
call fcn.14001b554
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000d992
lea rcx, [rsp + 0x4c]
call fcn.14000dd60
test eax, eax
jne 0x14000d8f4
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x170]
call fcn.14001b4d0
test byte [rsp + 0x20], 0x10
je 0x14000d952
lea rcx, [rbp + 0x170]
call fcn.14000d83c
test eax, eax
je 0x14000d9b1
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000d97f
test byte [rsp + 0x20], 1
je 0x14000d96e
mov edx, 0x80
lea rcx, [rbp + 0x170]
call fcn.14001e648
test eax, eax
jne 0x14000d9b1
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000d9b1
lea r8, [rbp + 0x380]
lea rcx, [rbp + 0x170]
jmp 0x14000d8ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000d9b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000d9bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000d9e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x14003b140]
xor r8d, r8d
xor edx, edx
lea r9d, [rbx + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000dae6
mov dword [rsp + 0x40], 0x20
mov ebp, ebx
xor edx, edx
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000dadd
cmp ebp, 0x20
ja 0x14000dadd
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 2
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
test rax, rax
je 0x14000dad1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CUINotRequired
mov dword [rsp + 0x34], ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000dada
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov edx, ebp
jmp 0x14000da38
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000db0c
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1028]
mov eax, 0x1120
call fcn.140013f30
sub rsp, rax
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.140015c00
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.140015c00
mov edx, 0x400
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x464
lea r8, [rbp + 0x810]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001b554
lea r8, [0x14003b168]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001b4d0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov edx, eax
lea ecx, [rbx + 0x40]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14000dc14
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x3c]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x14003b160]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000dc0b
mov rax, qword [rsp + 0x30]
movzx ebx, word [rax + 0x16]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000dc48
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, 1
lea rcx, [0x14003b140]
xor r8d, r8d
xor edx, edx
lea r9d, [rsi + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000dd3e
mov dword [rsp + 0x40], 0x20
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000dd35
mov dword [rsp + 0x28], 0x20019
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
test rax, rax
je 0x14000dc96
and dword [rsp + 0x34], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CUINotRequired
mov dword [rsp + 0x30], 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
je 0x14000dd2d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000dc96
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000dd9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.140004e14
mov rsi, rax
test rax, rax
jne 0x14000ddd6
lea ebx, [rax + 1]
jmp 0x14000de57
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.140015c00
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.Version
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000de4e
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.14001e54c
test eax, eax
jne 0x14000de49
call fcn.14000db0c
cmp eax, 0x3fab
jae 0x14000de4e
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x14000e34c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015c00
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005ab10]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000e3e8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140013a90
add rsp, 0xf8
ret
Function at 0x14000e404
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, ecx
lea r8, [0x14005c380]
mov edi, 0x432
mov edx, edi
lea rsi, [0x14005d3f0]
mov rcx, rsi
call fcn.14001b554
lea r8, [0x14003b760]
mov edx, edi
mov rcx, rsi
call fcn.14001b4d0
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000e473
mov rcx, rsi
call fcn.14001ee68
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000e681
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.140015c00
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000ae1c
nop
lea rdx, str._echo_off
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdi, [0x14003b934]
cmp ebx, 1
jne 0x14000e519
lea rdx, str.sc_stop_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, str.sc_delete_igfxCUIService1.0.0.0
jmp 0x14000e5e9
cmp ebx, 2
jne 0x14000e5fb
lea rdx, str.sc_stop_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, str.sc_delete_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, str.TIMEOUT_5__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
lea rdx, [0x14005b380]
call fcn.14000a4bc
mov rcx, rax
lea rdx, [0x14003b160]
call fcn.14000a4bc
mov rcx, rax
lea rdx, [0x14003b938]
call fcn.14000a4bc
mov rcx, rax
mov rdx, rdi
call fcn.14000a4bc
mov rcx, rax
lea rdx, str.__service
call fcn.14000a184
mov rcx, rax
call fcn.14000ab54
lea rdx, str.sc_start_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rdx, [0x14003b9f8]
lea rcx, [rsp + 0x30]
call fcn.14000a4bc
mov rcx, rax
mov rdx, rdi
call fcn.14000a4bc
mov rcx, rax
lea rdx, [0x14005c380]
call fcn.14000a4bc
mov rcx, rax
lea rdx, [0x14003b160]
call fcn.14000a4bc
mov rcx, rax
lea rdx, str.8A694AF2_286D_429D_867A_3F95898EE308.bat
call fcn.14000a4bc
mov rcx, rax
mov rdx, rdi
call fcn.14000a4bc
mov rcx, rax
call fcn.14000ab54
lea rcx, [rsp + 0x30]
call fcn.14000f700
nop
lea rcx, [rbp - 0x28]
call fcn.14000b7b8
nop
lea rcx, vtable.std::ios_base.0
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x28]
call fcn.1400151d8
nop
mov al, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140013a90
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret