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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
xor esi, esi
lea r8, str.SOFTWAREIntelIGFXDPP_
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x30], rax
mov dword [rsp + 0x38], esi
lea rcx, [r11 - 0x38]
mov r9d, 0x20019
mov rdx, 0xffffffff80000002
mov qword [r11 - 0x28], rsi
xor dil, dil
mov dword [rsp + 0x48], esi
call fcn.1400063a0
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x140005dd5
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x50]
lea rdx, str.EnableHardware3DLUT
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x140005dcc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
cmp dword [rsp + 0x48], 1
sete dil
test rbx, rbx
je 0x140005de3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140016790
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400060b0
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 rdi
sub rsp, 0x278
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9, rdx
mov edx, 0x100
mov rbx, rcx
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x60]
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rax
call fcn.140017820
xor edi, edi
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], di
mov qword [rsp + 0x50], rax
cmp dword [rbx + 0x28c], edi
jne 0x140006122
lea rcx, [rsp + 0x60]
call fcn.140017738
lea rdx, [rbx + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140006173
mov qword [rsp + 0x40], rdi
mov ecx, 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov word [rsp + 0x28], cx
lea edx, [rcx + 3]
xor r8d, r8d
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
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.140016790
add rsp, 0x278
pop rdi
pop rbx
ret
Function at 0x140006b30
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14004a2e0]
mov rdx, qword [0x14004a2e8]
xor edi, edi
mov rsi, rcx
cmp rbx, rdx
jae 0x140006b06
test edi, edi
jne 0x140006b06
mov rax, qword [rbx]
test rax, rax
je 0x140006afd
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x140006afd
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x14004a2e8]
mov edi, eax
add rbx, 8
cmp rbx, rdx
jb 0x140006ad7
cmp byte [rsi + 0x60], 0
je 0x140006b15
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov rax, rsp
push r14
sub rsp, 0x70
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov edx, 1
call fcn.140009940
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140006c00
mov r8d, 2
lea rdx, [0x140049068]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140006bf7
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
lea rax, str.LocalSystem
mov qword [rsp + 0x40], rax
lea rax, str.SENS
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rax, str.ProfSvc_Group
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call fcn.140009ce0
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x140006c37
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x140006c37
mov qword [rbx + 0x2a0], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbx + 0x298]
call fcn.140013aa0
nop
jmp 0x140006c4b
mov rcx, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r14
jmp 0x140006ab0
Function at 0x140007890
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rbx, rcx
lea r8, str.SoftwareIntelDisplayigfxcuiMISC
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xc4
call fcn.1400063a0
test eax, eax
jne 0x140007940
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x4c]
lea rdx, str.LutData
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x14000792b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140016790
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007950
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140016790
add rsp, 0x60
pop rbx
ret

Function at 0x140007970
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.1400063a0
mov ebx, eax
test eax, eax
jne 0x140007a97
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140007a71
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140007970
mov ebx, eax
test eax, eax
jne 0x140007a97
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007a20
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007a86
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.140004620
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007aa7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140016790
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007c10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140007c84
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140007c9f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140007c9f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140007c9f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
movabs dword [0x13cf811d13403487], eax
xchg edi, eax
jb 0x140075025
sbb dword [rax + 0x37], ecx
invalid
Function at 0x140007cc0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rsi, rcx
call fcn.140009d10
test eax, eax
jne 0x140007cf7
mov eax, 0x80004005
jmp 0x140007e99
mov rcx, qword [0x14004a2b8]
mov edx, 0x65
lea rax, str.APPID
xorps xmm0, xmm0
mov qword [rsp + 0xa0], rdi
lea rdi, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
lea r9, [rsp + 0x58]
movdqu xmmword [rsp + 0x68], xmm0
lea r8d, [rdx - 0x64]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
call fcn.14000a2d0
test eax, eax
js 0x140007e91
xor eax, eax
mov qword [rsp + 0x98], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r8, str.AppID
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
call fcn.1400063a0
test eax, eax
je 0x140007d9b
mov ecx, eax
call fcn.140002dc0
mov ebx, eax
jmp 0x140007e74
mov rdx, qword [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x20], ebx
call fcn.140004110
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140007df9
mov ecx, eax
call fcn.140002dc0
mov ebx, eax
jmp 0x140007e66
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140007e66
lea r8, [rsi + 0x68]
test r8, r8
je 0x140007e55
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140007e20
lea eax, [rax*2 + 2]
lea rdx, str.LocalService
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.140005820
test eax, eax
jne 0x140007e66
mov ebx, 0x80004005
test rdi, rdi
je 0x140007e74
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x140007e87
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140016790
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x140008140
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 [0x1400461e0]
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
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.1400167c0
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 0x1400081ec
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 0x1400081ec
call fcn.140002da0
mov ebx, eax
jmp 0x140008314
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000820d
call fcn.140002da0
jmp 0x140008303
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140008230
call fcn.140002da0
jmp 0x140008303
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 0x140008252
mov ebx, 0x8007000e
jmp 0x140008305
mov ecx, eax
test eax, eax
je 0x14000828a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140008280
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000828a
lea rcx, [rsp + 0x70]
call fcn.140002a80
jmp 0x140008294
mov ecx, 0x80070216
call fcn.1400039a0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400082a7
cmp qword [rsp + 0x70], 0
jne 0x1400082b6
mov ebx, 0x8007000e
jmp 0x140008305
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 0x1400082e0
call fcn.140002da0
jmp 0x140008303
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.140007ec0
mov ebx, eax
test rdi, rdi
je 0x140008314
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000832b
lea rcx, [rsp + 0x70]
call fcn.140004710
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140016790
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009070
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140006e10
test eax, eax
jne 0x140009097
mov rcx, rbx
call fcn.1400090b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006b30
js 0x1400090a6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006b30
add rsp, 0x20
pop rbx
ret

Function at 0x140009350
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400461e0]
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.140016790
add rsp, 0x48
ret

Function at 0x140009450
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140009468
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 0x140009474
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140009470
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x140009620
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor eax, eax
xor r12d, r12d
mov rdi, rcx
mov r15d, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x48]
lea r8, str.AppID
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
call fcn.1400063a0
mov ebx, eax
test eax, eax
je 0x1400096a7
mov dword [rdi + 0x27c], eax
jmp 0x14000980a
mov rdx, qword [rsp + 0x48]
xor eax, eax
lea r8, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
call fcn.1400063a0
mov ebx, eax
test eax, eax
jne 0x1400097f2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
lea rdx, str.LocalService
xor r8d, r8d
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000975e
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
jbe 0x140009738
lea ecx, [rbx + 0xd]
jmp 0x14000975e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140009756
test al, 1
jne 0x14000974f
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x14000975b
mov ecx, 0xd
jmp 0x14000975e
mov word [rbp - 0x70], r12w
mov ecx, r12d
test ecx, ecx
mov eax, r12d
mov edx, 1
cmove eax, edx
mov dword [rdi + 0x28c], eax
test eax, eax
je 0x1400097b6
lea rax, [rdi + 0x68]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x68], rax
lea rax, [0x14000aa60]
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400097ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x1400097f8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400097e1
cmp eax, 0x80010106
jne 0x1400097f8
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400097e5
jmp 0x1400097f8
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.140009070
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x30], r12
je 0x14000980a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x14000981c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140016790
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x140009850
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140009894
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016790
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x140006190]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400098d5
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.140016790
add rsp, 0x40
pop rbx
ret
Function at 0x140009940
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x24]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebp, ebp
mov rsi, rax
xor eax, eax
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], ebp
mov edi, eax
test rsi, rsi
je 0x140009b0f
cmp ebx, 1
jne 0x1400099b5
lea rdx, [0x140031a70]
jmp 0x1400099c5
cmp ebx, 2
jne 0x140009b06
lea rdx, [0x140049068]
mov r8d, 0x10024
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140009b06
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140009afd
cmp dword [rsp + 0x3c], 3
jne 0x140009a7d
mov ebp, 0x2710
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
cmp edx, 0x3e8
jae 0x140009a2f
mov edx, 0x3e8
jmp 0x140009a34
cmp edx, ebp
cmova edx, ebp
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140009a7d
cmp dword [rsp + 0x3c], 1
je 0x140009a7d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x140009a7d
cmp dword [rsp + 0x3c], 3
je 0x140009a14
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140009aed
cmp dword [rsp + 0x3c], 1
je 0x140009af4
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140009aed
cmp dword [rsp + 0x3c], 1
je 0x140009af4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x140009aed
cmp dword [rsp + 0x3c], 1
jne 0x140009aa0
jmp 0x140009af4
cmp dword [rsp + 0x3c], 1
jne 0x140009afd
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.140016790
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 0x14000a170
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.140009d10
test eax, eax
jne 0x14000a187
mov eax, 0x80004005
add rsp, 0x58
ret
xor eax, eax
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea r8, str.AppID
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.1400063a0
test eax, eax
je 0x14000a1da
mov ecx, eax
call fcn.140002dc0
mov ebx, eax
jmp 0x14000a250
mov rdx, qword [rsp + 0x38]
xor eax, eax
lea r8, str.278A87E1_1BC2_4E19_82E9_8BBE31D67D20
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], rbx
call fcn.1400063a0
test eax, eax
je 0x14000a222
mov ecx, eax
call fcn.140002dc0
jmp 0x14000a23b
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.14000a270
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x14000a250
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x14000a263
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x14000b070
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x140048fe1], 0
mov ebx, r9d
je 0x14000b087
or ebx, 0xffffffff
jmp 0x14000b0db
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x20]
lea rcx, [0x140049000]
mov rdx, rax
call fcn.140006860
cmp al, 1
jne 0x14000b0bf
lea rcx, [0x140049000]
mov edx, ebx
call fcn.140009620
mov ebx, eax
jmp 0x14000b0c3
mov ebx, dword [rsp + 0x20]
cmp dword [0x14004928c], 0
jne 0x14000b0db
cmp byte [0x140049062], 0
je 0x14000b0db
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [0x140049000]
xor edx, edx
call fcn.140003b40
mov eax, ebx
add rsp, 0x30
pop rbx
ret