joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400391e5
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor eax, eax
mov rbx, rdx
mov edx, dword [rsp + 0x1e0]
mov r12, r9
mov r13, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
xor r9d, r9d
mov dword [rsp + 0x60], 0xffffffff
rep stosd dword [rdi], eax
mov ecx, edx
mov rdi, r12
mov qword [rsp + 0x68], r9
rep stosb byte [rdi], al
mov rcx, rbx
mov qword [rsp + 0x70], r9
lea r14, [rsp + 0x7c]
mov dword [rsp + 0x64], edx
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x1400392de
cmp byte [rbx + rbp], 0x5c
je 0x14003925b
dec rbp
jmp 0x140039247
cmp rbp, 0x103
ja 0x14003939e
mov eax, 0x104
inc rcx
mov rdi, r14
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r13
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r14
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140039357
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x14003937d
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r13
mov qword [rsp + 0x20], rax
lea rdx, [0x140098482]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003930e
xor ecx, ecx
mov qword [rsp + 0x68], rcx
jmp 0x14003937d
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, [0x14009848b]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400392d1
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r12
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003938d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003939e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14003a185
Capabilities:
Get graphical window text

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
xor eax, eax
mov rbp, rcx
lea rdi, [rsp + 0x68]
mov ecx, 0x12
mov r12, rdx
rep stosd dword [rdi], eax
mov r13d, r8d
test rbp, rbp
je 0x14003a1f0
test rdx, rdx
je 0x14003a1f0
mov rcx, rbp
xor ebx, ebx
call fcn.14003a128
lea rax, [0x140111040]
mov rdi, rax
cmp qword [rax], 0
je 0x14003a1f7
inc ebx
add rax, 0x20
cmp ebx, 0x80
jne 0x14003a1cb
mov edx, pe_nt_image_headers64
lea rcx, str.Maximum_number_of_tooltips_reached___d__n
call fcn.140036717
xor eax, eax
jmp 0x14003a337
mov r14, qword [0x1400b1c10]
xor ecx, ecx
movsxd rbx, ebx
mov r9d, 0x80000003
mov rsi, rbx
cmp dword [r14], 0
setne cl
xor eax, eax
xor edx, edx
shl rsi, 5
mov qword [rsp + 0x58], rax
shl ecx, 0x16
xor r8d, r8d
add rsi, rdi
mov rax, qword [0x1400b19d0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rdx
lea rdx, str.tooltips_class32
mov qword [rsp + 0x50], rax
mov rax, qword [0x1400b19c0]
mov rax, qword [rax]
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x14003a1f0
lea r8, [0x140038778]
mov edx, 0xfffffffc
mov qword [rsi + 8], rbp
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, r12
mov qword [rsi + 0x10], rax
call fcn.1400389b3
mov rcx, qword [rsi]
movsxd r9, r13d
mov edx, 0x403
mov qword [rsi + 0x18], rax
mov r8d, 2
call qword [sym.imp.USER32.dll_PostMessageW]
mov rax, qword [rsi]
cmp dword [r14], 1
mov rcx, rbp
mov dword [rsp + 0x68], 0x48
mov rsi, qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x87
mov qword [rsp + 0x70], rax
sbb eax, eax
xor r9d, r9d
xor r8d, r8d
and eax, 0xfffffffc
add eax, 0x15
mov dword [rsp + 0x6c], eax
call rsi
bt eax, 0xd
jb 0x14003a30a
or dword [rsp + 0x6c], 0x80000002
shl rbx, 5
mov qword [rsp + 0x78], rbp
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x98], 0xffffffffffffffff
mov rcx, qword [rdi + rbx]
mov edx, 0x432
call rsi
mov eax, 1
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14003a574
Capabilities:
Create thread

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rdx, str.SoftwareMicrosoftPowerShell1Install
mov rcx, 0xffffffff80000002
call fcn.1400393b0
test eax, eax
jg 0x14003a5cd
lea rdx, str.SoftwareMicrosoftPowerShell3Install
mov rcx, 0xffffffff80000002
call fcn.1400393b0
test eax, eax
jg 0x14003a5cd
mov rsi, qword [0x1400b1d20]
mov rbx, qword [0x1400b1d10]
mov edx, 0xffc
lea r8, str.Notice:_The_ISO_download_feature_has_been_deactivated_because_a_compatible_PowerShell_version_was_not_detected_on_this_system.
mov rcx, qword [rsi]
sub rdx, rcx
add rcx, rbx
jmp 0x14003a605
mov rax, qword [0x1400b1540]
cmp dword [rax], 0
jne 0x14003a631
call fcn.1400393d5
test eax, eax
jg 0x14003a631
mov rsi, qword [0x1400b1d20]
mov rbx, qword [0x1400b1d10]
mov edx, 0xffc
lea r8, str.Notice:_The_ISO_download_feature_has_been_deactivated_because_Check_for_updates_is_disabled_in_your_settings.
mov rcx, qword [rsi]
sub rdx, rcx
add rcx, rbx
call qword [sym.imp.msvcrt.dll__snprintf]
mov rcx, rbx
mov byte [rbx + 0xffb], 0
call sub.msvcrt.dll_strlen
lea rdx, [rax + 2]
mov byte [rbx + rax], 0xd
mov qword [rsi], rdx
mov byte [rbx + rax + 1], 0xa
mov byte [rbx + rax + 2], 0
jmp 0x14003a653
xor edx, edx
xor eax, eax
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x14003885d]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
nop
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x14003b5b8
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
jne 0x14003b5e2
xor ebx, ebx
jmp 0x14003b684
mov edx, 0x31
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
mov rdx, rax
test rax, rax
je 0x14003b5db
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
test rbx, rbx
jne 0x14003b658
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
jle 0x14003b5db
lea r8d, [rax + 1]
mov edx, 2
movsxd rcx, r8d
mov dword [rsp + 0x2c], r8d
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14003b5db
mov r8d, dword [rsp + 0x2c]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x14003b684
lea r9, [rsp + 0x38]
mov r8d, ebp
jmp 0x14003b678
mov rcx, rbx
call fcn.1400389b3
mov rbx, rax
test rax, rax
je 0x14003b684
mov rcx, rax
call sub.msvcrt.dll_wcslen
lea r9, [rsp + 0x38]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rcx, rbx
call sub.msvcrt.dll_free
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003b6a2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rax, qword [rsp + 0x38]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14003e0c2
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.140036294
lea rsi, [rsp + 0x3c]
mov edx, 0x104
mov r9, qword [0x1400b1cc0]
lea r8, str._s_s_shell32.dll.mui
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll__snprintf]
mov rcx, rsi
mov byte [rsp + 0x13f], 0
call fcn.1400389b3
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test rbp, rbp
je 0x14003e135
mov rcx, rbp
call sub.msvcrt.dll_free
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rbx, rbx
je 0x14003e1f3
lea r8, [0x1401120e0]
mov edx, 0x101d
mov rcx, rbx
call fcn.140038f07
test eax, eax
jg 0x14003e1a0
movabs rdx, 0x776f646e69572074
movabs rax, 0x666f736f7263694d
mov word [0x1401120f0], 0x73
mov qword [0x1401120e8], rdx
mov qword [0x1401120e0], rax
call fcn.140036bd7
mov rdx, rsi
lea rcx, str.Warning:_Could_not_locate_localized_format_prompt_title_string_in__s:__s
mov r8, rax
call fcn.140036717
lea r8, [0x140112060]
mov edx, 0x101e
mov rcx, rbx
call fcn.140038f07
test eax, eax
jg 0x14003e1ea
movabs rax, 0x642074616d726f46
mov dword [0x140112068], 0x6b7369
mov qword [0x140112060], rax
call fcn.140036bd7
mov rdx, rsi
lea rcx, str.Warning:_Could_not_locate_localized_format_prompt_button_string_in__s:__s
mov r8, rax
call fcn.140036717
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, 0xc4d
call fcn.14001d5c1
test rax, rax
jne 0x14003e22e
mov ecx, 0xc4d
mov ebx, 1
call fcn.14001d5c1
test rax, rax
je 0x14003e24e
mov ecx, 0xc4d
call fcn.14001d5c1
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
jmp 0x14003e24e
mov ecx, 0xc4d
mov ebx, pe_nt_image_headers64
call fcn.14001d5c1
mov rcx, rax
call sub.msvcrt.dll_strlen
inc rax
cmp rax, 0x7f
jbe 0x14003e202
mov ecx, 0xc4d
lea rbp, [0x140112160]
call fcn.14001d5c1
mov rdi, rbp
mov rcx, rbx
mov rsi, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, 0xc4d
call fcn.14001d5c1
test rax, rax
jne 0x14003e291
mov ecx, 0xc4d
call fcn.14001d5c1
test rax, rax
jne 0x14003e2b5
lea rbp, [0x140112160]
jmp 0x14003e2ca
mov ecx, 0xc4d
call fcn.14001d5c1
mov rcx, rax
call sub.msvcrt.dll_strlen
inc rax
cmp rax, 0x7f
jbe 0x14003e279
lea rbp, [0x1401121df]
jmp 0x14003e2ca
mov ecx, 0xc4d
call fcn.14001d5c1
mov rcx, rax
call sub.msvcrt.dll_strlen
add rbp, rax
mov byte [rbp], 0
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400402cf
Capabilities:
Get graphical window text

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor eax, eax
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rbx, rcx
movabs rax, 0x800000004
mov rdx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_MapDialogRect]
mov rax, qword [rsp + 0x38]
mov edx, dword [rsp + 0x38]
mov r8d, 4
mov rbp, qword [sym.imp.KERNEL32.DLL_MulDiv]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400b12c0]
cmp dword [rax], 0xa0
sbb edi, edi
and edi, 2
add edi, 0xd
cmp dword [rax], 0xa0
sbb ecx, ecx
and ecx, 2
add ecx, 0xa
call rbp
mov r8d, 4
mov edx, dword [rsp + 0x28]
mov ecx, edi
mov dword [0x14011226c], eax
call rbp
mov r12, qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rbx
mov edx, 0x3f9
mov dword [0x140112268], eax
call r12
mov rbp, qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, rsi
mov rcx, rax
call rbp
mov rdi, qword [sym.imp.USER32.dll_MapWindowPoints]
mov r8, rsi
mov rdx, rbx
mov r9d, 2
xor ecx, ecx
call rdi
mov eax, dword [rsp + 0x30]
mov rcx, rbx
mov edx, 0x3ec
mov dword [0x140112720], eax
call r12
mov rdx, rsi
mov rcx, rax
call rbp
mov r8, rsi
mov rdx, rbx
xor ecx, ecx
mov r9d, 2
call rdi
mov eax, dword [rsp + 0x38]
sub dword [0x140112720], eax
xor r8d, r8d
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x28]
mov edx, 0x463
mov dword [0x14011271c], eax
mov rax, qword [0x1400b1a10]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x28]
mov rcx, rbx
mov edx, 0x400
mov dword [0x140112714], eax
call r12
mov rdx, rsi
mov rcx, rax
call rbp
mov r8, rsi
mov r9d, 2
mov rdx, rbx
xor ecx, ecx
call rdi
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
mov rdx, rsi
mov dword [0x140112260], eax
mov eax, dword [rsp + 0x30]
mov dword [0x140112710], eax
mov rax, qword [0x1400b1920]
mov rcx, qword [rax]
call rbp
mov r8, rsi
mov r9d, 2
mov rdx, rbx
xor ecx, ecx
call rdi
mov eax, dword [rsp + 0x38]
mov rcx, rbx
sub dword [0x140112710], eax
mov edx, 0x7d5
call r12
mov rdx, rsi
mov rcx, rax
call rbp
mov r8, rsi
mov r9d, 2
mov rdx, rbx
xor ecx, ecx
call rdi
mov eax, dword [rsp + 0x30]
mov rdx, rsi
mov dword [0x14011270c], eax
mov rax, qword [0x1400b1a30]
mov rcx, qword [rax]
call rbp
xor ecx, ecx
mov r9d, 2
mov r8, rsi
mov rdx, rbx
call rdi
mov eax, dword [rsp + 0x38]
sub dword [0x14011270c], eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140041bb3
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov rax, qword [0x1400b19c0]
lea rsi, [0x1400a29c0]
lea r12, [rsi + 0xc]
mov qword [rsp + 0x1e0], rcx
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetDC]
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov r8d, 0x48
mov ecx, 0xe
mov edx, eax
call qword [sym.imp.KERNEL32.DLL_MulDiv]
xor r8d, r8d
xor edx, edx
xor r9d, r9d
neg eax
mov dword [rsp + 0x50], edx
mov ecx, eax
lea rax, str.Segoe_UI
mov dword [rsp + 0x48], edx
xor edx, edx
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 0x258
call qword [sym.imp.GDI32.dll_CreateFontA]
mov r13, qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov r14, qword [sym.imp.USER32.dll_GetDlgItem]
mov r15, qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbp, rax
mov ebx, dword [rsi]
mov r9, rbp
mov r8d, 0x30
mov rcx, qword [rsp + 0x1e0]
mov qword [rsp + 0x20], 1
mov edx, ebx
call r13
mov edx, ebx
mov rcx, qword [rsp + 0x1e0]
lea rbx, [rsp + 0x90]
call r14
mov rdi, rbx
mov ecx, 0x40
mov rdx, rbx
mov qword [rsp + 0x70], rax
xor eax, eax
mov r8d, 0x7c
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
call r15
mov rcx, rbx
call sub.msvcrt.dll_wcslen
cmp rax, 0x7d
jbe 0x140041cfa
mov r8d, 0x243
lea rdx, str.ui.c
lea rcx, str.wlen___ARRAYSIZE_wtmp____2
call qword [sym.imp.msvcrt.dll__wassert]
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
mov word [rsp + rax*2 + 0x90], 0x20
add rsi, 4
mov word [rsp + rax*2 + 0x92], 0x20
call qword [sym.imp.USER32.dll_SetWindowTextW]
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov rdx, r8
mov qword [rsp + 0x78], r8
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8, qword [rsp + 0x78]
mov r9d, 2
xor ecx, ecx
mov rdx, qword [rsp + 0x1e0]
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rsp + 0x70]
xor edx, edx
call fcn.14003b5b8
mov dword [rsp + 0x30], 4
mov rcx, qword [rsp + 0x70]
mov rdx, rax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x84]
sar rdx, 0x20
mov r8d, dword [rsp + 0x80]
mov dword [rsp + 0x28], edx
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowPos]
cmp rsi, r12
jne 0x140041c7a
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140044318
Capabilities:
Get graphical window text

Disassembly:
push rdi
push rsi
sub rsp, 0x88
lea rsi, [0x14007d2a0]
mov ecx, 0x14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
lea rdi, [rsp + 0x30]
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [0x1400b19f0]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0xc54
movsxd rdx, eax
shl rdx, 4
mov r10d, dword [rsp + rdx + 0x3c]
mov r9d, dword [rsp + rdx + 0x38]
mov r8d, dword [rsp + rdx + 0x34]
mov edx, dword [rsp + rdx + 0x30]
cmp eax, 1
jg 0x140044379
lea ecx, [rax + 0xc51]
mov dword [rsp + 0x20], r10d
call fcn.14001d5c1
mov rcx, qword [rsi]
or r8d, 0xffffffff
mov rdx, rax
add rsp, 0x88
pop rsi
pop rdi
jmp fcn.14003a185
Function at 0x1400447d4
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
xor eax, eax
mov rbx, rdx
mov edx, dword [rsp + 0x1f0]
mov r12, r9
mov r13, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
xor r9d, r9d
mov r14d, r8d
rep stosd dword [rdi], eax
mov ecx, edx
mov rdi, r12
mov qword [rsp + 0x68], r9
rep stosb byte [rdi], al
mov rcx, rbx
mov dword [rsp + 0x64], edx
lea r15, [rsp + 0x7c]
mov qword [rsp + 0x70], r9
mov dword [rsp + 0x60], 0xffffffff
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x1400448d1
cmp byte [rbx + rbp], 0x5c
je 0x14004484f
dec rbp
jmp 0x14004483b
xor esi, esi
cmp rbp, 0x103
ja 0x1400449bd
mov eax, 0x104
inc rcx
mov rdi, r15
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r13
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r15
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14004494f
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x1400448ff
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r13
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a2af4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140044906
xor ecx, ecx
mov qword [rsp + 0x68], rcx
xor esi, esi
jmp 0x14004499d
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, [0x1400a2afd]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400448c7
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r12
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov esi, 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x14004499d
test eax, eax
jne 0x1400448ff
cmp dword [rsp + 0x60], r14d
jne 0x1400448ff
xor esi, esi
cmp dword [rsp + 0x64], 0
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400449ad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400449bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14004556a
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400449d3
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x140045596
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, esi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_SetLastError]
Function at 0x140045f0f
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
xor r9d, r9d
xor r10d, r10d
xor r11d, r11d
xor eax, eax
mov dword [rsp + 0x34], r9d
lea r9, [rsp + 0x38]
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov dword [rsp + 0x38], edx
xor edx, edx
mov dword [rsp + 0x3c], r8d
lea r8, [0x140044df3]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [0x140112760], rax
mov rcx, rax
test rax, rax
jne 0x140045f74
lea rcx, str.Unable_to_start_unmount_image_thread
call fcn.140036717
xor eax, eax
jmp 0x140045fbc
mov rax, qword [0x1400b16d0]
mov edx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
or edx, 0xffffffff
mov rcx, qword [0x140112760]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140112760]
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
jne 0x140045faf
xor edx, edx
mov dword [rsp + 0x34], edx
xor eax, eax
mov qword [0x140112760], rax
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret
Function at 0x140045fc1
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2d8
xor eax, eax
xor r8d, r8d
mov r9d, 0x20019
mov rbp, rcx
lea rdi, [rsp + 0xc8]
mov ecx, 0x41
mov r12d, edx
rep stosd dword [rdi], eax
xor edx, edx
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x90]
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x70], edx
lea rdx, str.SOFTWAREMicrosoftWIMMountMounted_Images
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14004602a
xor eax, eax
jmp 0x14004623f
lea rax, [rsp + 0x8c]
xor r9d, r9d
lea r8, [rsp + 0x74]
mov dword [rsp + 0x74], 0x104
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
lea r14, [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x84]
xor esi, esi
lea r15, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov r13, qword [sym.imp.msvcrt.dll__snprintf]
mov rcx, qword [rsp + 0x90]
cmp esi, dword [rsp + 0x70]
jae 0x140046216
xor eax, eax
lea rdi, [rsp + 0xa0]
mov r9, r15
mov edx, esi
mov dword [rsp + 0x68], 0x28
mov r8, rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14004610b
inc esi
jmp 0x1400460bd
lea rbx, [rsp + 0x1cc]
mov r9, rdi
mov edx, 0x104
lea r8, str.SOFTWAREMicrosoftWIMMountMounted_Images_sWIM_Path
mov rcx, rbx
call r13
mov dword [rsp + 0x20], 0x104
lea r9, [0x140112780]
mov rdx, rbx
mov r8d, 1
mov rcx, 0xffffffff80000002
mov byte [rsp + 0x2cf], 0
call fcn.1400447d4
test eax, eax
jne 0x14004619d
mov r9, rdi
lea r8, str.SOFTWAREMicrosoftWIMMountMounted_Images_sImage_Index
mov edx, 0x104
mov rcx, rbx
call r13
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x6c]
mov rdx, rbx
mov r8d, 4
mov rcx, 0xffffffff80000002
mov byte [rsp + 0x2cf], 0
call fcn.1400447d4
test eax, eax
jne 0x1400461b5
jmp 0x1400461c0
mov rdx, rbp
lea rcx, [0x140112780]
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x140046158
jmp 0x140046107
cmp dword [rsp + 0x6c], r12d
jne 0x140046107
mov r9, rdi
lea r8, str.SOFTWAREMicrosoftWIMMountMounted_Images_sMount_Path
mov edx, 0x104
mov rcx, rbx
mov byte [0x140112780], 0
call r13
mov dword [rsp + 0x20], 0x104
lea r9, [0x140112780]
mov rdx, rbx
mov r8d, 1
mov rcx, 0xffffffff80000002
mov byte [rsp + 0x2cf], 0
call fcn.1400447d4
test eax, eax
je 0x140046107
cmp esi, dword [rsp + 0x70]
jb 0x14004621d
mov byte [0x140112780], 0
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x140112780], 0
je 0x140046023
lea rax, [0x140112780]
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret