joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f1bac
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x34], 0x104
mov dword [rsp + 0x30], 0x10
mov word [rbp], si
call sub.msvcrt.dll_memset
xor eax, eax
lea r8, [rsp + 0x34]
lea rdx, [rbp]
xor r9d, r9d
mov rcx, rbx
mov word [rbp - 0x20], si
mov qword [rbp - 0x1e], rax
mov qword [rbp - 0x16], rax
mov qword [rbp - 0xe], rax
mov dword [rbp - 6], eax
mov word [rbp - 2], ax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.CLUSAPI.dll_GetClusterResourceState]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp ebx, 2
je 0x1400f1ca9
lea rax, [0x1400356c0]
lea r8d, [rsi + 0x78]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [0x14003a3d0]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [0x1400356a8]
mov dword [rsp + 0x50], 0xc69
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 0xff
mov dword [rbp - 0x28], 0x1000000
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
lea r8, [0x14003a360]
jmp 0x1400f1d8e
test eax, eax
je 0x1400f1d34
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
mov r8d, 0xf
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400f1d34
lea rax, [0x1400356c0]
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [0x14003a3d0]
lea r8d, [rdx + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [0x1400356a8]
mov dword [rsp + 0x50], 0xc72
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 0xff
mov dword [rbp - 0x28], 0x1000000
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
lea r8, [0x14003a4b0]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400510b0
mov al, 1
jmp 0x1400f1d9d
lea rax, [0x1400356c0]
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [0x14003a3d0]
lea r8d, [rdx + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [0x1400356a8]
mov dword [rsp + 0x50], 0xc6e
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 0xff
mov dword [rbp - 0x28], 0x1000000
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
lea r8, [0x14003a440]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400510b0
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14005dc70
mov rbx, qword [rsp + 0x350]
add rsp, 0x320
pop rdi
pop rsi
pop rbp
ret
Function at 0x140103ce0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rdi, rcx
call qword [sym.imp.VssTrace.DLL_Ordinal_11]
cmp eax, dword [rdi + 4]
je 0x140103e3a
mov rdx, qword [rdi + 0x28]
mov ecx, dword [rdi + 0x24]
lea r8, [rsp + 0x50]
xor ebx, ebx
mov dword [rdi + 4], eax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.VssTrace.DLL_Ordinal_8]
test eax, eax
je 0x140103d42
mov eax, dword [rsp + 0x50]
jmp 0x140103d58
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140103d52
call fcn.140100f5c
jmp 0x140103d58
call qword [sym.imp.VssTrace.DLL_Ordinal_6]
mov dword [rdi], eax
mov eax, dword [rdi + 4]
cmp dword [0x140154020], eax
je 0x140103e3a
lea rcx, [rbp + 2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp], bx
call sub.msvcrt.dll_memset
lea rdx, [rbp]
call fcn.140100a38
lea rax, [0x140004350]
xor edx, edx
mov qword [rsp + 0x58], rax
lea rax, [0x1400045a0]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x60], rax
lea rax, [0x140004280]
lea r8d, [rdx + 0x78]
mov dword [rsp + 0x70], 0x250
mov dword [rsp + 0x74], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x78], 0xff
mov qword [rsp + 0x68], rax
mov dword [rbp - 8], 0x1000000
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x48], ecx
mov ecx, dword [0x140154020]
lea r8, [0x140004460]
mov dword [rsp + 0x40], ecx
lea rcx, [rbp]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, [0x140004480]
mov r9d, 0x78
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14004d000
mov eax, dword [rdi + 4]
mov dword [0x140154020], eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140106510
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
lea rax, [0x1400052e0]
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x20], rax
lea rax, [0x14003d528]
xor esi, esi
mov qword [rsp + 0x28], rax
lea rax, [0x140005298]
lea rcx, [rsp + 0x48]
lea r8d, [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x38], 0x38b
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x40], 0xff
mov dword [rbp - 0x40], 0x1000000
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
xor r8d, r8d
call fcn.140052e50
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1401065a9
cmp qword [rdi + 8], rsi
sete dl
jmp 0x1401065bd
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1401065bd
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_EqualSid]
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.140074628
lea rcx, [rbp - 0x30]
mov bl, al
call fcn.140050f50
lea r11, [rsp + 0x140]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rbp
ret
Function at 0x140113b80
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rbp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
lea r14, [0x140005f30]
mov qword [rsp + 0x40], r14
lea r15, [0x140040ce0]
mov qword [rsp + 0x48], r15
lea r12, [0x140005f88]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x2d1
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov edi, 0xff
mov dword [rsp + 0x60], edi
xor esi, esi
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.140052e50
nop
cmp byte [rbx + 0x28], sil
je 0x140113d7b
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x140113d7b
mov eax, dword [rbx + 0x10]
mov dword [rbp + 0x140], eax
lea rax, [rbp + 0x148]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x140]
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
je 0x140113d66
xor edx, edx
lea r8d, [rsi + 0x78]
cmp eax, 0x103
je 0x140113d06
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x2ea
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x20]
test edi, edi
jle 0x140113ccc
movzx edi, di
or edi, 0x80070000
mov eax, dword [rbp + 0x140]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, [0x140040d40]
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.1401027cc
int3
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r12
mov dword [rbp], 0x2ee
mov dword [rbp + 4], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp + 8], 0xff
mov dword [rbp + 0x88], 0x1000000
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll_memset
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x20], eax
lea r9, [0x140040e30]
mov r8d, 0x8000ffff
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0xa0]
call fcn.1401027cc
int3
mov rbx, qword [rbx + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.140050f50
mov rax, rbx
jmp 0x140113dcf
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r12
mov dword [rbp], 0x2d5
mov dword [rbp + 4], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp + 8], edi
mov dword [rbp + 0x88], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll_memset
lea r9, [0x140040d90]
mov r8d, 0x8000ffff
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0xa0]
call fcn.140101d5c
nop
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140115d38
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r12, [0x140005f30]
mov qword [rsp + 0x40], r12
lea r13, [0x140005fd0]
mov qword [rsp + 0x48], r13
lea rax, [0x140005f88]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x16c
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140052e50
nop
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140115e88
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
lea rax, [0x140005f88]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x17f
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x18]
test ebx, ebx
jle 0x140115e54
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x38], 0x48
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
lea r9, [0x140006050]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1401027cc
nop
lea rcx, [rbp - 0x10]
call fcn.140050f50
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x14011a46c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword [rbp + 0x68]
xor r12d, r12d
mov r14, rcx
mov word [rdx], r12w
lea r15d, [r12 + 1]
mov rsi, r9
mov ecx, r15d
mov rbx, rdx
mov dword [rbp + 0x48], r12d
mov dword [rbp + 0x60], r12d
mov dword [rbp + 0x50], r12d
mov dword [rbp - 0x10], r12d
mov dword [rbp + 0x58], r12d
mov word [r9], r12w
mov dword [rdi], r12d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetErrorMode]
mov dword [rsp + 0x38], 0x10
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, 0x100
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
lea r9, [rbp - 0x10]
mov ebx, eax
lea rax, [rbp + 0x58]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x60]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDiskFreeSpaceW]
mov ecx, dword [rbp + 0x50]
imul ecx, dword [rbp + 0x60]
mov dword [rdi], ecx
test ebx, ebx
je 0x14011a520
test eax, eax
jne 0x14011a523
mov r15d, r12d
mov eax, r15d
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401206bc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
lea rcx, [0x1400458e8]
lea ebp, [rbx + 1]
call fcn.140129990
mov esi, ebx
mov dword [rsp + 0x58], ebx
test r14, r14
je 0x1401208af
lea r9, [rsp + 0x58]
lea ecx, [rbx + 0x62]
xor r8d, r8d
xor edx, edx
mov word [r14], bx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140120765
cmp eax, 0xc0000023
je 0x140120765
cmp eax, 0x80000005
je 0x140120765
cmp eax, 0xc0000004
je 0x140120765
mov ecx, eax
mov ebp, ebx
call fcn.140129a44
mov ebx, eax
mov rcx, qword [0x140154018]
lea rdx, [0x140154018]
cmp rcx, rdx
je 0x1401208f3
test byte [rcx + 0x1c], 8
je 0x1401208f3
lea edx, [rsi + 0x18]
lea rax, [0x140045970]
mov r9d, edi
jmp 0x140120826
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x1401207b0
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdx, [0x140154018]
cmp rcx, rdx
je 0x1401208f3
test byte [rcx + 0x1c], 8
je 0x1401208f3
lea edx, [rax + 0x19]
lea rax, [0x1400459e8]
jmp 0x1401208de
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140120840
mov ecx, eax
mov ebp, ebx
call fcn.140129a44
mov ebx, eax
mov rax, qword [0x140154018]
lea rdx, [0x140154018]
cmp rax, rdx
je 0x1401208f3
test byte [rax + 0x1c], 8
je 0x1401208f3
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, 0x1a
mov r9d, eax
lea rax, [0x140045980]
mov rcx, qword [0x140154018]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x1401208f3
movzx r9d, word [rsi]
mov r8, qword [rsi + 8]
mov edi, 0x104
mov edx, edi
mov rcx, r14
shr r9, 1
call fcn.14007ed70
test eax, eax
jns 0x1401208f3
mov ecx, eax
mov ebp, ebx
call fcn.140129a10
mov ebx, eax
mov rax, qword [0x140154018]
lea rdx, [0x140154018]
cmp rax, rdx
je 0x1401208f3
test byte [rax + 0x1c], 8
je 0x1401208f3
movzx r9d, word [rsi]
mov r8, qword [rsi + 8]
mov edx, edi
shr r9, 1
mov rcx, r14
call fcn.14007ed70
mov edx, 0x1b
mov r9d, eax
lea rax, [0x140045a30]
jmp 0x14012081f
mov r9d, 0x57
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdx, [0x140154018]
cmp rcx, rdx
je 0x1401208f3
test byte [rcx + 0x1c], 8
je 0x1401208f3
lea edx, [r9 - 0x41]
lea rax, [0x1400458d8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
call fcn.14011834c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, [0x1400458e8]
call fcn.1401299d0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140125da0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x20]
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140125dda
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005dc70
add rsp, 0x50
pop rbx
ret
Function at 0x14012978c
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov r14d, ecx
xor ebx, ebx
lea rcx, [0x140047830]
movzx ebp, dx
lea edi, [rbx + 1]
call fcn.140129990
lea r8d, [rbx + 0x48]
lea rcx, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x50], rbx
call sub.msvcrt.dll_memset
lea rdx, [0x14003c6f0]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
jne 0x140129845
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rdx, qword [0x140154018]
lea rcx, [0x140154018]
cmp rdx, rcx
je 0x140129966
test byte [rdx + 0x1c], 8
je 0x140129966
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
lea edx, [rsi + 0xd]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140043d40]
lea r8, [0x1400064f0]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x140129966
mov r10d, dword [rsp + 0xe0]
cmp r10d, 0xa
jle 0x1401298a9
mov r9d, 0x7a
mov edi, ebx
mov ebx, r9d
mov rax, qword [0x140154018]
lea rcx, [0x140154018]
cmp rax, rcx
je 0x14012995d
test byte [rax + 0x1c], 8
je 0x14012995d
lea rcx, [0x140044e78]
mov dword [rsp + 0x28], r10d
lea edx, [r9 - 0x6c]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 0x10]
lea r8, [0x1400064f0]
call fcn.14011b7f8
jmp 0x14012995d
lea rcx, [rsp + 0xe8]
test r10d, r10d
jle 0x1401298d5
add rcx, 0xfffffffffffffff8
lea rdx, [rsp + 0x50]
mov r8, r10
lea rcx, [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
lea rdx, [rdx + 8]
sub r8, rdi
jne 0x1401298c2
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], r10w
mov r9d, r14d
movzx edx, bp
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
test eax, eax
jne 0x14012995d
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154018]
lea rcx, [0x140154018]
cmp rax, rcx
je 0x14012995d
test byte [rax + 0x1c], 8
je 0x14012995d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
lea r8, [0x1400064f0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140043d40]
mov edx, 0xf
mov qword [rsp + 0x20], rax
call fcn.14011834c
mov rcx, rsi
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
lea rcx, [0x140047830]
call fcn.1401299d0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, edi
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012c898
Capabilities:
Check if file exists
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rcx, [0x140048178]
call fcn.140129990
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rcx, [0x140048050]
xor edx, edx
call fcn.14012f4e8
test eax, eax
jne 0x14012c91d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 2
je 0x14012c977
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012c97c
test byte [rcx + 0x1c], 8
je 0x14012c97c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
lea edx, [rbx + 0x20]
mov r9d, eax
lea rax, [0x140043890]
jmp 0x14012c960
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140048158]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov edi, eax
test eax, 0xfffffffd
je 0x14012c977
xor ebx, ebx
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012c97c
test byte [rcx + 0x1c], 8
je 0x14012c97c
lea edx, [rbx + 0x21]
lea rax, [0x1400481c8]
mov r9d, edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400481e8]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x14012c97c
xor edi, edi
lea ebx, [rdi + 1]
cmp qword [rsp + 0x48], 0
je 0x14012c98f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rcx, [0x140048178]
call fcn.1401299d0
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14012cd78
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
mov rsi, rcx
lea edi, [rbx + 1]
test rcx, rcx
jne 0x14012cde2
lea r9d, [rcx + 0x57]
mov edi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012cefc
test byte [rcx + 0x1c], 8
je 0x14012cefc
lea edx, [rsi + 0xe]
lea rax, [0x1400481f8]
jmp 0x14012ced8
lea rcx, [rsp + 0xa0]
mov edx, 0x105
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x14012ce34
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012cefc
test byte [rcx + 0x1c], 8
je 0x14012cefc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0xf
jmp 0x14012cec7
cmp eax, 0x104
jbe 0x14012ce74
mov r9d, 0x7a
mov edi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012cefc
test byte [rcx + 0x1c], 8
je 0x14012cefc
lea edx, [r9 - 0x6a]
lea rax, [0x140044e78]
jmp 0x14012ced8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
mov r8d, 0x32
mov word [rsp + 0xa6], bx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14012ceef
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012cefc
test byte [rcx + 0x1c], 8
je 0x14012cefc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x11
mov rcx, qword [0x140154018]
mov r9d, eax
lea rax, [0x140043890]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140048598]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x14012cefc
lea rcx, [rsp + 0x30]
call fcn.140129d40
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret