joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001980
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
mov rbx, rcx
test esi, esi
jle 0x140001ab0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ad2
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a60
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019d8
mov rax, qword [0x14000d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002060
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400020bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400020b3
test eax, eax
jne 0x1400020b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002098
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002300
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000234d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002344
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000234f
add rax, 0x28
cmp rax, r9
jne 0x140002330
xor eax, eax
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023e0
mov rdx, qword [0x140009780]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023ce
cmp word [rax + 0x18], 0x20b
jne 0x1400023ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400023e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002410
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000246d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002464
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002410
add rax, 0x28
cmp rax, r9
jne 0x140002450
xor eax, eax
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000248f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002498
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000248f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002520
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002517
test rcx, rcx
je 0x1400024d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002508
xor eax, eax
ret
Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000254f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002558
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002590
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002590
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400025d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002622
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002630
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002622
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002622
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002622
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002685
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002698
add rdx, 0x28
cmp r10, rdx
jne 0x140002670
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000268e
test ecx, ecx
jg 0x1400026a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1000093dc
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
xor ebx, ebx
cmp dword [0x1000254c8], ebx
je 0x10000963b
lea rax, [rsp + 0x30]
lea rdx, [0x100006280]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [0x1000254c8], ebx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000963b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea edi, [rbx + 4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x108]
lea r9, [rsp + 0xf8]
lea rdx, [0x100006578]
xor r8d, r8d
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xf8], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1000094af
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
lea rdx, [0x100006578]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x108], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x100009630
cmp dword [rsp + 0xf8], edi
jne 0x100009630
cmp dword [rsp + 0x108], ebx
jne 0x100009630
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
lea rdx, [0x1000065a8]
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x100], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0x3c], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100009527
mov ecx, dword [rsp + 0x100]
cmp dword [rsp + 0xf8], edi
je 0x100009529
mov ecx, ebx
inc ecx
mov eax, 0xcccccccd
mov dword [rsp + 0x100], ecx
mul ecx
shr edx, 2
lea eax, [rdx + rdx*4]
cmp ecx, eax
jne 0x1000095d6
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x9c
mov dword [rsp + 0x100], ebx
call sub.msvcrt.dll_memset
mov rax, qword [0x100026048]
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x40], 0xa0
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x5c], 0x8e
mov qword [rsp + 0x64], 0xfffd
mov qword [rsp + 0x6c], 0x8f
mov qword [rsp + 0x74], 0x90
mov dword [rsp + 0x7c], ebx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x9c], 0x91
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov r9d, edi
cmp dword [rsp + 0x38], ebx
je 0x100009616
lea rax, [rsp + 0x38]
lea rdx, [0x100006578]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1000065a8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100009630
lea rax, [rsp + 0x100]
lea rdx, [0x1000065a8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x10000a648
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
test rdx, rdx
jne 0x10000a693
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a689
test byte [rcx + 0x1c], 4
je 0x10000a689
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000064b8]
mov edx, 0xa
call fcn.10000a624
mov eax, 0x80070057
jmp 0x10000a771
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x68]
xor esi, esi
and qword [rsp + 0x68], rsi
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10000a6c5
mov rsi, qword [rsp + 0x68]
test ebx, ebx
jne 0x10000a753
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
lea rdx, [0x100006698]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
lea rax, [rdi + 4]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rdx, [0x1000066b8]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and qword [rsp + 0x28], 0
lea r11, [rdi + 0x48]
lea r8, [0x1000066e8]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.10000a780
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test rsi, rsi
je 0x10000a76f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x10000a780
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x70]
xor ebx, ebx
mov rbp, rdx
test rdi, rdi
jne 0x10000a7d9
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a7cf
test byte [rcx + 0x1c], 4
je 0x10000a7cf
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
lea r8, [0x1000064b8]
call fcn.10000a624
mov eax, 0x80070057
jmp 0x10000a8ac
and dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
lea rdx, [0x1000066e8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x10000a861
mov rcx, qword [rdi]
test rcx, rcx
je 0x10000a818
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
and qword [rdi], rbx
mov ecx, dword [rsp + 0x70]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rdi], rax
test rax, rax
jne 0x10000a861
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a85c
test byte [rcx + 0x1c], 4
je 0x10000a85c
mov r9d, dword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000064b8]
mov edx, 0xc
call fcn.100009880
mov ebx, 0x8007000e
and dword [rsp + 0x30], 0
test ebx, ebx
js 0x10000a8aa
test esi, esi
jne 0x10000a8aa
mov rax, qword [rdi]
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea rdx, [0x1000066e8]
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10000a8aa
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10000b1e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov ebp, 0x80004005
cmp dword [rcx + 0x920], esi
je 0x10000b2b2
and qword [r11 + 0x18], rsi
lea rax, [r11 + 0x18]
lea rdx, [0x100006780]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000b2b2
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
lea rax, [rbx + 0x91c]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
lea rdx, [0x1000067b0]
mov rcx, rsi
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x10000b288
cmp dword [rsp + 0x58], 3
je 0x10000b286
lea edi, [rax + 0xd]
jmp 0x10000b28c
xor edi, edi
test edi, edi
je 0x10000b29e
test rsi, rsi
je 0x10000b2aa
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x10000b2aa
mov eax, dword [rsp + 0x50]
xor ebp, ebp
mov dword [rbx + 0x918], eax
test edi, edi
jne 0x10000b2b2
test ebp, ebp
jns 0x10000b321
xor eax, eax
xor ebp, ebp
mov dword [rbx + 0x91c], eax
and dword [rbx + 0x918], eax
movsxd r10, dword [rbx + 0x910]
xor edx, edx
xor r8d, r8d
xor ecx, ecx
test r10, r10
jle 0x10000b31a
test rcx, rcx
js 0x10000b346
cmp r8d, dword [rbx + 0x910]
jge 0x10000b346
mov rax, qword [rbx + 0x908]
mov r9, qword [rax + rcx*8]
lea eax, [rdx + 1]
cmp eax, dword [r9 + 4]
je 0x10000b304
inc rcx
inc r8d
cmp rcx, r10
jl 0x10000b2d5
jmp 0x10000b31a
mov ecx, dword [rbx + 0x918]
mov al, byte [r9]
mov byte [rcx + rbx + 0x91c], al
inc dword [rbx + 0x918]
inc edx
cmp edx, 4
jl 0x10000b2cb
mov rcx, rbx
call fcn.10000aaac
test rsi, rsi
je 0x10000b337
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x10000d64c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100025108]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
lea rax, [rsp + 0x40]
mov rbx, rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x1000063b0]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x40], 0x200
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, rbx
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
test r8d, r8d
js 0x10000d6d5
lea rdx, [rsp + 0x50]
call fcn.10000d704
test eax, eax
jns 0x10000d6dd
mov rcx, rbx
mov rdx, rdi
call fcn.10000d830
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.100020bf0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x10000e198
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, rdx
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
cmp rax, rbx
je 0x10000e1ce
cmp bx, word [rax]
je 0x10000e1ce
cmp rax, rdi
jbe 0x10000e1ce
mov word [rax - 2], bx
jmp 0x10000e1d1
mov rax, rbx
mov r9, rax
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jae 0x10000e246
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
cmp eax, 0x4c7
je 0x10000e246
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000e246
test byte [rcx + 0x1c], 4
je 0x10000e246
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000063a0]
mov edx, 0x1d
mov r9d, ebx
call fcn.100009880
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10000ee5c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor r14d, r14d
mov r13, rdx
mov rsi, rcx
mov rbx, r14
call qword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
lea rdx, [0x100006940]
mov rcx, rsi
mov rbp, rsi
mov r12d, r14d
call qword [sym.imp.msvcrt.dll_wcscspn]
mov rdi, rsi
or rcx, 0xffffffffffffffff
mov r11, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, r11
jbe 0x10000ef84
lea rcx, [rbp + r11*2]
cmp word [rcx], 0x2c
jne 0x10000ef3c
cmp r12d, r14d
jne 0x10000ef48
lea rax, [rbp + r11*2]
cmp rax, r14
je 0x10000ef84
lea rdx, [0x100006948]
mov rcx, rsi
mov word [rax], r14w
mov qword [r13], rax
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r14d
je 0x10000ef64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, r14
jne 0x10000efb2
mov rcx, qword [0x100025288]
lea rdx, [0x100025288]
cmp rcx, rdx
je 0x10000efb2
test byte [rcx + 0x1c], 4
je 0x10000efb2
mov edx, 0x33
jmp 0x10000efa2
cmp r12d, r14d
mov eax, r14d
sete al
mov r12d, eax
lea rbp, [rcx + 2]
lea rdx, [0x100006940]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcscspn]
mov rdi, rbp
jmp 0x10000eea4
mov rcx, qword [0x100025288]
lea rdx, [0x100025288]
cmp rcx, rdx
je 0x10000efb2
test byte [rcx + 0x1c], 4
je 0x10000efb2
mov edx, 0x34
jmp 0x10000efa2
mov rcx, qword [0x100025288]
lea rdx, [0x100025288]
cmp rcx, rdx
je 0x10000efb2
test byte [rcx + 0x1c], 4
je 0x10000efb2
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000063a0]
call fcn.10000a624
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1000111e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x100025108]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
call sub.POWRPROF.dll_PowerDeterminePlatformRole
lea edi, [rbx + 1]
cmp eax, 2
je 0x100011230
cmp eax, edi
jne 0x100011232
lea rcx, [rsp + 0x50]
call sub.POWRPROF.dll_GetPwrCapabilities
test al, al
je 0x100011232
cmp byte [rsp + 0x6e], bl
je 0x100011232
cmp byte [rsp + 0x6f], bl
jne 0x100011232
mov ebx, edi
test ebx, ebx
jne 0x1000112c6
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, [0x100006280]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000112c6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, [0x100006c48]
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000112bb
cmp dword [rsp + 0x30], 4
jne 0x1000112bb
cmp dword [rsp + 0x34], eax
cmovne ebx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100020bf0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret

Function at 0x1000112f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0xb0
mov rax, qword [0x100025108]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x30]
lea rcx, [0x100006c70]
xor ebx, ebx
and dword [rsp + 0x30], ebx
call sub.slc.dll_SLGetWindowsInformationDWORD
test eax, eax
js 0x1000113f9
lea esi, [rbx + 1]
cmp dword [rsp + 0x30], esi
jne 0x1000113f9
call sub.POWRPROF.dll_PowerDeterminePlatformRole
cmp eax, 2
je 0x100011363
cmp eax, esi
jne 0x100011365
lea rcx, [rsp + 0x50]
call sub.POWRPROF.dll_GetPwrCapabilities
test al, al
je 0x100011365
cmp byte [rsp + 0x6e], bl
je 0x100011365
cmp byte [rsp + 0x6f], bl
jne 0x100011365
mov ebx, esi
test ebx, ebx
jne 0x1000113f9
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea rdx, [0x100006ce0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000113f9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x100006d40]
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000113ee
cmp dword [rsp + 0x34], 4
jne 0x1000113ee
cmp dword [rsp + 0x48], eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100020bf0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rsi
ret