joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bad0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, 0x202
mov dword [rsp + 0x20], 0x101
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14002bb1b
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002bb30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret

Function at 0x14002bb50
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14002bb9b
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14002bbb0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret

Function at 0x14002bbd0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rsp + 0x20]
mov eax, 2
inc ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14002bc47
lea r8, [rsp + 0x20]
mov rdx, rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14002bc5c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098760
add rsp, 0x30
pop rbx
ret
Function at 0x14002c660
Capabilities:
Enumerate disk properties

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x80
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r15d, r15d
lea rcx, [0x1400ac978]
xor r8d, r8d
xor edx, edx
mov esi, r15d
lea r9d, [r15 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14002c84d
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0xb0], r14
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x50], reloc.WLDAP32.dll_Ordinal_32
mov r14d, r15d
mov dword [rsp + 0x44], r15d
mov ebx, r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14002c817
lea esi, [r15 + 1]
mov qword [rsp + 0xa8], rdi
nop dword [rax + rax]
lea rax, [rsp + 0x44]
mov r8d, esi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
mov eax, dword [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14002c789
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002c789
test rbx, rbx
je 0x14002c73a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x44]
mov ecx, 0x40
lea edx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002c7e2
lea rax, [rsp + 0x44]
mov r8d, esi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
mov eax, dword [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14002c721
test rbx, rbx
je 0x14002c7e2
lea rdx, str.vbox
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14002c806
lea rdx, str.vmware
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14002c806
lea rdx, str.qemu
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14002c806
lea rdx, str.virtual
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14002c806
inc r14d
lea r8, [rsp + 0x50]
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14002c6f0
mov esi, r15d
test rbx, rbx
je 0x14002c80f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa0]
test eax, eax
je 0x14002c849
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
cmovne esi, r15d
mov eax, esi
jmp 0x14002c84f
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140098760
add rsp, 0x80
pop r15
pop rsi
pop rbp
ret
Function at 0x14002cf90
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], rbx
call fcn.140035240
test eax, eax
je 0x14002d173
lea r8, str.rootWMI
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x48]
call fcn.140035090
test eax, eax
je 0x14002d171
mov qword [rsp + 0x90], rsi
lea rcx, [0x1400b7748]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14d, 1
mov rdi, rax
test rsi, rsi
je 0x14002d08c
test rax, rax
je 0x14002d083
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea r9d, [r14 + 0x2f]
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14002d083
lea rcx, str.ExecQuery
mov r14d, ebx
call fcn.140032a70
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x90]
test rdi, rdi
je 0x14002d0a2
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x98]
test r14d, r14d
mov r14, qword [rsp + 0xa0]
je 0x14002d171
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x30], ebx
test rcx, rcx
je 0x14002d14d
nop
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x50]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 0x30], ebx
je 0x14002d148
mov rcx, qword [rbp - 0x50]
lea r9, [rbp - 0x28]
mov qword [rsp + 0x28], rbx
lea rdx, str.CurrentTemperature
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
lea rcx, [rbp - 0x28]
test eax, eax
jns 0x14002d136
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14002d0d0
jmp 0x14002d14d
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14002d14d
mov ebx, 1
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140098760
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x14002d190
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, [0x1400b3230]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r15
mov ebx, r15d
call fcn.140035090
test eax, eax
je 0x14002d37c
mov qword [rsp + 0xa0], rsi
lea rcx, [0x1400b7748]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_Processor
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r14d, [r15 + 1]
mov rdi, rax
test rsi, rsi
je 0x14002d280
test rax, rax
je 0x14002d277
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14002d277
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140032a70
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14002d296
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb0]
je 0x14002d37c
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14002d358
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x50]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov ebx, r15d
cmp dword [rbp - 0x18], ebx
je 0x14002d358
mov rcx, qword [rbp - 0x50]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rdx, str.ProcessorId
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14002d320
cmp qword [rbp - 0x28], rbx
je 0x14002d33f
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14002d2d0
jmp 0x14002d358
lea rcx, [rbp - 0x30]
mov ebx, 1
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140098760
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
Function at 0x14002d570
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rax, str.SystemCurrentControlSetEnumIDE
xor edi, edi
mov qword [rbp - 0x39], rax
lea r13, [rbp - 0x39]
lea rax, str.SystemCurrentControlSetEnumSCSI
mov qword [rbp + 0xf], rdi
mov qword [rbp - 0x31], rax
mov r12d, edi
lea rax, str.qemu
mov qword [rbp - 0x29], rax
lea rax, str.virtio
mov qword [rbp - 0x21], rax
lea rax, str.vmware
mov qword [rbp - 0x19], rax
lea rax, str.vbox
mov qword [rbp - 0x11], rax
lea rax, [0x1400b3a38]
mov qword [rbp - 9], rax
lea rax, [0x1400b3a40]
mov qword [rbp - 1], rax
lea rax, str.Virtual
mov qword [rbp + 7], rax
mov rdx, qword [r13]
lea rax, [rbp + 0xf]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x17], edi
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x1b], edi
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002d73c
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002d732
mov eax, dword [rbp + 0x1b]
lea r15d, [rax*2 + 2]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14002d732
cmp dword [rbp + 0x17], 0
mov r14d, edi
jbe 0x14002d729
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
lea r9, [rbp + 0x1f]
mov qword [rsp + 0x38], rdi
mov r8, rsi
mov qword [rsp + 0x30], rdi
mov edx, r14d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rbp + 0x1f], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002d71e
mov ebx, edi
lea rdi, [rbp - 0x29]
nop word [rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14002d77c
inc ebx
add rdi, 8
cmp ebx, 7
jb 0x14002d700
xor edi, edi
inc r14d
mov ebx, edi
cmp r14d, dword [rbp + 0x17]
jb 0x14002d6c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r12d
add r13, 8
cmp r12d, 2
jb 0x14002d612
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140098760
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14002d74f
Function at 0x14002da50
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, [0x1400b3230]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x50], r15
mov ebx, r15d
call fcn.140035090
test eax, eax
je 0x14002dc7a
mov qword [rsp + 0xa0], rsi
lea rcx, [0x1400b7748]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_NetworkAdapterConfiguration
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x14002db4d
test rax, rax
je 0x14002db44
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14002db44
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140032a70
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14002db63
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb8]
je 0x14002dc58
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14002dc38
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov edx, 0xffffffff
mov r8d, r12d
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 0x18], r15d
je 0x14002dc34
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rdx, str.MACAddress
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14002dc17
movzx eax, word [rbp - 0x30]
cmp ax, r12w
je 0x14002dc17
test al, 8
je 0x14002dc0d
mov rcx, qword [rbp - 0x28]
lea rdx, str.08:00:27
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebx, ebx
jne 0x14002dc34
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x14002dba0
jmp 0x14002dc38
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r12, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140098760
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x14002dc62
Function at 0x14002e130
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, [0x1400b3230]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x48], r15
mov ebx, r15d
call fcn.140035090
test eax, eax
je 0x14002e351
mov qword [rsp + 0xa0], rsi
lea rcx, [0x1400b7748]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_PnPEntity
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x14002e22d
test rax, rax
je 0x14002e224
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14002e224
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140032a70
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14002e243
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb8]
je 0x14002e32f
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14002e30b
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov edx, 0xffffffff
mov r8d, r12d
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 0x18], r15d
je 0x14002e30b
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rdx, str.DeviceId
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14002e2f0
cmp word [rbp - 0x30], 8
jne 0x14002e2e6
mov rcx, qword [rbp - 0x28]
lea rdx, str.PCIVEN_80EEDEV_CAFE
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebx, ebx
jne 0x14002e30b
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x14002e280
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r12, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140098760
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x14002e339
Function at 0x140030250
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1400c7080]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
lea rax, str.System32drivers_vmnet.sys
xor edx, edx
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x3b0]
lea rax, str.System32drivers_vmmouse.sys
mov r8d, 0x208
mov qword [rsp + 0x28], rax
lea rax, str.System32drivers_vmusb.sys
mov qword [rsp + 0x30], rax
lea rax, str.System32drivers_vm3dmp.sys
mov qword [rsp + 0x38], rax
lea rax, str.System32drivers_vmci.sys
mov qword [rsp + 0x40], rax
lea rax, str.System32drivers_vmhgfs.sys
mov qword [rsp + 0x48], rax
lea rax, str.System32drivers_vmmemctl.sys
mov qword [rsp + 0x50], rax
lea rax, str.System32drivers_vmx86.sys
mov qword [rsp + 0x58], rax
lea rax, str.System32drivers_vmrawdsk.sys
mov qword [rsp + 0x60], rax
lea rax, str.System32drivers_vmusbmouse.sys
mov qword [rsp + 0x68], rax
lea rax, str.System32drivers_vmkdb.sys
mov qword [rsp + 0x70], rax
lea rax, str.System32drivers_vmnetuserif.sys
mov qword [rsp + 0x78], rax
lea rax, str.System32drivers_vmnetadapter.sys
mov qword [rbp - 0x80], rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edi, edi
lea rcx, [rbp + 0x3b0]
mov edx, 0x104
mov qword [rbp - 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.140034c90
test eax, eax
je 0x140030370
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop dword [rax]
mov r8, qword [rsp + rdi*8 + 0x20]
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x1a0]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp - 0x60]
call fcn.14002b640
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030429
test al, 0x10
jne 0x140030429
cmp byte [0x1400e7422], 0
je 0x140030481
lea rdx, [rbp - 0x60]
lea rcx, [0x1400b6760]
call fcn.14002eda0
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400303f4
mov ebx, 0x5f
sub rbx, rax
je 0x140030422
nop dword [rax + rax]
lea rcx, [0x1400b675c]
call fcn.14002eda0
sub rbx, 1
jne 0x140030410
mov ecx, 1
jmp 0x140030478
cmp byte [0x1400e7422], 0
je 0x140030481
lea rdx, [rbp - 0x60]
lea rcx, [0x1400b6760]
call fcn.14002eda0
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140030450
mov ebx, 0x5f
sub rbx, rax
je 0x140030476
lea rcx, [0x1400b675c]
call fcn.14002eda0
sub rbx, 1
jne 0x140030464
xor ecx, ecx
lea rdx, [rbp - 0x60]
call fcn.140032960
inc rdi
cmp rdi, 0xd
jl 0x140030370
call fcn.140034c90
test eax, eax
je 0x1400304a1
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140098760
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret