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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007480
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007480
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021d0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000184e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001860
add dword [0x14000d0a4], 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 [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e40
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 0x140001e9c
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 eax, eax
jne 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
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 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
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 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

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

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x140007d12
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.140007b30
cmp dword [rbp + 0x18], eax
sete al
test al, al
je 0x140007d0e
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp - 0x40]
mov r8d, edx
mov rdx, rax
lea rax, str.successfully_found___s____d_n
mov rcx, rax
call fcn.140007ba0
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
jmp 0x140007d27
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
cmp dword [rbp - 4], eax
jb 0x140007c8b
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140002344
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x30], 0
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
mov ebx, eax
test eax, eax
js 0x1400335fc
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.14001a634
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov edx, SafeArrayGetDim
lea r9, [rbp + 0x30]
mov rcx, rax
lea r8d, [rdx - 0xb]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x140033618
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
and qword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSidToSidW]
test eax, eax
je 0x140033643
mov rdx, qword [rbp + 0x38]
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x14003364a
cmp dword [rbp + 0x20], 0
je 0x140033666
xor edi, edi
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400023ef
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rbp + 0x30]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140002403
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
add rsp, 0x20
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_search_search_api_apisrcwsstoreregistrationendpoint.cxx
mov r9d, ebx
mov edx, 0x1c5
call fcn.1400069dc
mov edi, ebx
jmp 0x14003362f
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_search_search_api_apisrcwsstoreregistrationendpoint.cxx
mov edx, 0x1c7
call fcn.1400489d0
mov edi, eax
test ebx, ebx
js 0x1400023ef
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop
jmp 0x1400023ef
mov edx, 0x1cb
jmp 0x14003364f
mov edx, 0x1ce
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_search_search_api_apisrcwsstoreregistrationendpoint.cxx
call fcn.1400489d0
mov edi, eax
jmp 0x1400023e0
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_search_search_api_apisrcwsstoreregistrationendpoint.cxx
mov edi, 0x80070005
mov edx, 0x1d0
mov r9d, edi
call fcn.1400069dc
nop
jmp 0x1400023e0
Function at 0x140006dfc
Capabilities:
Allocate thread local storage
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov r14, rcx
cmp dword [0x1400c9190], 0xffffffff
je 0x140006e69
mov eax, dword [0x1400c9190]
mov dword [r14], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
lea r8, str.ComTaskPool:_d
mov edx, 0x104
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140006ce0
mov ebx, eax
test eax, eax
js 0x140006e34
cmp dword [0x1400c9190], 0xffffffff
jne 0x140006e34
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
je 0x14003387c
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
je 0x140033866
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x20]
mov dword [0x1400c9190], eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
jns 0x140006e8e
jmp 0x140006e34
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
je 0x140006eba
jmp 0x140006eea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jne 0x1400338c7
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400338c7
lea r8d, [rax + 1]
mov edx, eax
lea r9, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_CreateSemaphoreW]
mov rsi, rax
test rax, rax
je 0x1400338de
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x1400338d3
mov dword [0x1400c9190], edi
jmp 0x140006ef3
call fcn.14001e28c
mov ebx, eax
jmp 0x140006ef3
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400338e5
call fcn.14001e28c
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
nop
jmp 0x140006ef3
Function at 0x140007a08
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140007aac
mov ebx, eax
test eax, eax
js 0x140007a97
xor edx, edx
xor ecx, ecx
mov r9d, 0x1f0003
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventExW]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x140033ade
lock inc dword [0x1400cb668]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140006f84.0]
lea rax, [rsp + 0x48]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140006d90]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140033af2
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.14001e28c
mov ebx, eax
test eax, eax
js 0x140007a97
jmp 0x140007a46
call fcn.14001e28c
mov ebx, eax
test eax, eax
jns 0x140007a8e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140006f84.0]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
and qword [rdi + 0x48], 0
lock dec dword [0x1400cb668]
jmp 0x140007a97
Function at 0x140014200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
mov dword [rsp + 0x50], 4
test rcx, rcx
je 0x14001428b
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001427f
cmp dword [rsp + 0x68], 4
jne 0x14001427f
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14001426f
mov ecx, 6
jmp 0x140014281
Function at 0x140016190
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0xc1
mov word [rsp + 0x68], r12w
lea r13, fcn.140019f80
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
lea rdx, [0x140094bc8]
mov rcx, rbx
call fcn.140013fe0
test eax, eax
je 0x1400392ec
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [rsp + 0x34], 4
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003924e
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.ProvidesNotifications
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400392e4
cmp dword [rsp + 0x38], 4
jne 0x1400392e4
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x24], eax
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140039272
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140016280
test ebx, ebx
je 0x140039272
mov rax, qword [r14]
mov r15d, dword [rax - 0x10]
mov rsi, rdi
sub rsi, rax
sar rsi, 1
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400162bd
mov edx, ebx
mov rcx, r14
call fcn.140012d00
mov rcx, qword [r14]
movsxd rdx, ebx
add rdx, rdx
mov r9, rdx
cmp rsi, r15
jbe 0x140039258
mov r8, rdi
call qword [sym.imp.msvcrt.dll_memcpy_s]
test ebx, ebx
js 0x140039268
mov rax, qword [r14]
cmp ebx, dword [rax - 0xc]
jg 0x140039268
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [r14]
mov word [rax + rcx*2], r12w
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x50], r13
test rdi, rdi
je 0x14001631a
lea rax, [rsp + 0x68]
cmp rdi, rax
jne 0x1400392c1
mov eax, r12d
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 6
jmp 0x1400392e6
lea r8, [rcx + rsi*2]
call qword [sym.imp.msvcrt.dll_memmove_s]
nop
jmp 0x1400162db
mov ecx, 0x80070057
call fcn.14004a3b0
mov rcx, qword [r14]
sub rcx, 0x18
mov rbx, qword [rcx]
cmp dword [rcx + 8], 0
je 0x140016302
mov eax, dword [rcx + 0x10]
shr eax, 0x1f
test al, al
je 0x1400392a0
xor edx, edx
mov rcx, r14
call fcn.140012e28
nop
jmp 0x1400162fd
call fcn.140013dd0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x140006f84.0]
add rax, 0x18
mov qword [r14], rax
jmp 0x1400162fd
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x14001631a
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r12d, eax
test eax, eax
jle 0x140039304
movzx r12d, ax
or r12d, 0x80070000
lea rcx, [rsp + 0x50]
call fcn.140017f7c
nop
jmp 0x14001631a
Function at 0x140017390
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rdi, str.SOFTWAREMicrosoftWindows_Search
mov dword [rsp + 0x44], 4
xor ebx, ebx
lea r8, [rsp + 0x50]
mov rdx, rdi
mov dword [rsp + 0x40], ebx
mov rcx, 0xffffffff80000002
call fcn.140017440
test al, al
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x44]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x10]
lea rax, [rsp + 0x40]
cmove rdx, rdi
mov qword [rsp + 0x28], rax
lea r8, str.PerVolumeCatalogs
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x14003bdbe
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
cmp dword [rsp + 0x40], ebx
mov ecx, 1
movzx eax, bl
cmovne eax, ecx
mov bl, al
jmp 0x14001741c
Function at 0x14001c868
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400c9ff8], 0
jne 0x14001c950
cmp byte [0x1400c9ff9], 0
jne 0x14001c950
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov bl, 1
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov byte [0x1400c9ff8], bl
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.14001e334
test eax, eax
jne 0x14001c950
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, [0x140095a20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14003f910
xor bl, bl
cmp dword [0x1400cb258], 0
mov byte [0x1400c9ff9], bl
mov dword [rbp + 0x18], 4
ja 0x14001c946
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]
test eax, eax
je 0x14003f929
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsp, 0x48
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x14001c8fc
cmp dword [rbp + 0x28], 0
ja 0x14001c8fe
jmp 0x14001c8fc
cmp dword [rbp + 0x20], 4
jne 0x14001c946
mov ebx, dword [rbp + 0x30]
test ebx, ebx
je 0x14001c946
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
and dword [0x1400cb25c], 0
mov edx, 8
shr ebx, 0xb
mov rcx, rax
mov r8d, ebx
mov dword [0x1400cb258], r8d
shl r8, 0xb
mov qword [0x1400cb250], rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov qword [0x1400cb260], rax
jmp 0x14001c946

Function at 0x14001df8c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x1400c9158]
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]
test eax, eax
je 0x14001e02f
lea rdx, [0x140095ac0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
mov ecx, dword [rbx + 0x30]
lea r8, [rsp + 0x260]
test eax, eax
lea rdx, [rsp + 0x50]
setne al
mov byte [rbx + 0x34], al
call fcn.14001e040
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x480
pop rbx
ret
call fcn.14001e28c
test eax, eax
jns 0x14001dfe8
mov byte [rbx + 0x34], 0
jmp 0x14001e016
Function at 0x14001e15c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, dword [0x14009f538]
mov rbx, rcx
mov dword [rbp - 0x14], eax
xor edi, edi
movzx eax, word [0x14009f53c]
xor r9d, r9d
mov word [rbp - 0x10], ax
xor r8d, r8d
mov rax, qword [rcx]
mov word [rbp - 0x14], dx
lea rdx, [rbp - 0x14]
mov qword [rbp - 0x20], rdi
mov rcx, qword [rax]
mov rax, qword [rbx + 8]
mov qword [r11 - 0x38], rax
lea rax, [rbp - 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e25e
mov rcx, qword [rbp - 0x20]
lea r9d, [rdi + 4]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rbp - 0x18], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140095ac0]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001e25e
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14001e22b
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 [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001e26d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001eb80
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x40], rdx
xor r15d, r15d
test r8, r8
je 0x14001ebc0
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140028c4c
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001f244
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14001e68c
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14001f888
test al, al
je 0x14003ca68
mov rcx, qword [rsp + 0x108]
call fcn.14001f888
test al, al
je 0x14003cb56
lea rcx, [rsp + 0x100]
call fcn.1400282a4
nop
mov rcx, r14
call fcn.1400282a4
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
mov rdi, rax
mov r9, rdi
sub r9, qword [rsp + 0x108]
sar r9, 1
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x100]
call fcn.14001f408
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.1400449ac
mov rcx, qword [rsp + 0x1a8]
call fcn.14001f888
test al, al
jne 0x14003cb25
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14003cb25
test ebx, ebx
js 0x14003cb25
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14003caec
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x278]
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
lea rax, str.PathComponent:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpkmutillindexmove.cxx
mov edx, 0x189
call fcn.140050428
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
mov rdi, rax
lea rcx, [rsp + 0x1a0]
call fcn.1400282a4
test rdi, rdi
je 0x14001ec08
cmp word [rdi], r15w
jne 0x14003ca79
jmp 0x14001ec08
test rsi, rsi
je 0x14003cb5e
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.14005a504
nop
jmp 0x14001ec1d