joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x453def
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x00572968]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x45c9e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00572768], 0
je 0x45c9ee
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x45ca00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00572768], 0
je 0x45ca15
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x45ca20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00572768], 0
je 0x45ca55
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00572d00]
aesenc xmm0, xmmword [0x00572d10]
aesenc xmm0, xmmword [0x00572d20]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback
Function at 0x45e0a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x00572968]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x45e13b
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x45e360
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x00572968]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x45e3f7
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x45e7c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45e7f4
mov rcx, 0x28
jmp 0x45e7ff
shl rcx, 3
add rcx, 0x1480
mov qword [0x00572968], rcx
pop rbp
ret

Function at 0x465740
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46580a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00572968]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4657ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0046c4c0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x4657de
mov edi, 1
lea rsi, [0x0046c4c0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00494fc8]
lea rsi, [0x00494d30]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x141236058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412361df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141236089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123606f
add dl, dl
jne 0x141236096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412360f6
xor eax, eax
add dl, dl
jne 0x1412360a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412361ad
add dl, dl
jne 0x1412360b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412360c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412360d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412360dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412360ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14123607e
mov eax, 1
add dl, dl
jne 0x141236106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141236113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412360fb
sub eax, ebx
mov ebx, 1
jne 0x14123614c
mov ecx, 1
add dl, dl
jne 0x14123612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14123613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141236123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141236168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141236175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123615d
cmp eax, 0x7d00
jae 0x14123619b
cmp eax, 0x500
jb 0x141236196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123607e
cmp eax, 0x7f
ja 0x14123619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412361d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14123607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010f0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x140001d70]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x140001d80]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, section..text
xor ecx, ecx
add rsp, 0x28
jmp 0x14000163d
jmp qword [sym.imp.ntoskrnl.exe_IoCreateDriver]

Function at 0x140001120
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x28], 0x7bdec4c
mov rdi, rcx
jne 0x140001207
cmp qword [rcx + 0x30], 0xa3ccf6c
jne 0x140001207
cmp qword [rcx + 0x38], 0xf5a8672
jne 0x140001207
movsxd rax, dword [rcx]
test eax, eax
je 0x140001202
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001202
call fcn.140001218
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.1400013a4
test rax, rax
je 0x140001202
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x1400011e5
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.1400015b0
jmp 0x1400011fe
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001207
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000123c
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x14000128a
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000128a
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x14000128a
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000128f
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x140002100
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x140056ef8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140056ed0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x1400575d8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1400575d0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400575e8], rax
test rax, rax
je 0x1400021ab
xor eax, eax
lea r8, [0x140001fa0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov byte [0x1400575cc], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400575e0], rax
test rax, rax
jne 0x1400021cc
mov rcx, qword [0x1400575e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400575b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140056ef8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret

Function at 0x140005c70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140055020]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140005cda
cmp dword [rsp + 0x24], 6
jb 0x140005cda
cmp dword [rsp + 0x28], 1
jb 0x140005cda
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140032000
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140032000
add rsp, 0x158
ret
Function at 0x140007f00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push rdi
sub rsp, 0x6a0
mov rax, qword [0x140055020]
xor rax, rsp
mov qword [rsp + 0x690], rax
movups xmm0, xmmword [str.RpcSs]
lea rcx, [rsp + 0x2a0]
xor edx, edx
mov r8d, 0x3f0
movaps xmmword [rsp + 0x290], xmm0
call sub.MSVCR100.dll_memset
lea r8, [0x140057160]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
lea r8, str.__launchService
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcscat_s]
lea rdx, str.ServicesActive
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140007fad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR100.dll_wprintf_s]
or eax, 0xffffffff
jmp 0x14000808b
xor ecx, ecx
lea rax, [0x14003ca18]
lea r8, str.AMD_FUEL_Service
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x290]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x80]
lea rdx, str.AMD_FUEL_Service
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x6b0], rbx
mov dword [rsp + 0x20], SafeArrayGetLBound
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
jne 0x14000804c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR100.dll_wprintf_s]
or eax, 0xffffffff
jmp 0x140008083
lea rax, str.Provides_FUEL_Functionality
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Service_installed._n
call qword [sym.imp.MSVCR100.dll_wprintf_s]
xor eax, eax
mov rbx, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140032000
add rsp, 0x6a0
pop rdi
ret
Function at 0x1400080b0
Capabilities:
Delete service

Disassembly:
push rdi
sub rsp, 0x20
lea rdx, str.ServicesActive
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400080f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR100.dll_wprintf_s]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
lea rdx, str.AMD_FUEL_Service
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
jne 0x140008140
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR100.dll_wprintf_s]
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140008170
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR100.dll_wprintf_s]
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Service_uninstalled._n
call qword [sym.imp.MSVCR100.dll_wprintf_s]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140012ad0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x70
cmp byte [0x140058350], 0
lea rbx, [0x140055f08]
jne 0x140012caf
lea rax, [rbp - 0x40]
lea rdx, str.SOFTWAREAMDFuel
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, [0x1400585b0]
test eax, eax
jne 0x140012b55
mov rcx, qword [rbp - 0x40]
lea rax, [rbp + 0x20]
lea r9, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, [0x14003fed0]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x20], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140012c80
mov qword [rbp + 0x30], rsi
test rsi, rsi
je 0x140012cca
lea rax, [rbp - 0x38]
lea rdx, str.SOFTWAREAMDFuel
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012bcb
mov rcx, qword [rbp - 0x38]
lea rax, [rbp + 0x20]
lea r9, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
lea rdx, str.DefaultDataPath
xor r8d, r8d
mov dword [rbp + 0x20], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012bcb
cmp dword [rbp + 0x28], 1
je 0x140012c6b
lea r9, [rbp + 0x38]
lea rcx, [0x140039c60]
xor r8d, r8d
xor edx, edx
mov qword [rbp + 0x38], 0
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140012c22
lea rax, str.Could_not_retrieve_the_Program_Data_directory_for_Profiles
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x30], rax
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea rdx, vtable.std::runtime_error.0
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x28]
lea rdx, [0x140050e88]
call sub.MSVCR100.dll__CxxThrowException
int3
mov r8, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
mov rcx, qword [rbp + 0x30]
lea r8, [0x14003cfa8]
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcscat_s]
mov rcx, qword [rbp + 0x30]
lea r8, str.AMDFuel_
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcscat_s]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Profiles_
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_wcscat_s]
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], rdi
xor eax, eax
mov rdi, rsi
mov rdx, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140004580
mov rdi, qword [rsp + 0x68]
mov byte [0x140058350], 1
cmp qword [0x140055f20], 8
cmovae rbx, qword [0x140055f08]
mov rax, rbx
add rsp, 0x70
pop rsi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x70
pop rsi
pop rbx
pop rbp
ret
Function at 0x140012ce0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov edx, 8
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.140012ad0
cmp qword [0x140055f20], 8
lea rdx, [0x140055f08]
cmovae rdx, qword [0x140055f08]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jns 0x140012d56
lea rax, str.Could_not_create_Profiles_directory
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.std::runtime_error.0
lea rdx, [0x140050e88]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r11
call sub.MSVCR100.dll__CxxThrowException
int3
lea rax, [0x1400589c8]
add rsp, 0x48
ret

Function at 0x140012d70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
jne 0x140012d97
lea eax, [rbx + 1]
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x140012dcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
test rax, rax
jne 0x140012e0d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x50]
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor eax, eax
lea r8, [0x140013560]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x140012e59
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp + 1]
jmp 0x140012ed3
mov rcx, qword [0x1400577e8]
cmp rbx, rcx
je 0x140012e77
test rcx, rcx
je 0x140012e70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400577e8], rbx
mov rcx, qword [0x140057858]
cmp rdi, rcx
je 0x140012e95
test rcx, rcx
je 0x140012e8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140057858], rdi
mov rcx, qword [0x1400577f0]
cmp rsi, rcx
je 0x140012eb3
test rcx, rcx
je 0x140012eac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400577f0], rsi
mov rcx, qword [0x140057850]
cmp rbp, rcx
je 0x140012ed1
test rcx, rcx
je 0x140012eca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140057850], rbp
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x140012ef0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x1c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140055020]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r8d, 0x28
lea rdx, [rsp + 0x160]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x30]
call fcn.140003a40
nop
call fcn.140012ad0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004e80
mov rcx, rax
lea rdx, [rsp + 0x160]
call fcn.140004e80
mov rcx, rax
lea rdx, str..xml
call fcn.140004e80
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call fcn.140003b90
cmp qword [rax + 0x18], 8
jb 0x140012f80
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sets bl
cmp qword [rsp + 0x148], 8
jb 0x140012fa7
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
test bl, bl
je 0x140012fcd
lea rcx, [rsp + 0xc8]
call fcn.140003af0
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, 1
jmp 0x140012fea
lea rcx, [rsp + 0xc8]
call fcn.140003af0
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140032000
add rsp, 0x1c0
pop rbx
ret