joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400118c5
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140022010
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rcx, [0x140093239]
call fcn.140011a64
lea rdx, [0x140033e70]
lea rcx, [rbp + 0x1a8]
call fcn.1400117a8
mov rcx, rax
call fcn.140011113
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 8], rax
call fcn.14001153c
mov r8d, 0x40
mov edx, 0x1000
mov rcx, rax
call fcn.140011a37
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x44], 0x74
mov eax, dword [rbp + 0x44]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x68], rax
mov r8d, 0x5c
lea rdx, [0x14007d660]
mov rcx, qword [rbp + 0x68]
call fcn.14001152d
mov rax, qword [rbp + 0x28]
add rax, 0x5c
mov qword [rbp + 0x88], rax
mov eax, dword [0x14007d6bc]
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + rax], rdx
mov rax, qword [rbp + 0x68]
add rax, 0x5c
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x208]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x210]
mov eax, dword [rax + 0x28]
mov rcx, qword [rbp + 0x208]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0xa8]
mov qword [rcx + 8], rax
call fcn.14001153c
mov r9d, dword [rbp + 0x44]
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.1400114ab
mov r9d, dword [rbp + 0x200]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x28]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa8]
cmp dword [rax], 2
je 0x1400221aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, dword [rbp + 0x200]
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call fcn.14001153c
mov r9d, 0x18
mov r8, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x88]
mov rcx, rax
call fcn.1400112df
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002215c
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.14001153c
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.140011aeb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret
Function at 0x1400119d8
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140026580
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rcx, [0x140093239]
call fcn.140011a64
mov rax, qword [rbp + 0x140]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x140]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 8], rax
xor eax, eax
mov word [rbp + 0x24], ax
jmp 0x1400265e3
movzx eax, word [rbp + 0x24]
inc ax
mov word [rbp + 0x24], ax
mov rax, qword [rbp + 8]
add rax, 0x28
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 0x140]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14002665a
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 0x138]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 8]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x130]
add rdx, rcx
mov rcx, rdx
mov qword [rbp + 0x100], rcx
call fcn.14001153c
mov rcx, qword [rbp + 8]
mov r9d, dword [rcx + 0x10]
mov rcx, qword [rbp + 0xf8]
mov r8, rcx
mov rcx, qword [rbp + 0x100]
mov rdx, rcx
mov rcx, rax
call fcn.1400114ab
jmp 0x1400265cc
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140011a1e
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023520
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14008aec0]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x140093234]
call fcn.140011a64
mov byte [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov rcx, qword [rbp + 0x1c0]
call fcn.1400113ac
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400235db
mov byte [rbp + 0x124], 1
mov rcx, qword [rbp + 0x1c0]
call fcn.140011910
movzx eax, byte [rbp + 0x124]
jmp 0x14002366d
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400235fe
mov byte [rbp + 0x144], 0
mov rcx, qword [rbp + 0x1c0]
call fcn.140011910
movzx eax, byte [rbp + 0x144]
jmp 0x14002366d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, 0x2400
lea rdx, section..data
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [rbp + 0x24], al
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x140023653
mov byte [rbp + 0x164], 0
mov rcx, qword [rbp + 0x1c0]
call fcn.140011910
movzx eax, byte [rbp + 0x164]
jmp 0x14002366d
mov byte [rbp + 0x184], 1
mov rcx, qword [rbp + 0x1c0]
call fcn.140011910
movzx eax, byte [rbp + 0x184]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140032d10]
call fcn.1400118ac
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.140011528
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140008f70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140009031
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140009031
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016050
add rsp, 0x70
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016050
add rsp, 0x70
pop rbx
ret
Function at 0x140009450
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebp, dword [rsp + 0x74]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
lea rdx, [fcn.140009450]
mov ecx, 4
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x1400095f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rcx, rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x14000957b
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x14000957b
mov rsi, qword [rsp + 0x28]
xor eax, eax
lea rdi, [rsp + 0xa0]
mov ecx, 0x200
lea rdx, str.Scanning__p...
rep stosb byte [rdi], al
lea rcx, [rsp + 0xa0]
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x140009568
mov eax, dword [rsp + 0x64]
test al, 0x10
jne 0x140009548
test al, 0x20
jne 0x140009548
test al, al
js 0x140009548
test al, 0x40
je 0x140009560
bt eax, 8
jb 0x14000961e
test dword [rsp + 0x50], 0x100
jne 0x14000961e
test al, 1
jne 0x14000961e
mov eax, dword [rsp + 0x30]
add rbx, rbp
add rsi, rbp
cmp rbx, rax
jb 0x1400094f1
mov rsi, qword [0x1400400c0]
mov rbp, qword [0x1400400c8]
cmp rsi, rbp
je 0x1400095f3
nop
mov rbx, qword [rsi]
lea rdi, [rsp + 0xa0]
xor eax, eax
lea rdx, str.Scanning_delta_for__p...
mov ecx, 0x200
mov r8, rbx
rep stosb byte [rdi], al
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x1400095ea
mov eax, dword [rsp + 0x64]
test al, 0x10
jne 0x1400095ea
test al, 0x20
jne 0x1400095ea
test al, al
js 0x1400095ea
test al, 0x40
je 0x14000961e
add rsi, 8
cmp rsi, rbp
jne 0x140009590
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140016050
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x1400095f5
Function at 0x14000ba60
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
sub rsp, 0x458
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov edx, 0x5c
add rcx, 2
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x14000bcb8
mov edx, 0x5c
lea rcx, [rax + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rsi, rax
test rax, rax
je 0x14000bcb8
mov qword [rsp + 0x478], rbp
xor edx, edx
movzx ebp, word [rax]
mov r8d, 0x202
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x450], r14
xor r14d, r14d
mov word [rax], r14w
mov ecx, dword [0x14001c404]
mov dword [rsp + 0x20], ecx
movzx ecx, word [0x14001c408]
mov word [rsp + 0x24], cx
lea rcx, [rsp + 0x26]
call sub.VCRUNTIME140.dll_memset
mov edi, 0x41
mov r8d, 0x104
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x230]
mov word [rsp + 0x230], r14w
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14000bb41
mov rdx, rbx
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14000bb84
inc di
cmp di, 0x5a
jb 0x14000bb01
mov word [rsi], bp
mov eax, 0x80004005
mov rdi, qword [rsp + 0x480]
mov rbp, qword [rsp + 0x478]
mov r14, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140016050
add rsp, 0x458
pop rsi
pop rbx
ret
mov edx, 0x82
lea rax, [rsp + 0x20]
mov ecx, edx
cmp word [rax], r14w
je 0x14000bba0
add rax, 2
sub rcx, 1
jne 0x14000bb90
mov rax, rdx
mov r9d, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14000bc03
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x14000bbf4
lea r11, [0x14001c40c]
mov eax, r9d
sub r11, rcx
test rax, rax
je 0x14000bbf4
movzx r10d, word [r11 + rcx]
test r10w, r10w
je 0x14000bbf4
mov word [rcx], r10w
dec rax
add rcx, 2
sub r8, 1
jne 0x14000bbd3
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rdx
lea rax, [rsp + 0x20]
nop dword [rax + rax]
cmp word [rax], r14w
je 0x14000bc20
add rax, 2
sub rcx, 1
jne 0x14000bc10
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14000bc71
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x14000bc62
sub rsi, rcx
test r9, r9
je 0x14000bc62
movzx eax, word [rsi + rcx + 2]
test ax, ax
je 0x14000bc62
mov word [rcx], ax
dec r9
add rcx, 2
sub r8, 1
jne 0x14000bc43
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax]
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x14000bca2
movzx eax, word [rcx + rbx]
test ax, ax
je 0x14000bca2
mov word [rbx], ax
add rbx, 2
sub rdx, 1
jne 0x14000bc80
test rdx, rdx
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
xor eax, eax
jmp 0x14000bb52
mov eax, 0x80004005
jmp 0x14000bb6a
Function at 0x14000d740
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea rdx, [0x14003f1f0]
mov ecx, ebx
mov rax, rdx
nop dword [rax]
cmp dword [rax], ebx
je 0x14000d7bc
inc ecx
add rax, 0x30
cmp ecx, 0x1f
jb 0x14000d770
mov qword [rsp + 0x280], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x238
rep stosb byte [rdi], al
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d803
lea rcx, [0x140021de0]
call fcn.140012ff0
jmp 0x14000d891
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rdx + rcx*8 + 0x24], bl
je 0x14000d77f
mov ecx, ebx
mov rax, rdx
cmp dword [rax], ebx
je 0x14000d7e7
inc ecx
add rax, 0x30
cmp ecx, 0x1f
jb 0x14000d7d1
call rbx
jmp 0x14000d89b
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rdx + rcx*8 + 0x24], bl
je 0x14000d7fc
mov rbx, qword [rdx + rcx*8 + 0x28]
call rbx
jmp 0x14000d89b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14000d82b
lea rcx, str.Process32First
call fcn.140012ff0
jmp 0x14000d888
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
jne 0x14000d850
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x28]
jmp 0x14000d891
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000d888
nop
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x14000d844
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000d860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x280]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140016050
add rsp, 0x270
pop rbx
ret
Function at 0x14000e0b0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140027040]
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 0x14000e0fb
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000e110
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.140016050
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016050
add rsp, 0x30
pop rbx
ret

Function at 0x14000e130
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, 0x20
mov dword [rsp + 0x20], SafeArrayLock
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000e17b
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14000e190
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.140016050
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016050
add rsp, 0x30
pop rbx
ret

Function at 0x14000e1b0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rsp + 0x20]
mov eax, 2
inc ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovb 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 0x14000e229
lea r8, [rsp + 0x20]
mov rdx, rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14000e23e
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.140016050
add rsp, 0x30
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016050
add rsp, 0x30
pop rbx
ret
Function at 0x14000ec00
Capabilities:
Enumerate disk properties

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x80
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r15d, r15d
lea rcx, [0x1400188f0]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov esi, r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000eded
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0xb0], r14
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x50], 0x20
mov r14d, r15d
mov dword [rsp + 0x44], r15d
mov ebx, r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000edb7
mov esi, 1
mov qword [rsp + 0xa8], rdi
nop
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 0x14000ed29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000ed29
test rbx, rbx
je 0x14000ecda
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 0x14000ed82
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 0x14000ecc1
test rbx, rbx
je 0x14000ed82
lea rdx, str.vbox
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14000eda6
lea rdx, str.vmware
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14000eda6
lea rdx, str.qemu
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14000eda6
lea rdx, str.virtual
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14000eda6
inc r14d
lea r8, [rsp + 0x50]
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14000ec90
mov esi, r15d
test rbx, rbx
je 0x14000edaf
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 0x14000ede9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
cmovne esi, r15d
mov eax, esi
jmp 0x14000edef
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140016050
add rsp, 0x80
pop r15
pop rsi
pop rbp
ret
Function at 0x14000f560
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.1400158b0
test eax, eax
je 0x14000f745
lea r8, str.rootWMI
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x48]
call fcn.140015700
test eax, eax
je 0x14000f743
mov qword [rsp + 0x90], rsi
lea rcx, [0x140021f10]
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 0x14000f65b
test rax, rax
je 0x14000f652
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov r9d, 0x30
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x14000f652
lea rcx, str.ExecQuery
mov r14d, ebx
call fcn.140012ff0
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 0x14000f671
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x98]
test r14d, r14d
mov r14, qword [rsp + 0xa0]
je 0x14000f743
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x30], ebx
test rcx, rcx
je 0x14000f71f
nop
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x50]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 0x30], ebx
je 0x14000f71a
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 0x14000f708
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 0x14000f6a0
jmp 0x14000f71f
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000f71f
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.140016050
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x14000f770
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, [0x14001dc40]
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.140015700
test eax, eax
je 0x14000f95e
mov qword [rsp + 0xa0], rsi
lea rcx, [0x140021f10]
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]
mov r14d, 1
mov rdi, rax
test rsi, rsi
je 0x14000f861
test rax, rax
je 0x14000f858
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov r9d, 0x30
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x14000f858
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140012ff0
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 0x14000f877
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb0]
je 0x14000f95e
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14000f93a
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x50]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
mov ebx, r15d
cmp dword [rbp - 0x18], ebx
je 0x14000f93a
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 0x14000f902
cmp qword [rbp - 0x28], rbx
je 0x14000f921
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 0x14000f8b0
jmp 0x14000f93a
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.140016050
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret