joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005fb4
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa90
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400064e4
xor esi, esi
test eax, eax
je 0x140005ff5
mov eax, 1
jmp 0x1400060d4
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400060d2
cmp eax, ebx
je 0x1400060d2
lea ecx, [rax + 1]
mov ebp, 0x22
mov word [rsp + 0x70], bp
mov word [rsp + rcx*2 + 0x70], bp
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400061d0
mov word [rsp + rcx + 0x70], si
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400060fd
mov ebx, 0x400
lea rdx, [rsp + 0x280]
mov r8d, ebx
mov ecx, 0xd80a
call fcn.140003904
test eax, eax
jne 0x1400060bb
lea r8, str.Could_not_open_Service_Manager
mov edx, ebx
lea rcx, [rsp + 0x280]
call fcn.14001ba44
test eax, eax
je 0x1400060bb
cmp eax, 0xc
je 0x1400061ec
cmp eax, 0x16
je 0x1400061e1
cmp eax, ebp
je 0x1400061e1
cmp eax, 0x50
jne 0x1400061d6
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140014060
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1400061b9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x400
lea rdx, [rsp + 0x280]
mov r8d, ebx
mov ecx, 0xd80b
call fcn.140003904
test eax, eax
jne 0x1400061b1
lea r8, str.Could_not_start_service
mov edx, ebx
lea rcx, [rsp + 0x280]
call fcn.14001ba44
test eax, eax
je 0x1400061b1
cmp eax, 0xc
je 0x14000620d
cmp eax, 0x16
je 0x140006202
cmp eax, ebp
je 0x140006202
cmp eax, 0x50
jne 0x1400061f7
mov r8, rdi
jmp 0x1400060bf
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005feb
call fcn.140014324
int3
mov ecx, 0x80004005
call fcn.14000427c
int3
mov ecx, 0x80070057
call fcn.14000427c
int3
mov ecx, 0x8007000e
call fcn.14000427c
int3
mov ecx, 0x80004005
call fcn.14000427c
int3
mov ecx, 0x80070057
call fcn.14000427c
int3
mov ecx, 0x8007000e
call fcn.14000427c
int3
Function at 0x1400062b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.140004f3c
mov rdi, rax
test rax, rax
je 0x140006330
lea eax, [rbx + 4]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], eax
lea rdx, str.DisableALSLace
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006327
cmp dword [rsp + 0x30], 1
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014060
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140006410
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x18], 0
lea r8, str.SOFTWAREIntelIGFXDPP_
and dword [rbp - 0x24], 0
lea rcx, [rbp - 0x30]
and qword [rbp - 0x30], 0
mov r9d, 0x20019
and dword [rbp - 0x28], 0
mov rdx, 0xffffffff80000002
and qword [rbp - 0x20], 0
xor dil, dil
call fcn.140006dec
mov rbx, qword [rbp - 0x30]
test eax, eax
jne 0x1400064b6
lea rax, [rbp - 0x14]
mov dword [rbp - 0x14], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.EnableHardware3DLUT
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x1400064ae
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [rbp - 0x18], 1
sete dil
test rbx, rbx
je 0x1400064c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140014060
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
Function at 0x14000677c
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 [0x140055110]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x140039f70]
xor r8d, r8d
xor edx, edx
lea esi, [rbx + 2]
mov r9d, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000686f
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x20
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140006866
lea ebp, [rbx + 1]
mov dword [rsp + 0x28], 0x20019
mov r8d, ebp
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
test rax, rax
je 0x140006866
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Inst
mov dword [rsp + 0x30], ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000685d
cmp dword [rsp + 0x30], ebx
movzx eax, bl
cmovne eax, ebp
mov bl, al
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140014060
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 0x140006a8c
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
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000a70c
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14001e5d0
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140006b12
lea rcx, [rsp + 0x60]
call fcn.14001bf94
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140006b63
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140014060
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007dc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007e43
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140007e3e
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x140007e5b
test ecx, ecx
je 0x140007e58
test cl, 1
jne 0x140007e3e
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140007e5b
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014060
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140007e43

Function at 0x140007e64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
mov dword [rsp + 0x48], 0xc4
and dword [rsp + 0x3c], edi
lea r8, str.SoftwareIntelDisplayigfxcuiMISC
and qword [r11 - 0x38], rdi
mov rbx, rcx
and dword [rsp + 0x38], edi
lea rcx, [r11 - 0x38]
and qword [r11 - 0x28], rdi
mov r9d, 0x20019
mov rdx, 0xffffffff80000002
call fcn.140006dec
test eax, eax
jne 0x140007efb
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rbx
lea rdx, str.LutData
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x140007f13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x140007f05
mov rbx, qword [rsp + 0x30]
mov edi, 0x80004005
test rbx, rbx
je 0x140007f13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014060
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140007f30
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.140006dec
jmp 0x140007fa2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140007f30
mov ebx, eax
test eax, eax
jne 0x14000800b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007f93
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007ff9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.140004ca4
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000801b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140014060
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140008180
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400081e7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400081fb
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400081fb
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [0x1400396f8]
jmp 0x140008200
cmp dword [rcx + 8], 0
je 0x1400081fb
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140008200
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400086b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.140015c40
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000874a
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000874a
call fcn.1400037bc
mov ebx, eax
jmp 0x14000885b
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000876b
call fcn.1400037bc
jmp 0x14000884a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140008761
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400087a6
mov ebx, 0x8007000e
jmp 0x14000884c
mov ecx, eax
test eax, eax
je 0x1400087db
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140008893
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400087db
lfence
lea rcx, [rsp + 0x60]
call fcn.14000333c
jmp 0x1400087e5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x1400087f7
cmp qword [rsp + 0x60], rdi
je 0x14000879c
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140008761
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140008490
mov ebx, eax
test rsi, rsi
je 0x14000885b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140008872
lea rcx, [rsp + 0x60]
call fcn.140004d40
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140014060
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.14000427c
int3
Function at 0x140009414
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140009442
lea eax, [rbx + 0xd]
jmp 0x140009477
mov rsi, rdi
mov rcx, rsi
call fcn.14001bba8
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140009445
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140009704
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140009775
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140006c10]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140009772
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014060
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400097d8
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 [0x140055110]
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 0x140009993
cmp ebx, 1
jne 0x140009847
lea rdx, [0x14003ae60]
jmp 0x140009857
cmp ebx, 2
jne 0x14000998a
lea rdx, [0x140057088]
mov r8d, 0x10024
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000998a
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 0x140009981
cmp dword [rbp - 0x34], 3
jne 0x14000990a
mov r12d, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x20]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400098be
mov edx, 0x3e8
jmp 0x1400098c5
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 0x14000990a
cmp dword [rbp - 0x34], 1
je 0x14000990a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x14000990a
cmp dword [rbp - 0x34], 3
je 0x1400098a4
lea r8, [rbp - 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140009970
cmp dword [rbp - 0x34], 1
je 0x140009978
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 0x140009970
cmp dword [rbp - 0x34], 1
je 0x140009978
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x140009970
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x140009926
jmp 0x140009973
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x140009981
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.140014060
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 0x140009f80
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140055110]
xor rax, rsp
mov qword [rbp - 0x10], rax
call fcn.140009c4c
test eax, eax
jne 0x140009fb1
mov eax, 0x80004005
jmp 0x14000a092
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.140006dec
test eax, eax
je 0x140009ff4
mov ecx, eax
call fcn.1400037dc
mov edi, eax
jmp 0x14000a07f
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.140006dec
test eax, eax
je 0x14000a02d
mov ecx, eax
call fcn.1400037dc
jmp 0x14000a06c
mov rcx, qword [rbp - 0x60]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140056f90]
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.14000a0b0
cmp qword [rbp - 0x60], 0
mov edi, eax
je 0x14000a07f
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x48], 0
je 0x14000a090
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.140014060
mov rdi, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x14000a4d4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140056f98], 0
mov edi, edx
mov rbx, rcx
je 0x14000a4f1
or eax, 0xffffffff
jmp 0x14000a539
and dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.140007074
cmp al, 1
jne 0x14000a51e
mov edx, edi
mov rcx, rbx
call fcn.140009544
mov edi, eax
jmp 0x14000a522
mov edi, dword [rsp + 0x40]
cmp dword [rbx + 0x28c], 0
jne 0x14000a537
cmp byte [rbx + 0x62], 0
je 0x14000a537
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b5a4
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 [0x140055110]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov r15d, 0x400
mov edx, r15d
lea rcx, [0x140059bd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, r15d
lea rdx, [0x1400593d0]
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 0x14000b71f
lea edx, [rsi + 0x5c]
lea rcx, [0x1400593d0]
call fcn.140017794
test rax, rax
je 0x14000b637
mov word [rax], si
lea rdi, [0x14005a3d0]
mov rdx, r15
mov rcx, rdi
lea r8, [0x140059bd0]
call fcn.14001ba44
mov edx, 0x5c
mov rcx, rdi
call fcn.140017718
test rax, rax
je 0x14000b6ee
sub rax, rdi
sar rax, 1
inc eax
add rax, rax
cmp rax, 0x800
jae 0x14000b719
lea r8, str.Intel
mov word [rax + rdi], si
mov rdx, r15
mov rcx, rdi
call fcn.14001b9cc
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.14001b9cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b6d2
test al, 0x10
je 0x14000b6d2
mov rcx, rdi
call fcn.14000c460
mov rcx, rdi
call fcn.14000de3c
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.14000f0b0
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014060
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r15
ret
call fcn.140014324
int3
mov ecx, 1
call fcn.14001eab4
int3