joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069dac
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140049db0
nop
lea rcx, [rsp + 0x40]
call fcn.140066b00
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400be8f0]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069f78
lea rdx, [0x1400b45f4]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140069f5d
lea rdx, [0x1400be8e8]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140069f5d
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rcx, [rsp + 0x40]
call fcn.140066b00
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsi]
mov r8d, dword [rbp - 0x20]
test r8b, 0x10
je 0x140069f3c
movabs r10, 0xdffc268f7adceb70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x140069f30
test eax, eax
jne 0x140069f5d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140069dac
mov edi, eax
test eax, eax
jns 0x140069f5d
lea rcx, [rsp + 0x30]
call fcn.14006924c
jmp 0x140069f93
movabs r10, 0xe4341ff178580a70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x140069fc7
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140069e40
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069f91
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x140069f93
Function at 0x14006a2a8
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea rax, [rbp - 0x15]
mov qword [r11 - 0x80], rax
mov r12, rcx
mov rcx, qword [rcx]
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x14006a444
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006a444
mov ecx, dword [rbp - 0x19]
lea rdx, [0x1400b45f2]
call fcn.1400252fc
mov r14, rax
test rax, rax
je 0x14006a444
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x15]
mov rcx, qword [r12]
lea edx, [rdi + 1]
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
je 0x14006a43c
mov esi, edi
cmp dword [rbp - 0x15], edi
jbe 0x14006a43c
mov eax, esi
lea rcx, [rbp - 0x11]
mov r8d, 0x24
lea rdx, [rax + rax*2]
add rdx, rdx
mov rdx, qword [r14 + rdx*8]
call fcn.14006a220
cmp qword [rbp - 0x11], rdi
je 0x14006a428
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 9]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
je 0x14006a428
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
lea r15, [rax + 0x7530]
cmp dword [rbp - 5], 1
je 0x14006a428
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
cmp rax, r15
jae 0x14006a428
mov ecx, dword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp - 9]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006a3e1
call fcn.14001be00
test eax, eax
jns 0x14006a3e1
lea rcx, [rbp - 0x11]
call fcn.1400575d4
inc esi
cmp esi, dword [rbp - 0x15]
jb 0x14006a37d
mov rcx, r14
call fcn.14002532c
mov rcx, qword [r12]
lea r8, [rbp + 0x17]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x2f], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x14006a476
call fcn.14001be00
mov edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x90]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006a728
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
call fcn.14006a710
test al, al
je 0x14006a906
mov eax, dword [rcx + 0x14]
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleLastReported
and dword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
and qword [rsp + 0x5c], 0
and dword [rsp + 0x64], 0
and dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], eax
call fcn.14006a644
test al, al
je 0x14006a7af
mov eax, dword [rbx]
cmp dword [rsp + 0x58], eax
jne 0x14006a7af
mov rax, qword [rbx + 4]
cmp qword [rsp + 0x5c], rax
jne 0x14006a7af
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x68], eax
je 0x14006a906
mov r9d, dword [rbx + 0x14]
lea r8, [0x1400bea68]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x60]
call fcn.14003f9bc
test eax, eax
js 0x14006a906
mov r9d, dword [rbx + 0x10]
lea r8, [0x1400b45f8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x40]
call fcn.14003f9bc
test eax, eax
js 0x14006a906
imul rax, qword [rbx + 4], 0x2710
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x50]
shr rax, 0x20
mov dword [rsp + 0x54], eax
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
test eax, eax
je 0x14006a906
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
nop dword [rax + rax]
test eax, eax
je 0x14006a906
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
test eax, eax
jle 0x14006a906
lea rax, [0x1400b4ad4]
xor ecx, ecx
mov qword [rbp - 0x80], rax
lea rdx, str.Windows_Search_Service
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], rax
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14006a906
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x80]
mov ecx, 4
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov r9d, 0x800003f7
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], 0
lea edx, [rcx - 2]
lea r8d, [rcx - 3]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rbp
ret
Function at 0x14006a930
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400de7a8]
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.14003f9bc
test eax, eax
js 0x14006a9db
lea rax, [rsp + 0x30]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
mov dword [rsp + 0x20], 2
call fcn.14001ec70
test eax, eax
jne 0x14006a9db
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.140024c10
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14006adbc
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
movzx eax, word [rcx + 8]
mov edi, r9d
movzx esi, r8w
mov ebp, edx
mov rbx, rcx
mov dword [rsp + 0x28], edi
mov r9d, esi
mov dword [rsp + 0x20], eax
lea r8, str._EventLog__CEventLog::Report___called__Severity_0x_04x__Category__d__Args__d
mov edx, 0x3e
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutildeventlog.cxx
call fcn.14000b090
mov edx, ebp
call fcn.14006a9fc
test al, al
jne 0x14006ae74
call fcn.140026ac4
test al, al
je 0x14006ae74
and qword [rsp + 0x40], 0
mov r9d, ebp
mov rax, qword [rsp + 0x80]
movzx edx, si
movzx r8d, word [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], di
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006ae6e
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x14006ae94
jmp 0x14006ae79
mov eax, 0x800003f7
mov r9d, eax
lea r8, str._EventLog__ReportEvent___Failed._0x_08x
mov edx, 0x62
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutildeventlog.cxx
call fcn.14004eb3c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14006b7c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdi, rcx
mov rdx, rcx
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14006b838
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdx, 0xffffffff80000002
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x250
pop rbx
ret

Function at 0x14006b8a8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, qword [rsp + 0x280]
lea rsi, str.SOFTWAREMicrosoftWindows_Search
mov rdi, r8
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, 0xffffffff80000002
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x288]
mov r9d, 4
mov dword [rsp + 0x28], eax
cmove rdx, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14006baac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rsi
mov r8d, 0xd0
mov r14, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edi, edi
test r14, r14
je 0x14006bb00
mov word [r14], di
lea rcx, [rsp + 0x30]
call fcn.14006bd90
mov ebx, eax
mov ebp, 0x1a
test eax, eax
js 0x14006bbd1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
nop dword [rax + rax]
movzx r12d, word [rsp + 0x30]
mov r13d, eax
cmp edi, ebp
jae 0x14006bc1b
bt r13d, edi
jae 0x14006bbc5
movabs rax, 0x5c003a0020
lea r15d, [rdi + 0x41]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
mov word [rsp + 0x48], r15w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
jne 0x14006bbc5
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
movzx edx, r12w
movzx ecx, r15w
call fcn.14006be30
mov ebx, eax
test eax, eax
js 0x14006bbc5
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14006b958
mov ebx, eax
cmp eax, 1
jne 0x14006bba8
xor ebx, ebx
inc edi
jmp 0x14006bb2e
test eax, eax
js 0x14006bbc5
mov eax, edi
lea rcx, [rsp + 0x50]
lea rdx, [rsi + rax*8]
call qword [sym.imp.SHCORE.dll_SHStrDupW]
nop dword [rax + rax]
mov ebx, eax
inc edi
test ebx, ebx
jns 0x14006bb2e
xor edi, edi
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rsi], rdi
lea rsi, [rsi + 8]
sub rbp, 1
jne 0x14006bbd1
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14, r14
je 0x14006bbed
mov word [r14], r12w
jmp 0x14006bbed
Function at 0x14006bc2c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
lea r9, [rax + 0x10]
mov word [rdx], bp
mov r14, rdx
xor edx, edx
mov dword [rax + 0x10], ebp
xor r8d, r8d
mov rdi, rcx
mov ebx, ebp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006bd40
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006bd40
mov ecx, dword [rsp + 0x48]
lea eax, [rbp + 2]
mul rcx
lea r15, [rbp - 1]
lea rdx, [0x1400b45f2]
cmovo rax, r15
mov rcx, rax
call fcn.1400252fc
mov rsi, rax
test rax, rax
je 0x14006bd39
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
je 0x14006bd14
mov rdi, rsi
cmp word [rsi], bp
je 0x14006bd2f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsRootW]
nop dword [rax + rax]
test eax, eax
jne 0x14006bd0b
mov rax, r15
inc rax
cmp word [rdi + rax*2], bp
jne 0x14006bcf3
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x14006bcdd
jmp 0x14006bd2f
movzx eax, word [rdi]
mov word [r14], ax
jmp 0x14006bd2f
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 0x14006bd2f
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call fcn.14002532c
jmp 0x14006bd5b
mov ebx, 0x8007000e
jmp 0x14006bd5b
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 0x14006bd5b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006bd6b
cmp word [r14], bp
mov eax, 0x80070057
cmove ebx, eax
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14006bd90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14006be03
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
mov word [rdi], ax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14006be30
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r9
mov rsi, r8
movzx ebx, dx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
movzx ecx, bx
movzx ebp, ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
cmp bp, ax
jne 0x14006be92
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
jmp 0x14006bf26
movabs rax, 0x5c003a0020
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov word [rsp + 0x20], bp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14006bee2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006bee0
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14006bf26
mov edx, 0x7b
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x14006bf07
mov eax, 0x8000ffff
jmp 0x14006bf26
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
test eax, eax
js 0x14006bf26
mov r8, r11
mov rcx, rdi
call fcn.14006bf50
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x140072870
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1400dffe4]
test eax, eax
jne 0x140072974
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_290
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400728df
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x1400dffe4], eax
sub ecx, 1
je 0x140072950
cmp ecx, 1
jne 0x140072974
cmp edx, 5
jne 0x14007293e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140072937
sub eax, ecx
je 0x14007291d
cmp eax, ecx
je 0x140072913
lea eax, [rdx + 0xf]
jmp 0x140072992
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea ecx, [rdx - 0xf]
jmp 0x140072925
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x140072992
mov eax, 4
jmp 0x140072992
cmp edx, 4
ja 0x14007298d
mov ecx, 2
mov eax, ecx
mov dword [0x1400dffe4], ecx
cmp edx, 4
jne 0x140072974
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140072967
cmp ecx, 0xa
je 0x140072967
cmp ecx, 0x5a
jne 0x140072974
mov ecx, 1
mov eax, ecx
mov dword [0x1400dffe4], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x1400dffe4], eax
jmp 0x140072974

Function at 0x140072a14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test rdx, rdx
je 0x140072a90
test r8, r8
je 0x140072a90
movzx ecx, cx
lea r8d, [rbp + 0x55]
mov r9d, 0x8000000
call qword [sym.imp.api_ms_win_core_localization_l1_2_2.dll_LCIDToLocaleName]
nop dword [rax + rax]
test eax, eax
je 0x140072a90
lea r9d, [rbp + 0x55]
mov r8, rdi
lea edx, [rbp + 0x6d]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
nop dword [rax + rax]
test rsi, rsi
je 0x140072a89
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.140072ab0
mov eax, 1
jmp 0x140072a92
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140072cc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x1400b66f0]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x140072cf3
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]