joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f420
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027040]
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.1400156a0
test eax, eax
je 0x14000f603
lea r8, str.rootWMI
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x48]
call fcn.1400154f0
test eax, eax
je 0x14000f601
mov qword [rsp + 0x90], rsi
lea rcx, [0x140021e10]
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 0x14000f519
test rax, rax
je 0x14000f510
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, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x14000f510
lea rcx, str.ExecQuery
mov r14d, ebx
call fcn.140012df0
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
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 0x14000f52f
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x98]
test r14d, r14d
mov r14, qword [rsp + 0xa0]
je 0x14000f601
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x30], ebx
test rcx, rcx
je 0x14000f5dd
nop dword [rax]
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 + 0x20]
cmp dword [rbp - 0x30], ebx
je 0x14000f5d8
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 + 0x20]
lea rcx, [rbp - 0x28]
test eax, eax
jns 0x14000f5c6
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14000f560
jmp 0x14000f5dd
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000f5dd
mov ebx, 1
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140015e30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x14000f620
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, [0x14001db40]
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.1400154f0
test eax, eax
je 0x14000f80c
mov qword [rsp + 0xa0], rsi
lea rcx, [0x140021e10]
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 0x14000f70d
test rax, rax
je 0x14000f704
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, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x14000f704
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140012df0
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
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 0x14000f723
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb0]
je 0x14000f80c
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14000f7e8
nop dword [rax]
nop word [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 + 0x20]
mov ebx, r15d
cmp dword [rbp - 0x18], ebx
je 0x14000f7e8
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 + 0x20]
test eax, eax
js 0x14000f7b0
cmp qword [rbp - 0x28], rbx
je 0x14000f7cf
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14000f760
jmp 0x14000f7e8
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 + 0x10]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140015e30
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
Function at 0x14000f9f0
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 [0x140027040]
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, [0x14001e4c8]
mov qword [rbp - 9], rax
lea rax, [0x14001e4d0]
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 0x14000fbbc
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 0x14000fbb2
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 0x14000fbb2
cmp dword [rbp + 0x17], 0
mov r14d, edi
jbe 0x14000fba9
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 0x14000fb9e
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 0x14000fbfc
inc ebx
add rdi, 8
cmp ebx, 7
jb 0x14000fb80
xor edi, edi
inc r14d
mov ebx, edi
cmp r14d, dword [rbp + 0x17]
jb 0x14000fb40
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 0x14000fa92
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140015e30
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 0x14000fbcf
Function at 0x14000fc20
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
lea rax, str.System32drivers_balloon.sys
xor esi, esi
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x392]
lea rax, str.System32drivers_netkvm.sys
mov word [rbp + 0x390], si
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, str.System32driverspvpanic.sys
mov r8d, 0x206
mov qword [rsp + 0x30], rax
lea rax, str.System32drivers_viofs.sys
mov qword [rsp + 0x38], rax
lea rax, str.System32drivers_viogpudo.sys
mov qword [rsp + 0x40], rax
lea rax, str.System32drivers_vioinput.sys
mov qword [rsp + 0x48], rax
lea rax, str.System32drivers_viorng.sys
mov qword [rsp + 0x50], rax
lea rax, str.System32drivers_vioscsi.sys
mov qword [rsp + 0x58], rax
lea rax, str.System32drivers_vioser.sys
mov qword [rsp + 0x60], rax
lea rax, str.System32drivers_viostor.sys
mov qword [rsp + 0x68], rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rbp + 0x180], si
mov r8d, 0x206
lea rcx, [rbp + 0x182]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
mov qword [rsp + 0x70], rsi
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.140013300
test eax, eax
je 0x14000fd2b
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov rdi, rsi
nop
mov r8, qword [rsp + rdi*8 + 0x20]
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov word [rbp - 0x80], si
mov r8d, 0x1fe
lea rcx, [rbp - 0x7e]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x180]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp - 0x80]
call fcn.140008da0
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000fddc
test al, 0x10
jne 0x14000fddc
lea rdx, [rbp - 0x80]
lea rcx, str.____s
call fcn.140008ce0
lea rcx, [rbp - 0x80]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x14000fdb0
mov ebx, 0x5f
sub rbx, rax
je 0x14000fdd5
lea rcx, [0x140021128]
call fcn.140008ce0
sub rbx, 1
jne 0x14000fdc3
mov ecx, 1
jmp 0x14000fe24
lea rdx, [rbp - 0x80]
lea rcx, str.____s
call fcn.140008ce0
lea rcx, [rbp - 0x80]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14000fdf7
mov ebx, 0x5f
sub rbx, rax
je 0x14000fe22
nop word [rax + rax]
lea rcx, [0x140021128]
call fcn.140008ce0
sub rbx, 1
jne 0x14000fe10
mov ecx, esi
lea rdx, [rbp - 0x80]
call fcn.140012cc0
inc rdi
cmp rdi, 0xa
jl 0x14000fd30
call fcn.140013300
test eax, eax
je 0x14000fe4e
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140015e30
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400103d0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, [0x14001db40]
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.1400154f0
test eax, eax
je 0x1400105ea
mov qword [rsp + 0xa0], rsi
lea rcx, [0x140021e10]
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 0x1400104ca
test rax, rax
je 0x1400104c1
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, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x1400104c1
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140012df0
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
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 0x1400104e0
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb8]
je 0x1400105c8
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x1400105a8
nop
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 + 0x20]
cmp dword [rbp - 0x18], r15d
je 0x1400105a4
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 + 0x20]
test eax, eax
js 0x140010587
movzx eax, word [rbp - 0x30]
cmp ax, r12w
je 0x140010587
test al, 8
je 0x14001057d
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 + 0x10]
test ebx, ebx
jne 0x1400105a4
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x140010510
jmp 0x1400105a8
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
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.140015e30
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x1400105d2
Function at 0x1400133c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
mov rdi, r9
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001348c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013481
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140013481
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14001348e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140015e30
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400134b0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0x2c0
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14001350e
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo._n
call fcn.140008ce0
lea eax, [rdi - 1]
jmp 0x1400135d2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140013574
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140013566
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.140008c70
lea eax, [rbx + 1]
jmp 0x1400135d2
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1400135bc
movzx eax, byte [rsi]
movzx ecx, byte [rsi + 4]
mov byte [rsp + 0x24], al
movzx eax, byte [rsi + 2]
mov byte [rsp + 0x25], al
mov rax, rbx
movzx edx, word [rsp + 0x24]
cmp dword [rax + 0x194], 6
jne 0x1400135ad
cmp dx, word [rax + 0x198]
jne 0x1400135ad
cmp cl, byte [rax + 0x19a]
je 0x1400135b7
mov rax, qword [rax]
test rax, rax
jne 0x140013593
jmp 0x1400135bc
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015e30
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400153e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
lea ecx, [rax + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140015437
lea rcx, [0x140021ce0]
call fcn.140012df0
xor eax, eax
jmp 0x1400154ce
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14001546a
lea rcx, str.Process32First
call fcn.140012df0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400154ce
mov rdx, rbx
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400154c1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400154b4
nop
mov rdx, rbx
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400154c1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140015490
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400154ce
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140015e30
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x1400154f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140015534
lea rcx, [0x140021d50]
call fcn.140012df0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbp
xor r9d, r9d
xor ebp, ebp
xor r8d, r8d
mov qword [rsp + 0x40], rbp
xor ecx, ecx
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
lea edx, [rbp - 1]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140015583
lea rcx, [0x140021d70]
call fcn.140012df0
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x14001567d
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r9, [0x140021ea0]
lea rcx, [0x140018a00]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400155bf
lea rcx, [0x140021da0]
call fcn.140012df0
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x14001567d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140015620
mov rcx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rbp
mov rdx, rax
mov qword [rsp + 0x30], rbp
mov r10, qword [rcx]
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbp
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, rbx
test eax, eax
jns 0x14001561a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, str.ConnectServer
call fcn.140012df0
jmp 0x140015665
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsi]
xor r9d, r9d
mov dword [rsp + 0x38], ebp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140015678
lea rcx, [0x140021de8]
call fcn.140012df0
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x14001567d
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14001697c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400169c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400169c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400169c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400169c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400169c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400169c8
xor al, al
add rsp, 0x28
ret