joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d4fc
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor r15d, r15d
test r8, r8
je 0x14002d533
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.1400345b0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14002e8f4
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14002d954
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14002d5d8
test al, al
je 0x14004db94
mov rcx, qword [rsp + 0x108]
call fcn.14002d5d8
test al, al
je 0x14004dc9a
lea rcx, [rsp + 0x100]
call fcn.140011278
nop
mov rcx, rdi
call fcn.140011278
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140036b80
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]
nop dword [rax + rax]
mov rsi, rax
mov r9, rsi
sub r9, qword [rsp + 0x108]
sar r9, 1
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.1400127e0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1a0]
call fcn.140066588
mov rcx, qword [rsp + 0x1a8]
call fcn.14002d5d8
test al, al
jne 0x14004dc63
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14004dc63
test ebx, ebx
js 0x14004dc63
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004dc2a
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_searchcommonpkmutillindexmove.cxx
mov edx, 0x18f
call fcn.14005acfc
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
nop dword [rax + rax]
mov rsi, rax
lea rcx, [rsp + 0x1a0]
call fcn.140011278
test rsi, rsi
je 0x14002d57b
cmp word [rsi], r15w
jne 0x14004dbab
jmp 0x14002d57b
test r14, r14
je 0x14004dca3
mov byte [r14], 1
mov rcx, qword [rsp + 0x108]
call fcn.140068a84
nop
jmp 0x14002d590

Function at 0x14002d5d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
nop dword [rax + rax]
test eax, eax
jne 0x14002d62b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
nop dword [rax + rax]
test eax, eax
jne 0x14002d62b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002d62b
test al, 0x10
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d6bc
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x768]
sub rsp, 0x860
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14002d808
cmp word [rcx], si
je 0x14002d808
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14002d71e
lea ebx, [rcx + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x401
mov word [rsp + 0x48], si
lea rax, [0x1400a3e28]
mov qword [rsp + 0x30], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x30]
call fcn.140011b30
mov rdx, rax
lea r8d, [rbx + 0x104]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001b360
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
lea rdx, [0x1400ab214]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
mov rdx, rdi
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x38]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14004dd08
lea rcx, [rsp + 0x30]
call fcn.14002ec38
xor eax, eax
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, str.FSOp::AddCICommonToPath:__Unexpected_failure___SetEnvironmentVariable_returned_FALSE
mov edx, 0x90
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
call fcn.1400599a4
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400b2900]
mov edx, SysAllocStringByteLen
call fcn.140068a64
int3
Function at 0x14002e6c8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
and dword [rsp + 0x30], 0
call fcn.14002e8f4
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
nop dword [rax + rax]
or esi, 0xffffffff
test eax, eax
je 0x14002e771
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140011230
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rsp + 0x70]
call fcn.140011278
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14002e7b9
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14002e8f4
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14002e664
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rbp + 0x10]
call fcn.140011278
mov eax, dword [rbx + 0x14]
cmp eax, 0xb
jb 0x14002e832
mov r8d, SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400127ac
lea rdx, str.SearchData
mov rcx, rax
call fcn.140018c48
test eax, eax
je 0x14002e88f
mov eax, dword [rbx + 0x14]
cmp eax, 6
jb 0x14002e861
mov r8d, 6
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400127ac
lea rdx, [0x1400aa018]
mov rcx, rax
call fcn.140018c48
test eax, eax
je 0x14004ddce
mov rcx, rdi
call fcn.140011278
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x610]
add rsp, 0x5e0
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rbx + 0x14]
sub edx, 0xb
mov rcx, rbx
call fcn.140011b00
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14002e8f4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e664
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rsp + 0x70]
call fcn.140011278
jmp 0x14002e861
mov edx, dword [rbx + 0x14]
sub edx, 6
mov rcx, rbx
call fcn.140011b00
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14002e8f4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e664
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
jmp 0x14002e8dc
Function at 0x14002ed10
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14002ed4a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14004e34c
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x28
ret
mov ecx, 6
jmp 0x14002ed36
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
jmp 0x14002ed44
Function at 0x14002fefc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
lea edx, [rbx + 0x10]
call fcn.14003045c
test eax, eax
js 0x14002ffa7
lea rax, [rsp + 0x30]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
mov dword [rsp + 0x20], 2
call fcn.140024fd4
test eax, eax
jne 0x14002ffa7
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], SafeArrayPutElement
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
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.140036b80
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140030df4
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400d0a30]
mov rcx, rdi
call fcn.1400307c8
test eax, eax
jne 0x140030ed0
mov rcx, rdi
call fcn.140030878
mov ebx, eax
test eax, eax
js 0x14004ee2c
mov rcx, qword [0x1400d0a30]
mov rax, qword [rcx]
movabs r10, 0xfa652e1a7a559870
mov rax, qword [rax + 0x68]
call qword [case.0x14001f589.0]
mov ebx, eax
test eax, eax
js 0x14004ee53
mov rcx, qword [0x1400d0a30]
mov edx, 4
call fcn.1400345b0
mov rax, qword [rdi]
movabs r10, 0xa5808fd316d54870
mov rax, qword [rax + 0x80]
mov rcx, rdi
call qword [case.0x14001f589.0]
mov ebx, eax
test eax, eax
js 0x14004ee33
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400ab570]
lea rcx, [rsp + 0x38]
call fcn.140030f14
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], 1
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.140030ee4
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x2dc
jmp 0x14004ee38
mov edx, 0x2e1
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140028614
mov eax, ebx
jmp 0x140030ed2
mov edx, 0x2dd
jmp 0x14004ee38

Function at 0x1400311f8
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [0x1400d3c6c], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x14003127d
call fcn.140031158
test al, al
jne 0x14003127d
mov rcx, rbx
call fcn.1400312a4
test eax, eax
je 0x140031298
call fcn.140038a24
test al, al
je 0x14003127d
and qword [rsp + 0x40], 0
mov r9d, edi
mov rax, qword [rsp + 0x80]
movzx edx, bp
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], si
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
jmp 0x140031282
Function at 0x140033ba0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x1400a2bc8]
mov qword [rsp + 0x68], rax
lea rax, [0x1400a2b08]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, [0x1400abd70]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.140013564
test eax, eax
js 0x140033d7f
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140033d7f
lea r9, [rsp + 0x30]
xor r8d, r8d
lea edi, [r14 + 4]
mov edx, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x140033d7f
mov ecx, dword [rsp + 0x30]
lea rdx, [0x1400aa420]
call fcn.14003726c
mov rbx, rax
test rax, rax
je 0x140033d7f
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400505c8
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
test eax, eax
jg 0x1400505cd
test eax, eax
js 0x140033d76
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x1400505da
cmp dword [rsp + 0x34], r14d
je 0x140033d76
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x1400505ec
mov edi, r14d
mov sil, r14b
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140033d76
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x140033d5d
inc edi
jmp 0x140033d1d
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
cmp ecx, 0xf003f
jne 0x140033d59
mov sil, 1
mov rcx, rbx
call fcn.14003729c
nop
lea rcx, [rsp + 0x60]
call fcn.140014d5c
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov eax, 6
movzx eax, ax
or eax, 0x80070000
jmp 0x140033cb2
call fcn.14001d618
test eax, eax
js 0x140033d76
jmp 0x140033ce5
call fcn.14001d618
test eax, eax
js 0x140033d76
jmp 0x140033d1a
Function at 0x140035b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140050e4c
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 0xea
je 0x140050e68
test eax, eax
jne 0x140050e53
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x140050e55
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140035bf7
mov ecx, 0x7a
jmp 0x140050e55
Function at 0x14003ff10
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3708
call fcn.140039ae0
sub rsp, rax
mov rax, qword [0x1400d1548]
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.14003fc84
test eax, eax
js 0x14004000e
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, str._4d__s_n
mov edx, 0xdac
lea rcx, [rsp + 0x30]
call fcn.14003045c
test eax, eax
js 0x14003ffaa
cmp byte [0x1400d22ac], 0
je 0x14003ffaa
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.14007406c
cmp byte [0x1400d22ad], 0
jne 0x14003ffc2
call fcn.14002cddc
cmp byte [0x1400d22ac], 0
jne 0x14003ffe9
lea rdx, [0x1400aa9b0]
mov rcx, qword [0x1400d0680]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
nop dword [rax + rax]
test al, al
je 0x14004000e
test byte [0x1400d3b02], 0x20
je 0x14004000e
lea r8, [rsp + 0x1b90]
lea rdx, [0x1400aa9b0]
lea rcx, [0x1400d0680]
call fcn.14005ccd8
nop
jmp 0x140040010
mov rcx, qword [rsp + 0x36f0]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x3708
ret
Function at 0x1400575b0
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 [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rdi, rcx
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x140057760
mov edx, 0x104
mov r8d, edx
lea rax, [rbp + 0x120]
cmp word [rax], si
je 0x14005762e
add rax, 2
sub r8, 1
jne 0x14005761f
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 0x1400576ae
sub rdx, r9
lea rcx, [rbp + 0x120]
lea rcx, [rcx + r9*2]
je 0x140057694
mov eax, 0x7ffffffe
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rcx
test rax, rax
je 0x140057694
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x140057694
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140057673
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 0x140057760
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x40]
call fcn.140011230
mov rdx, rax
mov rcx, rdi
call fcn.140066b74
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 0x14005770a
cmp eax, 0x50
je 0x14005770a
cmp eax, 0xb7
je 0x14005770a
test eax, eax
jle 0x140057708
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140057760
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.140011230
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.14002e8f4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.14002d954
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140066858
test eax, eax
js 0x140057760
call fcn.14005c600
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140036b80
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 0x14005779c
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 [0x1400d1548]
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.140024fd4
mov ebx, eax
test eax, eax
jle 0x1400577fb
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x14005781f
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x8db
call fcn.14002889c
jmp 0x140057993
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 0x140057982
test eax, eax
jne 0x140057958
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 0x14005794c
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1400acb40]
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 0x1400578e2
mov r9d, eax
lea r8, [0x1400abd20]
mov edx, 0x8f6
call fcn.14002889c
and qword [rsp + 0x50], 0
test ebx, ebx
js 0x140057937
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.0x14001f589.0]
mov ebx, eax
mov rcx, qword [rbp + 0x178]
test eax, eax
jns 0x140057937
mov r9d, eax
lea r8, [0x1400abd20]
mov edx, 0x8fd
call fcn.14002889c
nop
lea rcx, [rsp + 0x50]
call fcn.140003bbc
nop
lea rcx, [rsp + 0x48]
call fcn.140003bbc
inc edi
test ebx, ebx
jns 0x140057821
jmp 0x140057982
jg 0x14005795e
mov ebx, eax
jmp 0x140057967
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x8ec
call fcn.14005acc8
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.140036b80
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret