joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017e10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rbx, rcx
mov edi, 0xffff
cmp di, dx
jne 0x140017e66
xor eax, eax
cmp dx, di
cmove r14w, ax
movzx eax, r14w
jmp 0x14001802f
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140017ea3
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140017ea3
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x14001802f
cmp qword [rcx + 0x80], 0
je 0x14001802c
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140017ee2
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x140017f0c
mov rdx, qword [rbx + 0x80]
movzx ecx, r14w
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x14001802c
movzx edi, r14w
jmp 0x14001802c
mov word [rbp - 1], r14w
mov edx, 8
lea rcx, [rbp + 7]
call fcn.14000ecf0
nop
mov r9, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
nop dword [rax + rax]
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, r9
lea rdx, [rbp + 7]
cmovae rdx, r9
add rcx, qword [rbp + 0x17]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x140018023
cmp eax, 1
jg 0x140018004
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
cmovae rax, r9
mov rsi, qword [rbp - 0x11]
sub rsi, rax
je 0x140017fd2
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140018023
mov r8, qword [rbp + 0x1f]
mov r9, qword [rbp + 7]
mov byte [rbx + 0x72], 1
lea rax, [rbp - 1]
cmp qword [rbp - 9], rax
jne 0x14001801f
test rsi, rsi
jne 0x140017f30
cmp qword [rbp + 0x17], 0x20
jae 0x140018023
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rbp + 7]
call fcn.14000fd20
jmp 0x140017f20
cmp eax, 3
jne 0x140018023
mov rdx, qword [rbx + 0x80]
movzx ecx, word [rbp - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x140018023
movzx edi, r14w
lea rcx, [rbp + 7]
call fcn.14000fc00
movzx eax, di
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140062800
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400182a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400183e7
cmp byte [rcx + 0x72], 0
je 0x1400183e7
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x1400182f8
xor al, al
jmp 0x1400183e9
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.14000ecf0
nop
mov r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rcx, r9
lea r8, [rsp + 0x40]
cmovae r8, r9
mov r9, qword [rsp + 0x50]
add r9, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140018353
sub eax, 1
jne 0x1400183cd
jmp 0x140018357
mov byte [rdi + 0x72], 0
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, r9
mov rbx, qword [rsp + 0x38]
sub rbx, rax
je 0x1400183a9
lea rcx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400183d2
mov rdx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 0x72], 0
je 0x1400183d6
test rbx, rbx
jne 0x140018312
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.14000fd20
jmp 0x140018308
sub eax, 2
je 0x1400183d6
xor bl, bl
jmp 0x1400183d8
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14000fc00
movzx eax, bl
jmp 0x1400183e9
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140062800
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140018fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140018fd3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001901a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140019015
nop
cmp rbx, rcx
jae 0x14001901a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140019000
cmp rbx, rcx
jb 0x14001901e
xor eax, eax
jmp 0x14001902a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b520
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x48], r14d
cmp qword [r8 + 0x18], 8
jb 0x14001b57f
mov rdx, qword [r8]
jmp 0x14001b582
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
xor r8d, r8d
mov rcx, rbx
call fcn.14000f9f0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14001b5d6
mov rax, qword [rbx]
jmp 0x14001b5d9
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x14001b5e5
mov rdx, qword [rdi]
jmp 0x14001b5e8
mov rdx, rdi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001b65a
cmp qword [rbx + 0x18], 8
jb 0x14001b61d
mov rax, qword [rbx]
jmp 0x14001b620
mov rax, rbx
cmp word [rax + rcx*2 - 2], 0
jne 0x14001b65a
lea rax, [rcx - 1]
cmp rax, rcx
ja 0x14001b64b
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x14001b641
mov rcx, qword [rbx]
jmp 0x14001b644
mov rcx, rbx
mov word [rcx + rax*2], r14w
jmp 0x14001b65a
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400111f0
cmp qword [rbx + 0x10], 0
jne 0x14001b679
cmp rbx, rsi
je 0x14001b679
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140010290
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14001b68e
inc r8
mov rdx, qword [rdi]
call fcn.1400107d0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14001b6b3
inc r8
mov rdx, qword [rsi]
call fcn.1400107d0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140062800
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d4a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 9], rcx
mov qword [rbp + 7], rdx
xor r14d, r14d
mov dword [rbp - 0x19], r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
lea r8d, [r14 + 0x10]
lea rdx, str.UACNotApplicable
call fcn.14000fab0
mov dword [rbp - 0x19], 1
mov dword [rbp + 0x17], 4
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rbp + 0x2f], xmm0
mov word [rbp + 0x1f], r14w
lea r8d, [r14 + 9]
lea rdx, str.EnableLUA
lea rcx, [rbp + 0x1f]
call fcn.14000fab0
nop
mov dword [rbp + 0x13], 4
mov dword [rbp + 0xf], r14d
or esi, 0xffffffff
mov qword [rbp - 1], r14
lea r8, [0x14009d848]
cmp qword [0x14009d860], 8
cmovae r8, qword [0x14009d848]
cmp qword [rbx + 0x18], 8
jb 0x14001d56f
mov rcx, qword [rbx]
jmp 0x14001d572
mov rcx, rbx
mov r9, qword [0x14009d858]
mov rdx, qword [rbx + 0x10]
call fcn.140024fb0
shr eax, 0x1f
test al, al
jne 0x14001d63a
lea rdx, [0x14009da88]
cmp qword [0x14009daa0], 8
cmovae rdx, qword [0x14009da88]
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d608
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x17]
xor r8d, r8d
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [rbp + 0xf]
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x14001d61b
mov r8d, 7
lea rdx, str.Enabled
jmp 0x14001d631
mov r8d, 8
lea rdx, str.Disabled
je 0x14001d631
lea rdx, str.UACError
mov rcx, rdi
call fcn.14000fab0
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x14001d650
inc r8
mov rdx, qword [rbp + 0x1f]
call fcn.1400107d0
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rbp + 0x2f], xmm0
mov word [rbp + 0x1f], r14w
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001d677
inc r8
mov rdx, qword [rbx]
call fcn.1400107d0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140062800
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001e340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001e357
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e36b
test al, 0x10
jne 0x14001e36b
mov dil, 1
jmp 0x14001e36e
xor dil, dil
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001e383
mov rdx, qword [rbx]
inc r8
call fcn.1400107d0
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, dil
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f300
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r8
mov r15, rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xor r14b, r14b
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r13
lea rax, [rsp + 0x68]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x58]
mov qword [rbp], rax
movdqa xmm0, xmmword [0x1400812b0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], r14b
lea r8d, [r13 + 0x3a]
lea rdx, str.SELECT__FROM_Win32_PerfFormattedData_PerfDisk_LogicalDisk
lea rcx, [rbp - 0x38]
call fcn.140018160
nop
mov dword [rsp + 0x40], 1
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r13w
lea r8d, [r13 + 0xa]
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x48]
call fcn.14000fab0
nop
mov dword [rsp + 0x40], 3
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r13w
lea r8d, [r13 + 0x10]
lea rdx, str.PercentFreeSpace
lea rcx, [rsp + 0x68]
call fcn.14000fab0
nop
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r13w
lea r8d, [r13 + 0xf]
lea rdx, str.PercentDiskTime
lea rcx, [rbp - 0x78]
call fcn.14000fab0
nop
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r13w
lea r8d, [r13 + 0xc]
lea rdx, str.Logical_Disk
lea rcx, [rbp - 0x58]
call fcn.14000fab0
nop
call fcn.140046b00
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x48]
call fcn.140047240
mov rsi, qword [rbp + 0x10]
mov rdi, qword [rbp + 8]
test al, al
je 0x14001f498
mov rax, rsi
sub rax, rdi
sar rax, 5
cmp rax, 2
jb 0x14001f498
mov bl, 1
jmp 0x14001f49a
xor bl, bl
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14001f4b2
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400107d0
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r13w
lea rcx, [rbp - 0x38]
call fcn.14000fc00
test bl, bl
je 0x14001f545
cmp r15, rdi
je 0x14001f4ea
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.140010290
lea rdx, [rdi + 0x20]
cmp r12, rdx
je 0x14001f502
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r12
call fcn.140010290
mov rbx, rdi
cmp rdi, rsi
je 0x14001f53e
nop word [rax + rax]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001f525
inc r8
mov rdx, qword [rbx]
call fcn.1400107d0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
add rbx, 0x20
cmp rbx, rsi
jne 0x14001f510
mov qword [rbp + 0x10], rdi
mov r14b, 1
lea rcx, [rbp + 8]
call fcn.140013790
movzx eax, r14b
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140062800
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f580
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
xor r8d, r8d
lea rdx, [0x140077e2c]
call fcn.14000fab0
mov dword [rsp + 0x20], 1
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x60], 0x40
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14001f663
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14001f679
mov edx, 0x64
sub edx, eax
lea rcx, [rsp + 0x38]
call fcn.14000bd40
mov rdx, rax
mov rcx, rbx
call fcn.14000ebb0
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x14001f679
inc r8
mov rdx, qword [rsp + 0x38]
call fcn.1400107d0
jmp 0x14001f679
mov r8d, 0x1c
lea rdx, str.placeholderMemoryPercentFree
mov rcx, rbx
call fcn.14000fab0
nop
mov rax, rbx
jmp 0x14001f683
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140062800
add rsp, 0xb0
pop rbx
ret

Function at 0x14001f6a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r8
mov rbp, rdx
test rdx, rdx
je 0x14001f790
xor edi, edi
mov qword [r11 + 8], rsi
mov qword [r11 - 0x38], rdi
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
lea rdx, str.SoftwareAMDPPC
mov qword [r11 - 0x48], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001f76d
cmp qword [rbx + 0x18], 8
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x98], r14
jb 0x14001f723
mov rcx, qword [rbx]
jmp 0x14001f726
mov rcx, rbx
lea eax, [rax*2 + 2]
mov r14d, 1
mov dword [rsp + 0x28], eax
mov r9d, r14d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
movzx esi, sil
cmove esi, r14d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x98]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001f782
mov rdx, qword [rbx]
inc r8
call fcn.1400107d0
movzx eax, sil
mov rsi, qword [rsp + 0x80]
jmp 0x14001f7a9
mov r8, qword [r8 + 0x18]
cmp r8, 8
jb 0x14001f7a5
mov rdx, qword [rbx]
inc r8
call fcn.1400107d0
xor edi, edi
xor al, al
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062800
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
Function at 0x14002a8b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
lea rbx, [0x14009e348]
mov rax, qword [0x14009e358]
mov edx, 0x105
cmp rax, rdx
jb 0x14002a8fc
mov qword [0x14009e358], rdx
mov rax, rbx
cmp qword [0x14009e360], 8
cmovae rax, qword [0x14009e348]
xor ecx, ecx
mov word [rax + 0x20a], cx
jmp 0x14002a90a
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.1400111f0
mov rax, rbx
cmp qword [0x14009e360], 8
cmovae rax, qword [0x14009e348]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, rbx
call fcn.140017500
mov rdx, rbx
cmp qword [0x14009e360], 8
cmovae rdx, qword [0x14009e348]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002a953
mov rcx, rbx
call fcn.14000fab0
nop
jmp 0x14002a970
add rsp, 0x40
pop rbx
ret
Function at 0x14002d260
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x70], di
call fcn.14002c440
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14002d2bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], di
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14002d2e4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.14000fab0
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14002d316
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400107d0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
movdqu xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm1
lea r10, [rsp + 0x48]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 8
cmovae r10, rcx
movq rax, xmm1
test rax, rax
je 0x14002d3f8
lea r8, [r10 + rax*2]
mov r9, r10
cmp r10, r8
jae 0x14002d3f8
mov ecx, 1
lea rax, [0x140078a80]
movzx edx, word [r9]
nop dword [rax]
cmp word [rax], dx
je 0x14002d398
add rax, 2
sub rcx, 1
jne 0x14002d380
add r9, 2
cmp r9, r8
jmp 0x14002d363
sub r9, r10
sar r9, 1
cmp r9, 0xffffffffffffffff
je 0x14002d3f8
movdqa xmm0, xmmword [0x1400812a0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], di
inc r9
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140010290
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14002d3e4
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400107d0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm1
lea rdx, str.Program_FilesAMDPerformance_Profile_ClientLogPPClog
lea rcx, [rsp + 0x48]
call fcn.140010f30
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140010290
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14002d443
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400107d0
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140062800
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002d470
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14009b038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x48], r14d
cmp qword [r8 + 0x18], 8
jb 0x14002d4cf
mov rdx, qword [r8]
jmp 0x14002d4d2
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
xor r8d, r8d
mov rcx, rbx
call fcn.14000f9f0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14002d526
mov rax, qword [rbx]
jmp 0x14002d529
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x14002d535
mov rdx, qword [rdi]
jmp 0x14002d538
mov rdx, rdi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14002d57a
cmp rbx, rsi
je 0x14002d5c4
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140010290
jmp 0x14002d5c4
cmp qword [rbx + 0x18], 8
jb 0x14002d586
mov rax, qword [rbx]
jmp 0x14002d589
mov rax, rbx
cmp word [rax + rcx*2 - 2], 0
jne 0x14002d5c4
lea rax, [rcx - 1]
cmp rax, rcx
ja 0x14002d5b4
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x14002d5aa
mov rcx, qword [rbx]
jmp 0x14002d5ad
mov rcx, rbx
mov word [rcx + rax*2], r14w
jmp 0x14002d5c4
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400111f0
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14002d5d9
inc r8
mov rdx, qword [rdi]
call fcn.1400107d0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14002d5fe
inc r8
mov rdx, qword [rsi]
call fcn.1400107d0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140062800
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret