joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021528
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400b6b18]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400b6b1c]
xor r9d, r9d
mov word [rsp + 0x5c], dx
xor r8d, r8d
mov rdx, qword [rcx + 8]
mov qword [r11 - 0x38], rdx
lea rdx, [r11 - 0x1c]
mov word [rsp + 0x60], ax
mov rax, qword [rcx]
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x40], rcx
mov qword [r11 - 0x48], rdi
mov qword [r11 - 0x28], rdi
mov rcx, qword [rax]
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002163d
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rsp + 0x58], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b3230]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x14002163d
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140021603
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.VolumeLabel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140021653
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140021678
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r8d, 0x105
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r8d
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x14003411c
cmp byte [rbx + 0x35], 0
lea rdi, [rsp + 0x260]
je 0x140021769
mov rcx, qword [rbx + 0x18]
call fcn.1400218b4
test al, al
je 0x140021781
lea rdx, [0x1400b3230]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140021781
mov al, 1
mov rdi, qword [rbx + 0x18]
mov byte [rbx + 0x34], al
call qword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
nop dword [rax + rax]
test al, al
jne 0x140034132
mov r9b, byte [rbx + 0x35]
lea rdx, [rsp + 0x50]
mov ecx, dword [rbx + 0x30]
mov r8, rdi
call fcn.14002178c
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
lea rdx, [0x1400b3230]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne al
jmp 0x14002171c
xor al, al
jmp 0x140021718
call fcn.14001be24
test eax, eax
jns 0x1400216e2
mov byte [rbx + 0x34], 0
jmp 0x140021747
test dword [rsp + 0x40], 0x80000
je 0x140021733
mov byte [rbx + 0x34], 0
jmp 0x140021733
Function at 0x14002178c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov dil, r9b
mov ebx, ecx
xor esi, esi
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 7]
mov qword [r11 - 0x60], rax
lea rax, [rbp + 0x17]
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], esi
lea r8, str.SOFTWAREMicrosoftWindows_SearchVolumeInfoCache
mov rdx, 0xffffffff80000002
call fcn.14001ed04
test eax, eax
jne 0x140021877
test dil, dil
je 0x140021846
mov qword [rbp + 0xf], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14003414a
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x1400341fd
lea rax, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 7]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0x77]
mov qword [rbp + 0x37], rax
mov edi, esi
test ebx, ebx
je 0x140021877
test bl, 1
jne 0x1400218a0
inc edi
shr ebx, 1
jne 0x14002186c
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14002188c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x1f]
call fcn.140021528
jmp 0x140021871
mov dword [rbp + 0xb], 3
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0xb]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DriveType
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
lea rdx, [0x1400b3230]
mov rcx, qword [rbp + 0x6f]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140021839
mov rcx, qword [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003419f
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.VolumeLabel
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400341ee
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x17]
call fcn.14004258c
nop
jmp 0x14002188c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140021846
Function at 0x1400218e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400dd5cd], 0
jne 0x1400219e0
cmp byte [0x1400dd5cc], 0
jne 0x1400219e0
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov bl, 1
mov dword [rsp + 0x20], 0x20019
mov rdx, 0xffffffff80000002
mov byte [0x1400dd5cd], bl
call fcn.14001ec70
test eax, eax
jne 0x1400219e0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ETWLogging
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14003bb9a
xor bl, bl
cmp dword [0x1400ddc58], 0
mov byte [0x1400dd5cc], bl
mov dword [rbp + 0x18], 4
ja 0x1400219d0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.ETWBufferSize
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14003bbb3
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x48
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x140021980
cmp dword [rbp + 0x28], 0
ja 0x140021982
jmp 0x140021980
cmp dword [rbp + 0x20], 4
jne 0x1400219d0
mov edx, dword [rbp + 0x30]
test edx, edx
je 0x1400219d0
call fcn.140067acc
nop
jmp 0x1400219d0
Function at 0x1400258c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140025912
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140025912
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140025912
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140025912
cmp dword [rcx + 0x84], 0xe
jbe 0x140025912
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140025914
xor al, al
add rsp, 0x28
ret
Function at 0x14002e79e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3708
call fcn.140027f90
sub rsp, rax
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x36f0], rax
mov rax, r9
mov r9, qword [rsp + 0x3730]
mov r9, qword [r9]
mov r8, rax
mov edx, 0xdac
lea rcx, [rsp + 0x1b90]
call fcn.14002dbca
test eax, eax
js 0x14002e89c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov r9d, eax
lea rax, [rsp + 0x1b90]
mov qword [rsp + 0x20], rax
lea r8, [0x1400bd6d0]
mov edx, 0xdac
lea rcx, [rsp + 0x30]
call fcn.14003f4fc
test eax, eax
js 0x14002e838
cmp byte [0x1400dd5cc], 0
je 0x14002e838
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
call fcn.14002e8dc
cmp byte [0x1400dd5cd], 0
jne 0x14002e850
call fcn.1400218e4
cmp byte [0x1400dd5cc], 0
jne 0x14002e877
lea rdx, [0x1400b3c20]
mov rcx, qword [0x1400db9b0]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
nop dword [rax + rax]
test al, al
je 0x14002e89c
test byte [0x1400ddd82], 0x20
je 0x14002e89c
lea r8, [rsp + 0x1b90]
lea rdx, [0x1400b3c20]
lea rcx, [0x1400db9b0]
call fcn.14002e352
nop
jmp 0x14002e89e
mov rcx, qword [rsp + 0x36f0]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x3708
ret

Function at 0x14002e956
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
lea edx, [rbx + 0x10]
call fcn.14003f4fc
test eax, eax
js 0x14002e9e9
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 2
call fcn.14001ec70
test eax, eax
jne 0x14002e9e9
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140043c44
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rdx], 0
mov rsi, rdx
mov rbp, rcx
lea rdx, [0x1400b35f2]
mov ecx, 0x208
call fcn.14002520c
lea r9, [rsp + 0x48]
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
mov r14d, 2
test eax, eax
je 0x140043c9f
xor edi, edi
jmp 0x140043d19
call fcn.14001be24
mov edi, eax
cmp eax, 0x800700ea
jne 0x140043d15
mov ecx, dword [rsp + 0x48]
mov rax, r14
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.14002520c
mov rdx, r14
mov rcx, rbx
mov rdi, rax
call fcn.1400251c8
mov rbx, rdi
test rdi, rdi
jne 0x140043cee
mov edi, 0x8007000e
jmp 0x140043d21
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140043c9b
call fcn.14001be24
mov edi, eax
test edi, edi
js 0x140043d21
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rdx, r14
mov rcx, rbx
call fcn.1400251c8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14004a6cc
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 3
mov dword [rdx], 0x65
xor r14d, r14d
mov byte [rbp + 0x40], r14b
mov qword [rbp - 8], r14
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea r15d, [r14 + 1]
mov dword [rsp + 0x20], r15d
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x14004a72f
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x38]
test ebx, ebx
jns 0x14004a750
mov r9d, ebx
lea r8, [0x1400b49c8]
mov edx, 0xb0
call fcn.14002061c
jmp 0x14004a8a5
mov r12d, 4
mov dword [rbp - 0x10], r12d
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x50], r14d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
lea r8, [0x1400b4a88]
xor edx, edx
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x14004a79f
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004a8a5
lea rcx, [0x1400dd610]
call fcn.140027948
test al, al
je 0x14004a865
cmp dword [rbp + 0x50], r15d
jne 0x14004a8a5
mov dword [rsi], r14d
mov dword [rdi], r14d
mov dword [rbp + 0x48], 2
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x40]
call fcn.140027a5c
test eax, eax
js 0x14004a899
mov eax, dword [rbp + 0x48]
test eax, eax
jne 0x14004a855
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x50], r14d
mov dword [rbp - 0x10], r12d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
lea r8, str.RebuildIndex
xor edx, edx
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14004a899
cmp dword [rbp + 0x58], r12d
jne 0x14004a8cc
mov edx, dword [rbp + 0x50]
test edx, edx
je 0x14004a8cc
mov dword [rsi], r15d
lea eax, [rdx - 1]
mov ecx, 0x68
cmp eax, 0xb
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x14004a899
cmp eax, r15d
jne 0x14004a890
mov dword [rsi], r12d
mov dword [rdi], 0x63
jmp 0x14004a899
cmp dword [rbp + 0x50], r15d
jne 0x14004a8a5
mov dword [rsi], r14d
mov dword [rdi], r14d
mov byte [rbp + 0x48], r14b
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x40]
call fcn.140067b2c
test eax, eax
js 0x14004a899
cmp byte [rbp + 0x48], r14b
jne 0x14004a7ec
mov dword [rsi], r15d
mov dword [rdi], 0x64
cmp byte [rbp + 0x40], r14b
je 0x14004a8a5
call fcn.140067ff0
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14004a8ba
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.RebuildIndex
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
jmp 0x14004a899
Function at 0x14004c230
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x348]
sub rsp, 0x440
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rdi, rcx
xor esi, esi
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
test eax, eax
js 0x14004c3df
mov edx, 0x104
mov r8d, edx
lea rax, [rbp + 0x120]
cmp word [rax], si
je 0x14004c2ad
add rax, 2
sub r8, 1
jne 0x14004c29e
mov rax, r8
mov rcx, rdx
sub rcx, r8
neg rax
sbb r9, r9
and r9, rcx
mov rax, r8
neg rax
sbb eax, eax
not eax
and eax, 0x80070057
test r8, r8
je 0x14004c32d
sub rdx, r9
lea rcx, [rbp + 0x120]
lea rcx, [rcx + r9*2]
je 0x14004c313
mov eax, 0x7ffffffe
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rcx
test rax, rax
je 0x14004c313
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x14004c313
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x14004c2f2
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
neg rdx
sbb eax, eax
not eax
and eax, 0x8007007a
test eax, eax
js 0x14004c3df
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x40]
call fcn.14000e5c8
mov rdx, rax
mov rcx, rdi
call fcn.14006368c
xor r8d, r8d
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
nop dword [rax + rax]
test eax, eax
je 0x14004c389
cmp eax, 0x50
je 0x14004c389
cmp eax, 0xb7
je 0x14004c389
test eax, eax
jle 0x14004c387
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004c3df
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.14000e5c8
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1400498f0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.140062fd4
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400630f8
test eax, eax
js 0x14004c3df
call fcn.140053538
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140024b20
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14004c41c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
lea r8, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogs
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x14004c47b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x14004c49f
mov r9d, ebx
lea r8, [0x1400b49c8]
mov edx, 0x937
call fcn.14002061c
jmp 0x14004c613
xor edi, edi
mov dword [rsp + 0x40], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
je 0x14004c602
test eax, eax
jne 0x14004c5d8
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14004c5cc
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b4a38]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, str._l_t_b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x178]
test eax, eax
jns 0x14004c562
mov r9d, eax
lea r8, [0x1400b49c8]
mov edx, 0x952
call fcn.14002061c
and qword [rsp + 0x50], 0
test ebx, ebx
js 0x14004c5b7
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
movabs r10, 0xe28da7167cd64970
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x80]
call qword [case.0x140001f80.0]
mov ebx, eax
mov rcx, qword [rbp + 0x178]
test eax, eax
jns 0x14004c5b7
mov r9d, eax
lea r8, [0x1400b49c8]
mov edx, 0x959
call fcn.14002061c
nop
lea rcx, [rsp + 0x50]
call fcn.14000376c
nop
lea rcx, [rsp + 0x48]
call fcn.14000376c
inc edi
test ebx, ebx
jns 0x14004c4a1
jmp 0x14004c602
jg 0x14004c5de
mov ebx, eax
jmp 0x14004c5e7
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
lea r8, [0x1400b49c8]
mov edx, 0x948
call fcn.140050ea4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024b20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004fcc0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov byte [r8], 0
call fcn.140026150
test al, al
jne 0x14004fd07
mov ebx, 0x80004001
jmp 0x14004fe5b
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea rcx, str.IndexUserProfilesRoot
call fcn.140043bd8
lea rcx, [rsp + 0x20]
test al, al
je 0x14004fd66
call fcn.140046a30
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
lea rcx, [0x1400b40b8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
xor al, al
jmp 0x14004fd9a
call fcn.140046a30
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
lea rcx, [0x1400b40c8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
mov al, 1
mov byte [rdi], al
mov edi, 0x104
test ebx, ebx
js 0x14004fdeb
mov r8, qword [rsp + 0x20]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14000b8b0
mov ebx, eax
test eax, eax
js 0x14004fdeb
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rsi], rax
test rax, rax
jne 0x14004fe51
mov ebx, 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, edi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14005050c
mov r9d, dword [r14 + 0x10]
mov r8, qword [r14 + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.140050e1c
mov dword [r14 + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140023ab0
nop
lea rcx, [rsp + 0x20]
call fcn.140046a30
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400502cc
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140050308
xor eax, eax
jmp 0x140050311
call fcn.14001be24
test eax, eax
js 0x140050319
movzx ecx, word [rsp + 0x20]
mov word [rbx], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x240
pop rbx
ret

Function at 0x14005033c
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
cmp dword [0x1400ddf3c], ebx
je 0x140050369
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [0x1400ddf38]
cmp eax, 0x4e20
jbe 0x140050407
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rax
lea r8, [0x1400ba588]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov r9d, SafeArrayPutElement
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400503eb
mov dword [rsp + 0x50], 1
call fcn.14005041c
cmp ebx, 0x44
jae 0x1400503eb
mov ecx, ebx
lea rdx, [0x1400bb550]
cmp ax, word [rdx + rcx*2]
je 0x1400503de
inc ebx
jmp 0x1400503c6
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
jmp 0x1400503ef
mov eax, dword [rsp + 0x50]
mov dword [0x1400ddf3c], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov dword [0x1400ddf38], eax
mov eax, dword [0x1400ddf3c]
add rsp, 0x40
pop rbx
ret