joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037840
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, rdx
lea r8, [0x140064c30]
mov edx, 0x104
mov rbp, rcx
call fcn.140044288
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x208
call fcn.1400423d0
mov edx, dword [0x7ffe02d8]
xor ebx, ebx
mov esi, ebx
cmp edx, 0xffffffff
je 0x1400379c8
mov rax, qword [0x14007cbb0]
mov qword [rsp + 0x30], rbx
test rax, rax
je 0x1400379c8
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor ecx, ecx
lea r8d, [rbx + 5]
call rax
test eax, eax
je 0x1400379c8
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx]
cmp ax, word [0x140064c30]
je 0x140037903
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.140044288
mov rcx, qword [rsp + 0x30]
lea esi, [rbx + 1]
mov rax, qword [0x14007cba8]
test rax, rax
je 0x140037911
call rax
test esi, esi
je 0x1400379c8
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rcx, [0x14005bc00]
xor edx, edx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140037964
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.140044288
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140037974
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
je 0x1400379c8
test rdi, rdi
je 0x14003798f
lea r8, [rsp + 0x50]
mov edx, 0x104
mov rcx, rdi
call fcn.140044288
lea rcx, [rsp + 0x260]
mov edx, 0x104
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x50]
lea rcx, str.ASUSASUS_System_Control_InterfaceAsusOptimizationSplendid
mov qword [rsp + 0x20], rcx
lea r8, str._s_s_s_my_sp_data.sys
mov rcx, rbp
call fcn.14000a160
mov eax, 1
jmp 0x1400379ca
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037d80
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
xor r14d, r14d
call fcn.1400423d0
mov r9, rdi
lea r8, str._s.
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.14000a160
xor edx, edx
lea rcx, [rbp + 0x3c0]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [0x14007ba10]
mov edx, 0x104
lea r8, [0x14006bfa0]
lea rcx, [rbp + 0x3c0]
call fcn.14000a160
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140038030
mov qword [rsp + 0x918], rbx
test byte [rsp + 0x60], 0x10
jne 0x140038009
lea rax, [rbp - 0x74]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140037e56
cmp esi, 1
jne 0x140037ea9
cmp ebx, 0xa
jl 0x140037e8c
lea eax, [rbx - 0xa]
movsxd rcx, eax
lea rdx, str._cmdef.icm
lea rax, [rbp - 0x74]
lea rcx, [rax + rcx*2]
call fcn.14004da60
test eax, eax
je 0x140037f63
lea rdx, str.pqconfig.dv
lea rcx, [rbp - 0x74]
call fcn.14004da60
test eax, eax
je 0x140037f63
jmp 0x140038009
cmp esi, 2
jne 0x140037ede
cmp ebx, 4
jl 0x140038009
lea eax, [rbx - 4]
movsxd rcx, eax
lea rdx, str..icm
lea rax, [rbp - 0x74]
lea rcx, [rax + rcx*2]
call fcn.14004da60
test eax, eax
je 0x140037f63
jmp 0x140038009
cmp esi, 3
jne 0x140038009
cmp ebx, 4
jl 0x140038009
lea eax, [rbx - 4]
movsxd rcx, eax
lea rdx, str..icm
lea rax, [rbp - 0x74]
lea rcx, [rax + rcx*2]
call fcn.14004da60
test eax, eax
jne 0x140038009
lea r8d, [rsi + 2]
lea rdx, str.ASUS_
lea rcx, [rbp - 0x74]
call fcn.14004deb0
test eax, eax
je 0x140037f63
lea rax, [rbp + 0x3c0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140037f40
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp - 0x74]
call fcn.14004deb0
test eax, eax
jne 0x140038009
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x140037f70
inc rcx
movsxd rax, ebx
add rcx, rax
cmp rcx, 0x104
jae 0x140038009
xor edx, edx
lea rcx, [rbp + 0x5d0]
mov r8d, 0x208
call fcn.1400423d0
mov r8, rdi
lea rcx, [rbp + 0x5d0]
mov edx, 0x104
call fcn.140044288
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
je 0x140037fd6
test dword [rsp + 0x30], 0x400
jne 0x140038009
lea rax, [rbp - 0x74]
mov r9, rdi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.14000a160
lea rcx, [rbp + 0x1b0]
call fcn.14003e790
inc r14d
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x140037e40
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rbx, qword [rsp + 0x918]
mov eax, r14d
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x8f0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140038380
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14d, edx
lea rax, str.CPanelMode
test r8d, r8d
lea rdx, str.Mode
mov ebp, r9d
mov edi, r8d
mov rsi, rcx
mov r9, rcx
cmovne rdx, rax
lea rcx, str.Main
mov r8d, 0x1e
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
mov ebx, eax
cmp eax, 0x1e
ja 0x1400383e9
mov eax, 0x400000e6
bt eax, ebx
jae 0x1400383e9
cmp ebx, 0x1e
je 0x140038455
jmp 0x1400383ee
mov ebx, 1
mov eax, 0xffffffff
cmp ebx, 6
jne 0x140038433
lea rax, str.CPanelColorTemperature
test edi, edi
lea rdx, str.ColorTemperature
mov r9, rsi
cmovne rdx, rax
lea r8d, [rbx + 0x2c]
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, 0x64
cmp eax, ecx
cmovg eax, ecx
jmp 0x140038442
cmp ebx, 7
jne 0x140038442
mov edx, edi
mov rcx, rsi
call fcn.140038470
mov r9d, edi
mov dword [rsp + 0x20], ebp
mov r8d, r14d
mov edx, eax
mov ecx, ebx
call fcn.140038060
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140038470
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x28
mov eax, edx
lea r8, str.CPanelEyeCareLevel
test eax, eax
lea rdx, str.EyeCareLevel
mov r9, rcx
lea rcx, str.Main
cmovne rdx, r8
mov r8d, 2
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, 4
cmp eax, ecx
cmovg eax, ecx
add rsp, 0x28
ret
Function at 0x1400392f0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rdi
sub rsp, 0x78
movdqa xmm0, xmmword [0x14006e080]
mov rdi, r8
mov qword [rax - 0x48], 0xffffffffffffffff
mov ebp, ecx
mov qword [rax - 0x40], 0xffffffffffffffff
mov qword [rax - 0x38], 0xffffffffffffffff
mov qword [rax - 0x30], 0xffffffffffffffff
mov qword [rax - 0x28], 0xffffffffffffffff
movdqu xmmword [rax - 0x58], xmm0
test r8, r8
je 0x1400393f6
mov qword [rax + 8], rbx
xor ebx, ebx
mov qword [rax + 0x20], rsi
mov esi, ebx
mov qword [rax - 0x18], r14
cmp dword [r8 + 8], ebx
jne 0x1400393be
cmp dword [r8 + 0xc], ebx
jne 0x1400393be
cmp dword [r8 + 0x10], ebx
jne 0x1400393be
cmp dword [r8], ebx
je 0x1400393be
lea r9, [r8 + 0x20]
xor r8d, r8d
lea rdx, str.SupportVideoEnhance
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
test eax, eax
mov edx, ebx
setg dl
mov dword [rdi + 4], edx
test eax, eax
jle 0x1400393b7
lea r9, [rdi + 0x20]
xor r8d, r8d
lea rdx, str.IsVideoEnhance
lea rcx, str.Main
lea esi, [rbx + 1]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
mov ecx, ebx
cmp eax, esi
sete cl
mov dword [rsp + 0x34], ecx
jmp 0x1400393c9
mov ebx, 1
jmp 0x1400393c9
cmp dword [r8], ebx
mov ecx, 1
cmove ebx, ecx
mov r9d, ebp
lea r8, [rsp + 0x30]
mov edx, ebx
mov ecx, esi
call fcn.140007d20
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rbp
ret
mov dword [rsp + 0x34], edx
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, ebp
lea ecx, [rdx + 1]
call fcn.140007d20
add rsp, 0x78
pop rdi
pop rbp
ret
Function at 0x140039420
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x78
movdqa xmm0, xmmword [0x14006e150]
xor ebp, ebp
test edx, edx
mov qword [rsp + 0x44], 0xffffffffffffffff
mov eax, ebp
mov qword [rsp + 0x50], 0xffffffffffffffff
setne al
mov dword [rsp + 0x4c], 0xffffffff
add eax, 0xa
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x30], eax
mov rbx, r9
mov qword [rsp + 0x60], 0xffffffffffffffff
mov esi, edx
mov r14d, ecx
movdqu xmmword [rsp + 0x34], xmm0
test r9, r9
je 0x140039544
mov eax, dword [r9 + 8]
mov qword [rsp + 0x70], rdi
mov edi, ebp
test edx, edx
jne 0x1400394b0
test eax, eax
jne 0x1400394a9
cmp dword [r9 + 0xc], ebp
jne 0x1400394a9
cmp dword [r9 + 0x10], ebp
jne 0x1400394a9
cmp dword [r9], ebp
jne 0x1400394cd
cmp dword [r9], edi
je 0x14003951f
jmp 0x140039524
test eax, eax
jne 0x140039517
cmp dword [r9 + 0xc], edi
jne 0x140039517
cmp dword [r9 + 0x10], edi
jne 0x140039517
cmp dword [r9], edi
je 0x140039517
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x14003951f
cmp qword [0x14007d0b0], rdi
je 0x14003951f
test esi, esi
je 0x1400394e3
call fcn.14003c5c0
test al, 8
je 0x14003951f
test esi, esi
lea rax, str.CPanelLutDcScale
mov ebp, 1
lea rdx, str.LutDcScale
lea r9, [rbx + 0x20]
cmovne rdx, rax
lea rcx, str.Main
lea r8d, [rbp + 0x63]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x34], eax
jmp 0x140039524
mov eax, dword [r9 + 0x18]
test eax, eax
jne 0x140039524
mov edi, 1
mov r9d, r14d
lea r8, [rsp + 0x30]
mov edx, edi
mov ecx, ebp
call fcn.140007d20
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
pop r14
pop rsi
pop rbp
pop rbx
ret
xor edx, edx
mov dword [rsp + 0x34], r8d
mov r9d, r14d
lea r8, [rsp + 0x30]
lea ecx, [rdx + 1]
call fcn.140007d20
add rsp, 0x78
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140039570
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor ebx, ebx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov ebp, ebx
call fcn.1400423d0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbx + 2]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400396a2
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
test eax, eax
je 0x14003964b
mov edi, ebx
nop dword [rax]
nop word [rax + rax]
mov edx, 0x5c
lea rcx, [rsp + 0x4c]
call fcn.140042120
test rax, rax
jne 0x14003960b
lea rax, [rsp + 0x4c]
jmp 0x14003960f
add rax, 2
lea rdx, str.AsusSplendid.exe
mov rcx, rax
call fcn.14004da60
test eax, eax
jne 0x140039639
lea ebp, [rax + 1]
cmp rdi, 0x10
jge 0x140039636
mov eax, dword [rsp + 0x28]
mov dword [rsp + rdi*4 + 0x260], eax
inc rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
test eax, eax
jne 0x1400395f0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebp, ebp
je 0x1400396a2
nop dword [rax + rax]
mov r8d, dword [rsp + rbx*4 + 0x260]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140039692
mov edx, 9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc rbx
cmp rbx, 0x10
jl 0x140039660
mov eax, 1
jmp 0x1400396a4
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400396d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor edx, edx
call fcn.140031c50
test eax, eax
je 0x14003977f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x68], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NKeyRollover
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140039751
mov esi, dword [rsp + 0x3c]
lea edi, [rbx + 1]
jmp 0x140039757
mov esi, dword [rsp + 0x40]
mov edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x68]
je 0x14003977f
test r14, r14
je 0x140039778
test esi, esi
setne bl
mov dword [r14], ebx
mov eax, 1
jmp 0x140039781
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x1400397a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor edx, edx
call fcn.140031c50
test eax, eax
je 0x140039850
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x68], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ArrowKeySwitch
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140039821
mov esi, dword [rsp + 0x3c]
lea edi, [rbx + 1]
jmp 0x140039827
mov esi, dword [rsp + 0x40]
mov edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x68]
je 0x140039850
test r14, r14
je 0x140039849
cmp esi, 1
sete bl
mov dword [r14], ebx
mov eax, 1
jmp 0x140039852
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140039a50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor edx, edx
call fcn.140031c50
test eax, eax
je 0x140039b2f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
lea rdx, str.FnSwitch
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea ebp, [rbx + 1]
test eax, eax
jne 0x140039adc
mov edi, dword [rsp + 0x3c]
mov esi, ebp
jmp 0x140039ae2
mov edi, dword [rsp + 0x40]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x80]
je 0x140039b0e
test r14, r14
je 0x140039b08
mov eax, edi
shr eax, 0x15
and eax, ebp
mov dword [r14], eax
cmp dil, bpl
cmove ebx, ebp
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x58
pop r14
pop rbx
ret
mov eax, ebx
jmp 0x140039b1a

Function at 0x14003a040
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov eax, dword [0x14007cb64]
test eax, eax
je 0x14003a17d
mov qword [rsp + 0x40], rbx
mov rcx, qword [0x140079b70]
lea rbx, [0x140079b70]
cmp rcx, rbx
je 0x14003a0a6
test byte [rcx + 0x1c], 4
je 0x14003a0a6
mov eax, dword [0x1400799b0]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [0x1400799a8]
mov dword [rsp + 0x28], eax
lea rax, str.Monitor_and_Lid_status
mov qword [rsp + 0x20], rax
call fcn.14003f1a0
mov eax, dword [0x14007cb64]
mov rcx, qword [0x140079b70]
cmp dword [0x1400799a8], 0
je 0x14003a12c
cmp dword [0x1400799b0], 0
jne 0x14003a135
mov rcx, qword [0x14007cb68]
test rcx, rcx
je 0x14003a0d9
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [0x14007cb68], rax
xor r9d, r9d
xor eax, eax
lea r8, [0x14003a190]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14003a16e
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
cmp dword [0x1400799b0], 0
je 0x14003a16e
test eax, eax
je 0x14003a16e
cmp dword [0x14007cb60], 1
jne 0x14003a16e
cmp rcx, rbx
je 0x14003a167
test byte [rcx + 0x1c], 4
je 0x14003a167
mov rcx, qword [rcx + 0x10]
lea rax, str.Reset_thermal_policy
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.14003f070
xor ecx, ecx
call fcn.140039fb0
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret
Function at 0x14003be20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140031c50
test eax, eax
je 0x14003bed7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x60], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DeviceTrackPoint
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003be9d
mov edi, dword [rsp + 0x3c]
lea esi, [rbx + 1]
jmp 0x14003bea3
mov edi, dword [rsp + 0x40]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x60]
je 0x14003bebd
cmp edi, 2
cmovbe ebx, edi
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x50
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x50
pop rbx
ret

Function at 0x14003c850
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
test ecx, ecx
je 0x14003c8aa
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
cmp dword [0x14007cb88], 0
mov qword [0x14007cb80], rax
jne 0x14003c8b9
xor eax, eax
mov dword [0x14007cb88], 1
mov qword [rsp + 0x28], rax
lea r8, [0x14003c8c0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14003c8b9
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
mov dword [0x14007cb88], eax
mov qword [0x14007cb80], rax
add rsp, 0x38
ret
Function at 0x14003c970
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x90
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x10], rbx
mov rbp, rcx
xor ecx, ecx
mov qword [r11 + 0x18], rsi
xor edx, edx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14003ca84
mov r8d, 0xf003f
mov qword [rsp + 0xb8], rdi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14003ca64
lea r8, [rsp + 0x60]
mov rcx, rax
lea edx, [rbx + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x14003ca10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x41c
je 0x14003ca4d
cmp eax, 0x426
je 0x14003ca4d
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x14003ca3b
cmp dword [rsp + 0x3c], 1
je 0x14003ca4d
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x14003ca10
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0xb8]
test ebx, ebx
je 0x14003ca84
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
test eax, eax
jne 0x14003cae1
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x90
pop rbp
ret
Function at 0x14003cdb0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x100
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov edi, dword [rsp + 0x150]
mov rbp, rdx
mov rbx, qword [rsp + 0x160]
xor edx, edx
mov rsi, rcx
mov r14, r9
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.1400423d0
xor eax, eax
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
cmp edi, 1
jne 0x14003ce25
lea rax, str.Winsta0Default
jmp 0x14003ce3a
cmp edi, 2
lea rcx, str.Winsta0Screen_saver
lea rax, str.Winsta0Winlogon
cmove rax, rcx
xor ecx, ecx
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0x158], ecx
jne 0x14003ce60
mov word [rsp + 0xc0], cx
mov dword [rsp + 0xbc], 1
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov r8, r14
lea rax, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x410
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
test eax, eax
je 0x14003cf32
test rbx, rbx
je 0x14003cf09
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14003cf09
test byte [rcx + 0x1c], 4
je 0x14003cf09
mov eax, dword [rbx]
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea rax, str.exitcode
mov qword [rsp + 0x20], rax
call fcn.14003f100
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x14003cf1a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x14003cf2b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
jmp 0x14003cf34
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret