joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008540
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x38], 0xc4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400085e3
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x3c]
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 0x1400085ce
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x50
pop rbx
ret
mov eax, 0x80004005
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x50
pop rbx
ret

Function at 0x140008600
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x40], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov edi, dword [rsi + 8]
mov dword [rsp + 0x50], ecx
or edi, 0x2001f
mov qword [rsp + 0x58], rcx
mov r9d, edi
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140008757
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008688
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140008757
xor edi, edi
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000872f
nop dword [rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140008600
mov ebx, eax
test eax, eax
jne 0x140008757
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400086e0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008744
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140005860
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008767
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140018ad0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400088e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000588e
mov r8, rdx
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400088e0
cmp byte [0x14005b240], 0
mov qword [rsp + 0x30], rbx
jne 0x1400058e1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400058d1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14005b238], rax
mov byte [0x14005b240], 1
jmp 0x1400058e8
mov rbx, qword [0x14005b238]
mov byte [0x14005b240], 1
jmp 0x1400058e8
mov rbx, qword [0x14005b238]
test rbx, rbx
je 0x140005918
mov rcx, rbx
call qword [fcn.14001e460]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140008957
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000896b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000896b
mov rcx, rax
call qword [fcn.14001e460]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140008970
cmp dword [rcx + 8], 0
je 0x14000896b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140008970
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008a70
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x70
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx r14d, dl
mov rsi, rcx
call fcn.14000abb0
test eax, eax
jne 0x140008aa4
mov eax, 0x80004005
jmp 0x140008c29
mov rcx, qword [0x140059ed0]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0x90], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
lea rdi, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x58], xmm0
call fcn.14000b150
test eax, eax
js 0x140008c21
lea rax, [rsp + 0x40]
mov qword [rsp + 0x88], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov qword [rsp + 0x40], rbx
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140008b37
mov ecx, eax
call fcn.140003f40
mov ebx, eax
jmp 0x140008c17
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
call fcn.140005390
mov rdi, qword [rsp + 0x48]
test eax, eax
je 0x140008b8b
mov ecx, eax
call fcn.140003f40
mov ebx, eax
jmp 0x140008bf6
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140008bf6
lea r8, [rsi + 0x68]
test r8, r8
je 0x140008be5
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140008bb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], r8
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.1400068c0
test eax, eax
jne 0x140008bf6
mov ebx, 0x80004005
test rdi, rdi
je 0x140008c04
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x140008c17
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140018ad0
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r14
ret
Function at 0x140008f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.14001c090
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008fa0
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008fa0
call fcn.140003f20
mov ebx, eax
jmp 0x1400090c8
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140008fc1
call fcn.140003f20
jmp 0x1400090b7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140008fe4
call fcn.140003f20
jmp 0x1400090b7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140009006
mov ebx, 0x8007000e
jmp 0x1400090b9
mov ecx, eax
test eax, eax
je 0x14000903e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140009034
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000903e
lea rcx, [rsp + 0x70]
call fcn.140003a40
jmp 0x140009048
mov ecx, 0x80070216
call fcn.140004bd0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000905b
cmp qword [rsp + 0x70], 0
jne 0x14000906a
mov ebx, 0x8007000e
jmp 0x1400090b9
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140009094
call fcn.140003f20
jmp 0x1400090b7
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140008c50
mov ebx, eax
test rdi, rdi
je 0x1400090c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400090df
lea rcx, [rsp + 0x70]
call fcn.140005980
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009de0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140007c00
test eax, eax
jne 0x140009e07
mov rcx, rbx
call fcn.140009e20
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140007960
js 0x140009e16
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140007960
add rsp, 0x20
pop rbx
ret

Function at 0x14000a0c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x48
ret

Function at 0x14000a1c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x14000a1d8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000a1e4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x14000a1e0
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x14000a3b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14d, edx
lea rax, [rsp + 0x40]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor edi, edi
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x40], rdi
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000a418
mov dword [rbx + 0x27c], eax
jmp 0x14000a54f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2a8], rsi
lea rdx, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov rsi, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a518
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000a4ca
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14000a4a6
mov ecx, 0xd
jmp 0x14000a4ca
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000a4c3
test al, 1
jne 0x14000a4bc
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], di
je 0x14000a4c8
mov ecx, 0xd
jmp 0x14000a4ca
mov word [rsp + 0x70], di
mov ecx, edi
test ecx, ecx
mov eax, edi
mov edx, 1
cmove eax, edx
mov dword [rbx + 0x28c], eax
test eax, eax
je 0x14000a575
lea rax, [rbx + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x14000b820]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000a51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x27c], eax
mov edi, dword [rbx + 0x27c]
test rsi, rsi
je 0x14000a532
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
mov rsi, qword [rsp + 0x2a8]
je 0x14000a54d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140018ad0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x14000a5a0
cmp eax, 0x80010106
jne 0x14000a524
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000a5a4
jmp 0x14000a524
mov byte [rbx + 0x62], 1
mov edx, r14d
mov rcx, rbx
call fcn.140009de0
mov edi, eax
mov dword [rbx + 0x27c], eax
jmp 0x14000a524
Function at 0x14000a5c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140058100]
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
jne 0x14000a604
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400070e0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000a645
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x40
pop rbx
ret
Function at 0x14000a6b0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
xor ecx, ecx
xor edx, edx
lea r8d, [rdx + 0x24]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], 0
mov edi, eax
test rsi, rsi
je 0x14000a88f
cmp ebx, 1
jne 0x14000a722
lea rdx, [0x14003b350]
jmp 0x14000a732
cmp ebx, 2
jne 0x14000a886
lea rdx, [0x140059f78]
mov r8d, 0x10024
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000a886
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000a87d
cmp dword [rsp + 0x3c], 3
jne 0x14000a801
mov qword [rsp + 0x80], rbp
mov ebp, 0x2710
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000a7ab
mov edx, 0x3e8
jmp 0x14000a7b0
cmp edx, ebp
cmova edx, ebp
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000a7f9
cmp dword [rsp + 0x3c], 1
je 0x14000a7f9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x14000a7f9
cmp dword [rsp + 0x3c], 3
je 0x14000a790
mov rbp, qword [rsp + 0x80]
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000a86d
cmp dword [rsp + 0x3c], 1
je 0x14000a874
nop
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000a86d
cmp dword [rsp + 0x3c], 1
je 0x14000a874
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x14000a86d
cmp dword [rsp + 0x3c], 1
jne 0x14000a820
jmp 0x14000a874
cmp dword [rsp + 0x3c], 1
jne 0x14000a87d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140018ad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000af90
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000abb0
test eax, eax
jne 0x14000afc3
mov eax, 0x80004005
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x58
ret
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000b005
mov ecx, eax
call fcn.140003f40
mov ebx, eax
jmp 0x14000b07f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000b03e
mov ecx, eax
call fcn.140003f40
mov ebx, eax
jmp 0x14000b06c
mov rcx, qword [rsp + 0x30]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.14000b0f0
cmp qword [rsp + 0x30], 0
mov ebx, eax
je 0x14000b06c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x14000b07f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x58
ret

Function at 0x14000b8f0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14005b1d8], 0
mov ebx, r9d
je 0x14000b907
or ebx, 0xffffffff
jmp 0x14000b95b
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140059f10]
call fcn.140007660
cmp al, 1
jne 0x14000b93f
mov edx, ebx
lea rcx, [0x140059f10]
call fcn.14000a3b0
mov ebx, eax
jmp 0x14000b943
mov ebx, dword [rsp + 0x20]
cmp dword [0x14005a19c], 0
jne 0x14000b95b
cmp byte [0x140059f72], 0
je 0x14000b95b
call qword [sym.imp.ole32.dll_CoUninitialize]
xor edx, edx
lea rcx, [0x140059f10]
call fcn.140004dc0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000d9b0
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edx, 0x400
lea rcx, [0x14005d3f0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, 0x400
lea rdx, [0x14005cbf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [0x14005cbf0]
call fcn.14001d96c
xor esi, esi
test rax, rax
je 0x14000da04
mov word [rax], si
lea rdi, [0x14005dbf0]
mov edx, 0x400
mov rcx, rdi
lea r8, [0x14005d3f0]
call fcn.14001ea10
mov edx, 0x5c
mov rcx, rdi
call fcn.14001d8d8
test rax, rax
je 0x14000da94
sub rax, rdi
sar rax, 1
inc eax
add rax, rax
cmp rax, 0x800
jae 0x14000daac
lea r8, str.Intel
mov word [rax + rdi], si
mov edx, 0x400
mov rcx, rdi
call fcn.14001e990
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.GfxCPLBatchFiles
mov edx, 0x400
mov rcx, rdi
call fcn.14001e990
xor edx, edx
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.1400126f0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140019334
int3

Function at 0x14000e970
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCplsigfxcpl.cpl
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ea0f
mov dword [rsp + 0x58], ebx
lea r9d, [rbx + 4]
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RunLevel
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14000ea0f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x70
pop rbx
ret
Function at 0x140011bc0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x78]
xor ebx, ebx
mov qword [rsp + 0x58], rax
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rax
lea r8d, [rbx + 0x60]
call fcn.14001c090
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005bb10]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140011c5f
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.140018ad0
add rsp, 0xf0
pop rbx
ret