joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004358
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, edx
mov r15, rcx
mov edx, 1
call fcn.140009270
mov edi, 2
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor r13d, r13d
mov r14, rax
test rax, rax
je 0x1400044f9
mov r8d, edi
lea rdx, [0x140059048]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400044f0
test ebx, ebx
je 0x140004406
sub ebx, 1
je 0x1400043e5
cmp ebx, 1
jne 0x1400044e7
mov qword [rsp + 0x50], r13
lea rax, str.LocalSystem
or edx, 0xffffffff
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov r8d, edx
jmp 0x1400044b9
lea rdi, [r15 + 0xaa8]
mov r8d, 0x400
mov rdx, rdi
mov ecx, 0x66
call fcn.1400038b8
lea rbx, [r15 + 0x2a8]
mov r8d, 0x400
mov rdx, rbx
mov ecx, 0x65
call fcn.1400038b8
mov qword [rbp - 0x39], rbx
lea r8, [rbp - 0x39]
mov ebx, 1
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor eax, eax
mov dword [rbp - 0x19], ebx
xorps xmm0, xmm0
mov qword [rbp + 0x1b], rax
movups xmmword [rbp - 0x15], xmm0
mov dword [rbp + 0x23], eax
lea r8, [rbp - 0x31]
lea rax, [0x140039d48]
mov dword [rbp - 9], r13d
mov qword [rbp - 0x11], rax
lea edx, [rbx + 7]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x15], ebx
movups xmmword [rbp - 5], xmm0
mov rcx, rsi
mov qword [rbp - 0x29], rax
movups xmmword [rbp + 0xb], xmm0
mov qword [rbp - 1], r13
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x21], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov qword [rsp + 0x50], rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x48], r13
or edx, 0xffffffff
mov qword [rsp + 0x40], r13
lea rax, str.SENS
mov r9d, edx
mov qword [rsp + 0x38], rax
mov rcx, rsi
lea rax, str.ProfSvc_Group
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140004ca8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140004cce
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140007cf4
jmp 0x140004d39
cmp byte [0x14005a2c8], 0
jne 0x140004d12
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d02
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005a2c0], rax
jmp 0x140004d09
mov rax, qword [0x14005a2c0]
mov byte [0x14005a2c8], 1
jmp 0x140004d19
mov rax, qword [0x14005a2c0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140004d33
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x1400396e0]
jmp 0x140004d39
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140004df0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov rax, r8
mov esi, edx
mov qword [rsp + 0x30], r14
mov rbp, rcx
mov dword [rsp + 0x28], 6
xor r9d, r9d
mov dword [rsp + 0x40], r14d
lea r8d, [r14 + 1]
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140004e83
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004e7a
cmp dword [rsp + 0x40], esi
cmove ebx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013c60
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004f48
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
mov edi, 0x20019
cmp ecx, 1
mov r14, rdx
lea eax, [rdi + 6]
cmove edi, eax
call fcn.140006324
test al, al
je 0x140004f96
movups xmm0, xmmword [0x14003a250]
jmp 0x140004f9d
movups xmm0, xmmword [0x14003a260]
mov r9d, 2
lea rcx, [rbp - 0x38]
xor r8d, r8d
xor edx, edx
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000506d
xor esi, esi
mov dword [rbp - 0x28], 0x20
xor edx, edx
jmp 0x14000504f
xor r9d, r9d
mov dword [rsp + 0x28], edi
lea rdx, [rbp - 0x28]
mov dword [rsp + 0x20], 2
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rbp - 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140005046
and dword [rbp - 0x40], 0
lea rcx, [rbp - 0x44]
and dword [rbp - 0x48], 0
lea r9, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
lea rdx, str.Inst
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x44], 4
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000503c
cmp dword [rbp - 0x48], eax
jne 0x140005064
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x50], 0
inc esi
mov edx, esi
lea r8, [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140004fd1
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x14000509e
test r14, r14
je 0x14000509e
lea rax, [rbp - 0x50]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140005e10
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 [0x140057108]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400062b8
xor esi, esi
test eax, eax
je 0x140005e51
mov eax, 1
jmp 0x140005f30
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140005f2e
cmp eax, ebx
je 0x140005f2e
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 0x14000602c
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 0x140005f59
mov ebx, 0x400
lea rdx, [rsp + 0x280]
mov r8d, ebx
mov ecx, 0xd80a
call fcn.1400038b8
test eax, eax
jne 0x140005f17
lea r8, str.Could_not_open_Service_Manager
mov edx, ebx
lea rcx, [rsp + 0x280]
call fcn.14001b804
test eax, eax
je 0x140005f17
cmp eax, 0xc
je 0x140006048
cmp eax, 0x16
je 0x14000603d
cmp eax, ebp
je 0x14000603d
cmp eax, 0x50
jne 0x140006032
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.140013c60
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 0x140006015
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.1400038b8
test eax, eax
jne 0x14000600d
lea r8, str.Could_not_start_service
mov edx, ebx
lea rcx, [rsp + 0x280]
call fcn.14001b804
test eax, eax
je 0x14000600d
cmp eax, 0xc
je 0x140006069
cmp eax, 0x16
je 0x14000605e
cmp eax, ebp
je 0x14000605e
cmp eax, 0x50
jne 0x140006053
mov r8, rdi
jmp 0x140005f1b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005e47
call fcn.140013f34
int3
mov ecx, 0x80004005
call fcn.140004230
int3
mov ecx, 0x80070057
call fcn.140004230
int3
mov ecx, 0x8007000e
call fcn.140004230
int3
mov ecx, 0x80004005
call fcn.140004230
int3
mov ecx, 0x80070057
call fcn.140004230
int3
mov ecx, 0x8007000e
call fcn.140004230
int3
Function at 0x1400061e4
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 [0x140057108]
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.1400069b8
mov rbx, qword [rbp - 0x30]
test eax, eax
jne 0x14000628a
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 0x140006282
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [rbp - 0x18], 1
sete dil
test rbx, rbx
je 0x140006298
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x140006324
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, [0x14003a250]
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 0x140006417
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 0x14000640e
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 0x14000640e
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 0x140006405
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.140013c60
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 0x140006634
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 [0x140057108]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140009ffc
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.14001e300
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x1400066ba
lea rcx, [rsp + 0x60]
call fcn.14001bd54
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000670b
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.140013c60
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007aa4
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 [0x140057108]
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.1400069b8
jmp 0x140007b16
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140007aa4
mov ebx, eax
test eax, eax
jne 0x140007b7f
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 0x140007b07
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007b6d
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.140004ca8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007b8f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140013c60
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 0x140007cf4
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 0x140007d5b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007d6f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007d6f
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 [0x1400396e0]
jmp 0x140007d74
cmp dword [rcx + 8], 0
je 0x140007d6f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140007d74
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008eac
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 0x140008eda
lea eax, [rbx + 0xd]
jmp 0x140008f0f
mov rsi, rdi
mov rcx, rsi
call fcn.14001b968
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140008edd
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 0x14000919c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140057108]
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 0x14000920d
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400067c0]
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 0x14000920a
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.140013c60
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009270
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 0x14000942b
cmp ebx, 1
jne 0x1400092df
lea rdx, [0x14003adb8]
jmp 0x1400092ef
cmp ebx, 2
jne 0x140009422
lea rdx, [0x140059048]
mov r8d, 0x10024
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140009422
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 0x140009419
cmp dword [rbp - 0x34], 3
jne 0x1400093a2
mov r12d, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x20]
shr edx, 3
cmp edx, 0x3e8
jae 0x140009356
mov edx, 0x3e8
jmp 0x14000935d
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 0x1400093a2
cmp dword [rbp - 0x34], 1
je 0x1400093a2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x1400093a2
cmp dword [rbp - 0x34], 3
je 0x14000933c
lea r8, [rbp - 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140009408
cmp dword [rbp - 0x34], 1
je 0x140009410
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 0x140009408
cmp dword [rbp - 0x34], 1
je 0x140009410
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x140009408
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x1400093be
jmp 0x14000940b
mov eax, dword [rbp - 0x34]
cmp eax, 1
jne 0x140009419
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.140013c60
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 0x14000ae88
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, [0x14005bbb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, r15d
lea rdx, [0x14005b3b0]
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 0x14000b003
lea edx, [rsi + 0x5c]
lea rcx, [0x14005b3b0]
call fcn.140017524
test rax, rax
je 0x14000af1b
mov word [rax], si
lea rdi, [0x14005c3b0]
mov rdx, r15
mov rcx, rdi
lea r8, [0x14005bbb0]
call fcn.14001b804
mov edx, 0x5c
mov rcx, rdi
call fcn.1400174a8
test rax, rax
je 0x14000afd2
sub rax, rdi
sar rax, 1
inc eax
add rax, rax
cmp rax, 0x800
jae 0x14000affd
lea r8, str.Intel
mov word [rax + rdi], si
mov rdx, r15
mov rcx, rdi
call fcn.14001b780
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.14001b780
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000afb6
test al, 0x10
je 0x14000afb6
mov rcx, rdi
call fcn.14000bcd0
mov rcx, rdi
call fcn.14000d62c
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.14000e9bc
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r15
ret
call fcn.140013f34
int3
mov ecx, 1
call fcn.14001e7fc
int3
Function at 0x14000d62c
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.14001b804
lea r8, [0x14003b548]
mov edx, esi
lea rcx, [rbp + 0x380]
call fcn.14001b780
mov r8, rdi
lea rcx, [rbp + 0x170]
mov edx, esi
call fcn.14001b804
lea r8, [0x14003b120]
mov edx, esi
lea rcx, [rbp + 0x170]
call fcn.14001b780
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d7aa
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0x380]
mov rdx, rsi
call fcn.14001b804
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000d782
lea rcx, [rsp + 0x4c]
call fcn.14000db50
test eax, eax
jne 0x14000d6e4
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x170]
call fcn.14001b780
test byte [rsp + 0x20], 0x10
je 0x14000d742
lea rcx, [rbp + 0x170]
call fcn.14000d62c
test eax, eax
je 0x14000d7a1
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000d76f
test byte [rsp + 0x20], 1
je 0x14000d75e
mov edx, 0x80
lea rcx, [rbp + 0x170]
call fcn.14001e8f8
test eax, eax
jne 0x14000d7a1
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000d7a1
lea r8, [rbp + 0x380]
lea rcx, [rbp + 0x170]
jmp 0x14000d6dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000d7a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000d7ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140013c60
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