joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116e0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00562c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00562ca8], ax
jne 0x41174b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00562caa]
mov r8d, 0x55
call fcn.0040f030
lea rcx, [0x00562c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x411857
lea rcx, [0x00562c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040dbc0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x411810
cmp byte [0x00562c78], 0
je 0x4117a4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00411570
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040e1f0
jmp 0x411810
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004112a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e1f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x411810
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x4117ef
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004118a4]
call fcn.0040f2a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004112a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040f2a0
lea rcx, [0x00562c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00562ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040ef60
lea rcx, [0x00562caa]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00562c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040dca0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4123a0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040dd50
mov rcx, qword [rbp + 0x90]
call fcn.0040dd50
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040dbc0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040e270
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x412443
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41247d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x412476
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.0040f5a0
jmp 0x41247d
sub eax, 1
test eax, eax
jne 0x412448
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00411f70
cmp qword [rbp + 0x68], 0
je 0x4124bb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00412120
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040e1f0
jmp 0x412557
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.004116e0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00412120
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040e1f0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x412530
cmp byte [0x00562c78], 0
jne 0x412530
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.004116e0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00412120
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e1f0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x412557
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00412260
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040e1f0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040dca0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040dca0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4130d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x4130f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x413114
cmp eax, 1
jae 0x413119
cmp ecx, 5
jbe 0x413125
mov dword [0x0055e9a0], 0x7f
jmp 0x41312f
mov dword [0x0055e9a0], 0x409
add rsp, 0x28
ret
Function at 0x4148d0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004148c0
mov ebx, eax
test ebx, ebx
je 0x41491b
cmp dword [0x00540c60], 0xffffffff
jne 0x4148f4
mov ecx, 0xe2
call fcn.0040da00
mov ecx, ebx
call fcn.004148a0
test rax, rax
jne 0x41490d
mov ecx, 0xe2
call fcn.0040da00
jmp 0x41491b
mov ecx, dword [0x00540c60]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x414930
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00562d54], 0
je 0x41496b
mov ecx, dword [0x00540c60]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41497f
call fcn.004148d0
mov ecx, dword [0x00540c60]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41497f
mov rax, qword [0x00562d88]
jmp 0x41497f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00540c60]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42a1a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040ef60
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x42a2a9
mov eax, r13d
test eax, 0x400
jne 0x42a1ea
test r13d, 0x10
setne dil
jmp 0x42a2cf
test sil, sil
je 0x42a24a
mov rcx, rbx
call fcn.0040ef60
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x42a2cf
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x42a2cf
test r13d, 0x10
je 0x42a258
mov dil, 1
jmp 0x42a2cf
mov rcx, rbx
call fcn.0040ef60
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x42a2a4
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x42a2cf
mov dil, 1
jmp 0x42a2cf
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42a2c7
cmp eax, 3
je 0x42a2c7
cmp eax, 0x7b
je 0x42a2c7
cmp eax, 0x35
je 0x42a2c7
cmp eax, 0x15
jne 0x42a2cc
xor rdi, rdi
jmp 0x42a2cf
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x430c10
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x430c37
movzx rax, word [rbp + 0x2c]
jmp 0x430c39
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x431f00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00431ca0
mov ebx, eax
mov rax, qword [0x0055d2c8]
cmp byte [rax], 0
je 0x432038
mov rcx, qword [0x0055cfd0]
call fcn.00409e00
call fcn.004086a0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00431ec0]
mov r8d, 1
movsxd r9, esi
call fcn.00410a20
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x004320d8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43207e
mov rcx, qword [0x00562d58]
call fcn.00410d40
mov rcx, rax
mov rax, qword [0x0055cf58]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00431ec0]
call fcn.00410c00
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x434530
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040e3a0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.004130b0
mov esi, eax
cmp esi, 0x104
jbe 0x43458d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00408360
mov rdi, rax
jmp 0x434591
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.004130b0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4345e7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4345cb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4345f9
mov rcx, rdi
call fcn.00408390
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x537950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x58], edx
mov rcx, qword [rbp + 0x50]
movsxd rdx, dword [rbp + 0x58]
mov r8d, 0x40
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x53799c
mov rcx, qword [0x00420de0]
mov dl, 1
lea r8, [0x00537a20]
call fcn.00432100
mov rcx, rax
call fcn.0040ceb0
nop
call qword [rbp + 0x50]
nop
mov rcx, qword [rbp + 0x50]
movsxd rdx, dword [rbp + 0x58]
mov r8d, dword [rbp + 0x3c]
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x537a70
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x488
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x4a0], rcx
mov qword [rbp + 0x4a8], rdx
nop
mov rcx, qword [rbp + 0x4a0]
mov rdx, qword [0x004206f8]
call fcn.00410c00
xor rcx, rcx
mov edx, 1
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.wininet.dll_InternetOpenW
mov rbx, rax
mov rcx, qword [rbp + 0x4a8]
call fcn.0040ef60
mov rcx, rbx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call sub.wininet.dll_InternetOpenUrlW
mov qword [rbp + 0x470], rax
cmp qword [rbp + 0x470], 0
je 0x537c65
mov rcx, qword [0x004ca930]
mov dl, 1
call fcn.0040aee0
mov qword [rbp + 0x478], rax
nop
mov rcx, qword [rbp + 0x470]
lea rdx, [rbp + 0x70]
mov r8d, 0x400
lea r9, [rbp + 0x6c]
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x537bab
call sub.kernel32.dll_GetLastError_2
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.004297b0
lea rcx, [rbp + 0x50]
lea rdx, [0x00537d54]
mov r8, qword [rbp + 0x48]
call fcn.0040f390
mov rcx, qword [0x0055cfd0]
mov rdx, qword [rbp + 0x50]
call fcn.0040a7b0
mov rcx, rax
call fcn.0040a920
call fcn.004086a0
xor rcx, rcx
mov rdx, qword [rbp + 0x58]
call fcn.00537cd0
jmp 0x537ca7
cmp dword [rbp + 0x6c], 0
jbe 0x537bc5
mov rcx, qword [rbp + 0x478]
lea rdx, [rbp + 0x70]
mov r8d, dword [rbp + 0x6c]
call fcn.004f0430
cmp dword [rbp + 0x6c], 0
jne 0x537b3a
mov rcx, qword [rbp + 0x478]
xor rdx, rdx
call fcn.004eaff0
mov rcx, qword [rbp + 0x478]
mov rax, qword [rbp + 0x478]
mov rax, qword [rax]
call qword [rax]
mov rcx, qword [rbp + 0x4a0]
mov rdx, qword [0x004206f8]
mov r8d, 1
mov r9, rax
call fcn.00410a20
mov rax, qword [rbp + 0x4a0]
mov rcx, qword [rax]
call fcn.00410680
test rax, rax
jle 0x537c4a
mov rax, qword [rbp + 0x4a0]
mov rcx, qword [rax]
call fcn.00410680
mov rcx, qword [rbp + 0x478]
mov rdx, qword [rbp + 0x4a0]
mov rdx, qword [rdx]
mov r8d, eax
call fcn.004eeec0
nop
mov rcx, qword [rbp + 0x478]
call fcn.0040afa0
mov rcx, qword [rbp + 0x470]
call sub.wininet.dll_InternetCloseHandle
jmp 0x537ca6
call sub.kernel32.dll_GetLastError_2
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.004297b0
lea rcx, [rbp + 0x40]
lea rdx, [0x00537de4]
mov r8, qword [rbp + 0x38]
call fcn.0040f390
mov rcx, qword [0x0055cfd0]
mov rdx, qword [rbp + 0x40]
call fcn.0040a7b0
mov rcx, rax
call fcn.0040a920
call fcn.004086a0
nop
lea rcx, [rbp + 0x38]
mov edx, 4
call fcn.0040dca0
mov rax, qword [rbp + 0x4a0]
lea rsp, [rbp + 0x488]
pop rbx
pop rbp
ret
Function at 0x140002aa0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x140053018]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140053138]
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 [0x1400528c0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x1400528b8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400528a0], rax
test rax, rax
je 0x140002b4b
xor eax, eax
lea r8, [0x1400028c0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov byte [0x14005289c], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400528b0], rax
test rax, rax
jne 0x140002b6c
mov rcx, qword [0x1400528a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140052890]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140053018]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret

Function at 0x1400064c0
Capabilities:
Check os version

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

Disassembly:
push rdi
sub rsp, 0x6a0
mov rax, qword [0x140051020]
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.MSVCR110.dll_memset
lea r8, [0x140053ad0]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea r8, str.__launchService
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.MSVCR110.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 0x1400084bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_wprintf_s]
or eax, 0xffffffff
jmp 0x14000859b
xor ecx, ecx
lea rax, [0x14003ab78]
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 0x14000855c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_wprintf_s]
or eax, 0xffffffff
jmp 0x140008593
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.MSVCR110.dll_wprintf_s]
xor eax, eax
mov rbx, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140031010
add rsp, 0x6a0
pop rdi
ret
Function at 0x1400085c0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.ServicesActive
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000860d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_wprintf_s]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
jne 0x140008653
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_wprintf_s]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140008683
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed___Error_code__d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_wprintf_s]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
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.MSVCR110.dll_wprintf_s]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400131e0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
cmp byte [0x1400540b8], 0
lea rdi, [0x140051db0]
jne 0x14001338f
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]
xor ebx, ebx
lea rsi, [0x140054500]
test eax, eax
jne 0x140013268
mov rcx, qword [rbp - 0x38]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ProfilesPath
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x28], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001335a
mov qword [rbp + 0x38], rsi
test rsi, rsi
je 0x1400133ab
lea rax, [rbp - 0x30]
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 0x1400132da
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
lea rdx, str.DefaultDataPath
xor r8d, r8d
mov dword [rbp + 0x28], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400132da
cmp dword [rbp + 0x30], 1
je 0x140013345
lea r9, [rbp + 0x40]
lea rcx, [0x140037cb8]
xor r8d, r8d
xor edx, edx
mov qword [rbp + 0x40], rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400133b6
mov r8, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
mov edx, 0x104
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
mov rcx, qword [rbp + 0x38]
lea r8, [0x14003b108]
mov edx, 0x104
call qword [sym.imp.MSVCR110.dll_wcscat_s]
mov rcx, qword [rbp + 0x38]
lea r8, str.AMDFuel_
mov edx, 0x104
call qword [sym.imp.MSVCR110.dll_wcscat_s]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Profiles_
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_wcscat_s]
cmp word [0x140054500], bx
je 0x14001337a
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140013370
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140004f50
mov byte [0x1400540b8], 1
cmp qword [0x140051dc8], 8
cmovae rdi, qword [0x140051db0]
mov rax, rdi
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, str.Could_not_retrieve_the_Program_Data_directory_for_Profiles
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x28], rax
call qword [sym.imp.MSVCR110.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea rax, vtable.std::runtime_error.0
lea rdx, [0x14004c8c8]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], rax
call sub.MSVCR110.dll__CxxThrowException
int3