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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rdi, 0x9737788bc654f0e1
invalid
Function at 0x140021ff0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140021ffd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002200d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140021ff5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140022025
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140022012
sub eax, 3
jb 0x14002203f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140022076
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140022066
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140022064
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140022053
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140021fb2
jmp 0x140021ffd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4000
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400220c2
cmp rsi, rcx
jae 0x1400220ca
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400220a9
cmp al, 0x8f
ja 0x1400220a9
cmp byte [rsi - 2], 0xf
je 0x1400220af
sub al, 0xe8
cmp al, 1
ja 0x140022093
cmp rsi, rcx
jae 0x1400220ca
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140022099
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400220ca
lodsb al, byte [rsi]
jmp 0x1400220a9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f000]
mov eax, dword [rdi]
or eax, eax
je 0x140022133
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x37acc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400220d7
jns 0x14002210c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140022116
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002212d
mov qword [rbx], rax
add rbx, 8
jmp 0x1400220f7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002216d
cmp al, 0xef
ja 0x14002215f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002213f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002214e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400221c1
sub rsp, 0xffffffffffffff80
jmp 0x140004740
Function at 0x140001b00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rdx, [rsp + 0x48]
lea rcx, str.TotalAttempts
xor r8d, r8d
call fcn.140010600
test al, al
je 0x140001bae
lea rdx, [rsp + 0x40]
lea rcx, str.CurrentAttempt
xor r8d, r8d
call fcn.140010600
test al, al
je 0x140001bae
xor ecx, ecx
call qword [sym.imp.MSVCR110.dll__time64]
lea rdx, str.StartTime
mov r8d, eax
call fcn.140010880
mov r8d, dword [rsp + 0x40]
cmp r8d, dword [rsp + 0x48]
jae 0x140001b6f
lea rdx, str.CurrentAttempt
inc r8d
call fcn.140010880
add rsp, 0x38
ret
cmp byte [0x1400214b4], 0
je 0x140001bbf
cmp byte [0x140021d04], 0
jne 0x140001bbf
cmp byte [0x140021d06], 0
jne 0x140001bbf
xor eax, eax
lea r8, [0x140001a90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
lea rcx, str.TotalAttempts_or_CurrentAttempt_value_is_not_defined_in_registry...
xor r8d, r8d
xor edx, edx
call fcn.140001f40
add rsp, 0x38
ret
Function at 0x140001bd0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x6c0
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140001c25
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed__error_code___d_n
mov edx, eax
movzx r8d, bx
call fcn.140001f40
jmp 0x140001ded
mov qword [rsp + 0x6d0], rbp
lea rcx, [rsp + 0x82]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x6d8], rsi
mov word [rsp + 0x80], bp
call sub.MSVCR110.dll_memset
lea rdx, [rsp + 0x80]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], bp
call sub.MSVCR110.dll_memset
lea r8, [rsp + 0x80]
lea rdx, str.__s_
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x290]
mov ebx, 1
lea r8, str.AdaptiveSleepService
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea rdx, str.AdaptiveSleepService
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140001d25
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_service__error_code___d_n
movzx r8d, bx
mov edx, eax
call fcn.140001f40
jmp 0x140001dd4
lea rcx, str.Service_is_installed_successfully._n
xor r8d, r8d
xor edx, edx
call fcn.140001f40
lea rcx, [rsp + 0x4a2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x4a0], bp
call sub.MSVCR110.dll_memset
lea r8, str.AMD_adaptive_sleep_service
lea rcx, [rsp + 0x4a0]
mov edx, 0x104
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea rax, [rsp + 0x4a0]
lea r8, [rsp + 0x78]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea r8, [rsp + 0x70]
mov edx, 3
mov rcx, rsi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001dcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_start_service__Error_code___d_n
movzx r8d, bx
mov edx, eax
call fcn.140001f40
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x6d8]
mov rbp, qword [rsp + 0x6d0]
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.140014550
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6c0
pop rdi
ret
Function at 0x140001e10
Capabilities:
Delete file
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140001e61
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed__error_code___d_n
mov edx, eax
movzx r8d, bx
call fcn.140001f40
jmp 0x140001f19
lea rdx, str.AdaptiveSleepService
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140001e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rdi + 1]
lea rcx, str.OpenService_failed__error_code___d_n
mov edx, eax
call fcn.140001f40
jmp 0x140001f0b
mov ebx, 1
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140001ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_stop_service__Error_code___d_n
movzx r8d, bx
mov edx, eax
call fcn.140001f40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140001ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, bx
lea rcx, str.Failed_to_delete_service__Error_code___d_n
mov edx, eax
jmp 0x140001efd
xor r8d, r8d
lea rcx, str.Service_is_uninstalled_successfully._n
xor edx, edx
call fcn.140001f40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
lea rcx, str.AdaptiveSleepService.log
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014550
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x140001f40
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov ebp, edx
mov rbx, rcx
lea rdx, str.Adaptive_Sleep_Service
xor ecx, ecx
movzx esi, r8w
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002035
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140001f90
cmp rcx, 0x3e8
jae 0x140002035
lea rcx, [rsp + 0x60]
mov r8d, ebp
mov rdx, rbx
call fcn.140008000
xor ebx, ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov ebp, 1
xor r8d, r8d
xor r9d, r9d
movzx edx, si
mov rcx, rdi
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x140002035
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
xor r8d, r8d
xor r9d, r9d
movzx edx, si
mov rcx, rdi
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140014550
mov rbx, qword [rsp + 0x890]
add rsp, 0x870
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002320
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
lea rcx, str.GImpl_GoingToS4:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r14d, r14d
lea rcx, [rbp - 0x70]
xorps xmm6, xmm6
xor bl, bl
mov edi, r14d
mov dword [rsp + 0x58], r14d
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x14000238f
mov esi, r14d
cmp byte [rbp - 0x70], sil
sete sil
jmp 0x140002392
or esi, 0xffffffff
mov qword [rsp + 0x48], r14
cmp esi, 0xffffffff
je 0x140002447
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerGetActiveScheme]
test eax, eax
jne 0x140002447
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x80]
mov edx, esi
mov ecx, 4
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
call fcn.1400113c0
mov edi, dword [rsp + 0x58]
cmp eax, 4
jne 0x140002447
test edi, edi
je 0x140002447
movups xmm0, xmmword [0x140021ce0]
movups xmm1, xmmword [0x140021cf0]
mov eax, dword [0x140021d00]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x70], eax
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
call fcn.140010be0
cdq
xor eax, edx
sub eax, edx
xorps xmm0, xmm0
movd xmm6, eax
mov eax, edi
imul eax, eax, 0x3c
cvtsi2sd xmm0, rax
cvtdq2pd xmm6, xmm6
movaps xmm1, xmm6
subsd xmm1, xmm0
movsd xmm0, qword [0x14001a5e0]
andpd xmm1, xmmword [0x14001a5f0]
comisd xmm0, xmm1
setae bl
mov rcx, qword [0x1400214d8]
mov dword [rsp + 0x40], r14d
cmp rcx, 0xffffffffffffffff
je 0x1400024a5
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x9c402410
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400024a5
test bl, bl
je 0x1400024a3
cmp dword [rsp + 0x40], 4
jne 0x1400024a3
mov bl, 1
jmp 0x1400024a5
xor bl, bl
lea rax, str.true_n
lea rcx, str.false_n
test bl, bl
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.SuspendDuration___d_sec__HA___d_sec_n
lea rcx, [rbp - 0x60]
cvttsd2si r8d, xmm6
imul edi, edi, 0x3c
mov r9d, edi
call fcn.140008030
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x140021d07], r14b
je 0x140002527
mov edx, dword [rsp + 0x40]
lea rcx, str.GetPreviousSleepStatus__d_n
mov r8d, 4
call fcn.140001f40
lea rcx, str.GoingToS4__d_n
mov r8d, 4
movzx edx, bl
call fcn.140001f40
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 4]
call fcn.140001f40
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140014550
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
Function at 0x140003c90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x1400214b8]
cmp rcx, 0xffffffffffffffff
je 0x140003cef
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140003cd7
cmp dword [rsp + 0x48], 0x103
jne 0x140003cd7
mov edx, dword [0x1400214b8]
lea rcx, str.Optimizer_thread_still_alive___lu_n
mov r8d, 4
call fcn.140001f40
add rsp, 0x38
ret
mov rcx, qword [0x1400214b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400214b8], 0xffffffffffffffff
xor eax, eax
lea r8, [0x140004500]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.Launch_optimizer_thread___lu_n
mov edx, eax
mov r8d, 4
mov qword [0x1400214b8], rax
call fcn.140001f40
add rsp, 0x38
ret
Function at 0x140006260
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.POWRPROF.dll_PowerGetActiveScheme]
test eax, eax
jne 0x1400062bd
mov rax, qword [rsp + 0x60]
xor edx, edx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea ecx, [rdx + 4]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400113c0
cmp eax, 4
jne 0x1400062bd
mov r8d, dword [rsp + 0x38]
lea rdx, str.HA_AC
call fcn.140010880
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x60], 0
call qword [sym.imp.POWRPROF.dll_PowerGetActiveScheme]
test eax, eax
jne 0x140006315
mov rax, qword [rsp + 0x60]
mov edx, 1
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea ecx, [rdx + 3]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400113c0
cmp eax, 4
jne 0x140006315
mov r8d, dword [rsp + 0x38]
lea rdx, str.HA_DC
add rsp, 0x58
jmp fcn.140010880
add rsp, 0x58
ret

Function at 0x140006530
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140006546
inc rbx
lea rcx, [rbx + rbx]
call qword [sym.imp.MSVCR110.dll_malloc]
lea rcx, [rbx - 1]
mov r9, rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x48]
mov r8, rbx
mov rdx, rax
mov rdi, rax
mov qword [rsp + 0x48], 0
call qword [sym.imp.MSVCR110.dll_mbstowcs_s]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.140001f40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_free]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140009370
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
lea r8, str.pipeAMD_AdaptiveSleep_Service
lea rcx, str.ncacn_np
xor r9d, r9d
mov edx, 0x4d2
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebx, eax
test eax, eax
je 0x1400093b4
lea rcx, str.RpcServerUseProtseqEp_returned_0x_x_n
mov r8d, 1
mov edx, eax
call fcn.140001f40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
lea rcx, [0x140019820]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
mov ebx, eax
test eax, eax
je 0x1400093e8
lea rcx, str.RpcServerRegisterIf_returned_0x_x_n
mov r8d, 1
mov edx, eax
call fcn.140001f40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov ebx, eax
test eax, eax
je 0x14000941c
lea rcx, str.StartRPCServer:_RpcServerRegisterAuthInfo___failed_
mov r8d, 1
mov edx, eax
call fcn.140001f40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
test eax, eax
je 0x140009451
lea rcx, str.RpcServerListen_returned:_0x_x_n
mov r8d, 1
mov edx, eax
call fcn.140001f40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
lea rdx, str.ServiceStatus
xor r8d, r8d
call fcn.140010880
lea rcx, str.RPC_server_is_listening..._n
call qword [sym.imp.MSVCR110.dll_wprintf_s]
call qword [sym.imp.RPCRT4.dll_RpcMgmtWaitServerListen]
mov ebx, eax
test eax, eax
je 0x140009495
lea rcx, str.StartRPCServer:_RpcMgmtWaitServerListen___failed_
mov r8d, 1
mov edx, eax
call fcn.140001f40
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000fe00
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000fe00
push rbx
push rsi
push rdi
sub rsp, 0x50
lea rax, [rsp + 0x80]
lea rdx, str.SOFTWAREATIA4Current
xor esi, esi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
xor dil, dil
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x78], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fe9a
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x78]
lea rdx, str.EnableDynamicHA
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fe87
cmp dword [rsp + 0x70], 1
mov dil, 1
sete bl
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x14000fee7
lea rdx, str.EnableDynamicHA
lea rcx, [rsp + 0x30]
mov r8d, 0xf
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
call fcn.140008b90
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
call fcn.1400118f0
test al, al
je 0x14000fee7
cmp dword [rsp + 0x70], 1
sete al
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
movzx eax, bl
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000ff00
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000ff00
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREATIA4Current
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], 0xffffffff
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ff8b
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
lea rdx, str.TimeResolution
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
movzx ebx, bl
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14000ffc4
xor eax, eax
lea rdx, str.TimeResolution
lea rcx, [rsp + 0x30]
lea r8d, [rax + 0xe]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rax
mov word [rsp + 0x30], ax
call fcn.140008b90
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
call fcn.1400118f0
mov eax, dword [rsp + 0x60]
add rsp, 0x50
pop rbx
ret
Function at 0x14000ffd0
Capabilities:
Create directory
Get common file path

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b8], rbx
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
mov word [rcx], bx
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140017788]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001008f
mov rdx, qword [rsp + 0x28]
cmp word [rdx], bx
je 0x14001005a
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140010050
mov r8, rbx
mov rcx, rdi
call fcn.140008b90
mov r8d, 1
lea rdx, [0x140019064]
mov rcx, rdi
call fcn.140007670
mov r8d, 7
lea rdx, str.AMDA4_
mov rcx, rdi
call fcn.140007670
cmp qword [rdi + 0x18], 8
jb 0x14001009b
mov rcx, qword [rdi]
jmp 0x14001009e
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rbx, 0xffffffffffffffff
jne 0x1400100d5
cmp qword [rdi + 0x18], 8
jb 0x1400100c7
mov rdx, qword [rdi]
jmp 0x1400100ca
mov rdx, rdi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140014550
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rdi
ret