joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d50c
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 0x14002d543
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.1400345c0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14002e904
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14002d964
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14002d5e8
test al, al
je 0x14004ddf4
mov rcx, qword [rsp + 0x108]
call fcn.14002d5e8
test al, al
je 0x14004defa
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.140036b90
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.1400668a8
mov rcx, qword [rsp + 0x1a8]
call fcn.14002d5e8
test al, al
jne 0x14004dec3
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 0x14004dec3
test ebx, ebx
js 0x14004dec3
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 0x14004de8a
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.14005b01c
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 0x14002d58b
cmp word [rsi], r15w
jne 0x14004de0b
jmp 0x14002d58b
test r14, r14
je 0x14004df03
mov byte [r14], 1
mov rcx, qword [rsp + 0x108]
call fcn.140068da4
nop
jmp 0x14002d5a0

Function at 0x14002d5e8
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 0x14002d63b
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 0x14002d63b
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 0x14002d63b
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 0x14002d6cc
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 0x14002d818
cmp word [rcx], si
je 0x14002d818
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 0x14002d72e
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 0x14004df68
lea rcx, [rsp + 0x30]
call fcn.14002ec48
xor eax, eax
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140036b90
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.140059cc4
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400b2900]
mov edx, SysAllocStringByteLen
call fcn.140068d84
int3
Function at 0x14002e6d8
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.14002e904
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 0x14002e781
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 0x14002e7c9
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.14002e904
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14002e674
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 0x14002e842
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 0x14002e89f
mov eax, dword [rbx + 0x14]
cmp eax, 6
jb 0x14002e871
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 0x14004e02e
mov rcx, rdi
call fcn.140011278
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.140036b90
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.14002e904
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e674
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 0x14002e871
mov edx, dword [rbx + 0x14]
sub edx, 6
mov rcx, rbx
call fcn.140011b00
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14002e904
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e674
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 0x14002e8ec
Function at 0x14002ed20
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14002ed5a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14004e5ac
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 0x14002ed46
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 0x14002ed54
Function at 0x14002ff0c
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.14003046c
test eax, eax
js 0x14002ffb7
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 0x14002ffb7
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.140036b90
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140030e04
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.1400307d8
test eax, eax
jne 0x140030ee0
mov rcx, rdi
call fcn.140030888
mov ebx, eax
test eax, eax
js 0x14004f08c
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 0x14004f0b3
mov rcx, qword [0x1400d0a30]
mov edx, 4
call fcn.1400345c0
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 0x14004f093
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400ab570]
lea rcx, [rsp + 0x38]
call fcn.140030f24
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.140030ef4
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x2dc
jmp 0x14004f098
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 0x140030ee2
mov edx, 0x2dd
jmp 0x14004f098

Function at 0x140031208
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 [0x1400d3cac], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x14003128d
call fcn.140031168
test al, al
jne 0x14003128d
mov rcx, rbx
call fcn.1400312b4
test eax, eax
je 0x1400312a8
call fcn.140038a34
test al, al
je 0x14003128d
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 0x140031292
Function at 0x140033bb0
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 0x140033d8f
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140033d8f
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 0x140033d8f
mov ecx, dword [rsp + 0x30]
lea rdx, [0x1400aa420]
call fcn.14003727c
mov rbx, rax
test rax, rax
je 0x140033d8f
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140050828
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 0x14005082d
test eax, eax
js 0x140033d86
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 0x14005083a
cmp dword [rsp + 0x34], r14d
je 0x140033d86
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 0x14005084c
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 0x140033d86
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 0x140033d6d
inc edi
jmp 0x140033d2d
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
cmp ecx, 0xf003f
jne 0x140033d69
mov sil, 1
mov rcx, rbx
call fcn.1400372ac
nop
lea rcx, [rsp + 0x60]
call fcn.140014d5c
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140036b90
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 0x140033cc2
call fcn.14001d618
test eax, eax
js 0x140033d86
jmp 0x140033cf5
call fcn.14001d618
test eax, eax
js 0x140033d86
jmp 0x140033d2a
Function at 0x140035b90
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 0x1400510ac
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 0x1400510c8
test eax, eax
jne 0x1400510b3
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 0x1400510b5
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 0x140035c07
mov ecx, 0x7a
jmp 0x1400510b5
Function at 0x140040170
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3708
call fcn.140039d40
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.14003fee4
test eax, eax
js 0x14004026e
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.14003046c
test eax, eax
js 0x14004020a
cmp byte [0x1400d22ac], 0
je 0x14004020a
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.14007438c
cmp byte [0x1400d22ad], 0
jne 0x140040222
call fcn.14002cdec
cmp byte [0x1400d22ac], 0
jne 0x140040249
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 0x14004026e
test byte [0x1400d3b42], 0x20
je 0x14004026e
lea r8, [rsp + 0x1b90]
lea rdx, [0x1400aa9b0]
lea rcx, [0x1400d0680]
call fcn.14005cff8
nop
jmp 0x140040270
mov rcx, qword [rsp + 0x36f0]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x3708
ret
Function at 0x1400578d0
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 0x140057a80
mov edx, 0x104
mov r8d, edx
lea rax, [rbp + 0x120]
cmp word [rax], si
je 0x14005794e
add rax, 2
sub r8, 1
jne 0x14005793f
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 0x1400579ce
sub rdx, r9
lea rcx, [rbp + 0x120]
lea rcx, [rcx + r9*2]
je 0x1400579b4
mov eax, 0x7ffffffe
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rcx
test rax, rax
je 0x1400579b4
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x1400579b4
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140057993
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 0x140057a80
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x40]
call fcn.140011230
mov rdx, rax
mov rcx, rdi
call fcn.140066e94
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 0x140057a2a
cmp eax, 0x50
je 0x140057a2a
cmp eax, 0xb7
je 0x140057a2a
test eax, eax
jle 0x140057a28
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140057a80
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.14002e904
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.14002d964
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140066b78
test eax, eax
js 0x140057a80
call fcn.14005c920
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140036b90
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 0x140057abc
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 0x140057b1b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x140057b3f
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x8db
call fcn.14002889c
jmp 0x140057cb3
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 0x140057ca2
test eax, eax
jne 0x140057c78
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 0x140057c6c
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 0x140057c02
mov r9d, eax
lea r8, [0x1400abd20]
mov edx, 0x8f6
call fcn.14002889c
and qword [rsp + 0x50], 0
test ebx, ebx
js 0x140057c57
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 0x140057c57
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 0x140057b41
jmp 0x140057ca2
jg 0x140057c7e
mov ebx, eax
jmp 0x140057c87
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x8ec
call fcn.14005afe8
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.140036b90
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret