joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014d0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x130
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x120], rax
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x88], xmm0
lea ecx, [rax + 0xb]
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [r11 - 0x80], xmm0
movups xmmword [r11 - 0x70], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.1400018d0
xorps xmm0, xmm0
lea r8, str.__repair
mov edx, 0x20
movaps xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0xe0]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm0
mov rbx, rax
movaps xmmword [rsp + 0x110], xmm0
call fcn.140002910
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, rbx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne dil
test eax, eax
je 0x1400015ef
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbx
lea rdx, str.ScanRepair:___ws__process_has_been_started.
mov ecx, 0xe
call fcn.14002a430
jmp 0x140001614
call fcn.1400023f0
lea r9, str.__repair
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, str.ScanRepair:_Failed_to_create_a_process_for_the_.exe___ws__with_argument___ws____ws_.
mov ecx, 0xe
call fcn.14002a3c0
movzx eax, dil
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x140002120
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov ecx, 9
call fcn.1400018d0
lea r9, [0x1400ddbf8]
mov qword [rsp + 0x20], rax
mov edx, 0x105
lea rcx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
call fcn.1400029a0
test eax, eax
lea rdx, [0x1400dda98]
mov r9, rdi
lea rcx, [rsp + 0x30]
setg bl
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
setne al
and bl, al
jne 0x14000219e
mov rcx, rdi
call fcn.140002250
jmp 0x1400021a1
movzx eax, bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400021d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov ecx, 9
mov rdi, rdx
call fcn.1400018d0
lea r9, str._s_S
mov qword [rsp + 0x28], rbx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call fcn.1400029a0
test eax, eax
setg cl
test eax, eax
jg 0x140002235
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140002250
mov rbx, qword [rsp + 0x40]
movzx eax, cl
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400022c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x8000080
mov rbx, rcx
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
jne 0x14000235d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
lea rdi, [0x140125090]
mov dword [rsp + 0x28], 0x200
mov r8d, eax
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, rdi
lea rdx, str.Impossible_to_get_the_size_of_the_file___ws____ws_
mov r8, rbx
lea ecx, [rsi + 6]
call fcn.14002a3c0
xor eax, eax
jmp 0x14000237f
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
cmovne edi, dword [rsp + 0x40]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140002610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x30
movzx eax, byte [r8]
mov rsi, rcx
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rbp
mov rbp, rdx
mov qword [rsp + 0x50], rdi
mov rdi, r8
test al, al
je 0x1400026b7
mov qword [rsp + 0x28], r14
lea r14, str.___b_t_f
mov qword [rsp + 0x20], r15
lea r15, str.__btf
cmp rbx, rbp
jae 0x1400026ad
movsx edx, al
mov rcx, r14
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000267f
mov byte [rbx + rsi], 0x5c
lea rcx, [rbp - 3]
inc rbx
cmp rbx, rcx
ja 0x1400026ad
sub rax, r14
movzx eax, byte [rax + r15]
jmp 0x14000269c
movzx eax, byte [rdi]
cmp al, 0xd
jne 0x140002698
cmp byte [rdi + 1], 0xa
jne 0x1400026a2
mov byte [rbx + rsi], 0xa
inc rbx
inc rdi
jmp 0x1400026a2
cmp al, 0x1f
jbe 0x1400026a2
mov byte [rbx + rsi], al
inc rbx
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140002650
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp - 1]
mov rbp, qword [rsp + 0x48]
cmp rbx, rdx
cmovb edx, ebx
mov rbx, qword [rsp + 0x40]
movsxd rax, edx
mov byte [rax + rsi], 0
test edx, edx
jle 0x140002707
movsxd rax, edx
xor cl, cl
sub rax, 1
mov rdx, rax
js 0x140002707
nop dword [rax]
cmp byte [rax + rsi], 0x5c
jne 0x1400026ff
xor cl, 1
sub rax, 1
jns 0x1400026f0
test cl, cl
je 0x140002707
mov byte [rdx + rsi], 0
add rsp, 0x30
pop rsi
ret

Function at 0x140002820
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002838
test al, 0x10
jne 0x14000285b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002863
mov r8, rbx
lea rdx, str.The_folder___ws__has_been_correctly_created.
mov ecx, 6
call fcn.14002a430
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140002bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
lea rax, [rsp + 0x30]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov r9d, 0x20019
xor r8d, r8d
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002c76
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
movzx ebx, dil
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140002c7a
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140002ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, r9
mov byte [r9], 0
mov rdi, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002cfa
mov r9d, eax
lea rdx, str.Impossible_to_open_the_registry_key_in___s___Error_code__u_
mov r8, rsi
lea ecx, [rbx + 6]
call fcn.14002a3c0
jmp 0x140002d6b
mov eax, dword [rsp + 0xa0]
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x3c], eax
mov rdx, rdi
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x38]
test eax, eax
jne 0x140002d45
cmp ecx, dword [rsp + 0xa8]
jne 0x140002d45
mov ebx, dword [rsp + 0x3c]
jmp 0x140002d60
mov dword [rsp + 0x20], ecx
lea rdx, str.Impossible_to_retrieve_the_value_of___s___Error_code__u___key_type__u_
mov ecx, 6
mov r9d, eax
mov r8, rdi
call fcn.14002a3c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d51a0
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400064d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rbp - 8], rax
movdqa xmm0, xmmword [str.HARDWAREDESCRIPTIONSystemBIOSSOFTWAREMicrosoTIONSystemCentftWindows_NTCu]
lea r8, str.BaseBoardManufacturer
movdqa xmm1, xmmword [0x1400df8e0]
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov byte [rbp - 0x10], 0
movdqu xmmword [rbp - 0x30], xmm0
mov rbx, rcx
movdqu xmmword [rbp - 0x20], xmm1
call fcn.140006950
mov r9d, 1
lea r8, str.BaseBoardProduct
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140006950
mov r9d, 2
lea r8, str.BaseBoardVersion
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140006950
mov r9d, 4
lea r8, str.BIOSVersion
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140006950
mov r9d, 3
lea r8, str.BIOSReleaseDate
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140006950
movdqa xmm0, xmmword [str.HARDWAREDESCRIPTIONSystemBIOSSOFTWAREMicrosoTIONSystemCentftWindows_NTCu]
lea r8, str.Update_Revision
movdqa xmm1, xmmword [0x1400df900]
lea rdx, [rbp - 0x60]
mov r9d, 9
mov dword [rbp - 0x40], 0x506c6172
mov rcx, rbx
mov dword [rbp - 0x3c], 0x65636f72
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x38], 0x726f7373
movdqu xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x34], 0x305c
mov byte [rbp - 0x32], 0
call fcn.140006210
mov r9d, 5
lea r8, str.Previous_Update_Revision
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140006210
mov r9d, 6
lea r8, str.Identifier
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140006950
mov r9d, 0xa
lea r8, str.Platform_Specific_Field_1
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1400063c0
mov r9d, 7
lea r8, str.FeatureSet
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1400063c0
mov r9d, 8
lea r8, str.MHz
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1400063c0
mov rcx, rbx
call fcn.140006a50
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
Function at 0x140007aa0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rdi, [rdx + 0x20]
mov r15, rcx
mov rcx, rdi
mov rbp, r9
mov r14d, r8d
mov rbx, rdx
call fcn.140002120
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
jne 0x140007b18
lea rdx, str.Cant_open_the_file._Abort_dump_generation.
lea ecx, [rax + 7]
call fcn.14002a3c0
xor al, al
jmp 0x140007b6d
mov r9d, dword [rbx + 0x22c]
mov r8d, r14d
mov rdx, rsi
mov qword [rsp + 0x20], rbp
mov rcx, r15
call fcn.140008070
mov rcx, rsi
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 7
test bl, bl
jne 0x140007b5e
lea rdx, str.Failed_to_generate_the_dump._Deleting_the_temporary_file.
call fcn.14002a3c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140007b6a
lea rdx, str.End_of_the_dump_generation.
call fcn.14002a430
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140007e30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x30]
mov edx, 0x104
lea rdi, str.DBGHELP.DLL
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
lea r9, str._s_s
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400029a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x140127590], rax
setne bl
test rax, rax
jne 0x140007ee6
call fcn.1400023f0
mov r9, rax
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_load_DLL_library___ws____ws_
mov ecx, 7
call fcn.14002a3c0
mov rax, qword [0x140127590]
test bl, bl
jne 0x140007f44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x140127590], rax
setne bl
test rax, rax
jne 0x140007f28
call fcn.1400023f0
mov r9, rax
lea rdx, str.Failed_to_load_DLL_library___ws____ws_
mov r8, rdi
mov ecx, 7
call fcn.14002a3c0
mov rax, qword [0x140127590]
test bl, bl
jne 0x140007f44
mov r8, rdi
lea rdx, str.Impossible_to_load_the_required_dll_library__ws.
mov ecx, 7
call fcn.14002a3c0
xor al, al
jmp 0x140007f8a
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140127598], rax
mov ecx, 7
test rax, rax
jne 0x140007f7c
lea r8, str.MiniDumpWriteDump
lea rdx, str.Impossible_to_get_the_address_of_the___s__function.
call fcn.14002a3c0
xor al, al
jmp 0x140007f8a
lea rdx, str.Initialization_succeed.
call fcn.14002a430
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d51a0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140008070
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0xe0]
mov rbp, rcx
mov ecx, 2
mov ebx, r9d
mov r15d, r8d
mov r14, rdx
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x1400080d1
call fcn.1400023f0
mov r8, rax
lea rdx, str.Failed_to_impersonate_the_current_thread.___ws_
mov ecx, 7
call fcn.14002a3c0
xor al, al
jmp 0x14000823c
xorps xmm0, xmm0
mov qword [rsp + 0x40], 0xffffffffffffffff
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, str.SeDebugPrivilege
movups xmmword [rsp + 0x68], xmm0
call fcn.140001f70
mov ecx, 7
test al, al
jne 0x14000811a
lea rdx, str.Failed_to_get_the_privilege_SE_DEBUG_NAME._Dump_generation_aborted.
call fcn.14002a3c0
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor al, al
jmp 0x14000823c
mov qword [rsp + 0x88], rsi
lea rdx, str.Successfully_enhanced_security_privileges_in_order_to_generate_the_dump.
mov qword [rsp + 0x80], r12
call fcn.14002a430
xor r12d, r12d
mov qword [rsp + 0x48], rdi
cmp ebx, 1
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
sete sil
movups xmmword [rsp + 0x58], xmm0
jne 0x14000819c
lea ecx, [r12 + 6]
call fcn.140001880
lea r9d, [r12 + 0x10]
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
setne sil
test eax, eax
jne 0x14000819c
call fcn.1400023f0
mov r8, rax
lea rdx, str.Failed_to_read_the_engine_memory_to_retrieve__MINIDUMP_EXCEPTION_INFORMATION_structure.___ws_
lea ecx, [r12 + 7]
call fcn.14002a650
lea rdx, str.Generating_dump...
mov ecx, 7
call fcn.14002a430
mov rdi, qword [0x140127598]
lea rbx, [rsp + 0x58]
test sil, sil
mov dword [rsp + 0x64], 1
mov rcx, rbp
cmove rbx, r12
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r9d, r15d
mov r8, r14
mov edx, eax
mov rcx, rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call rdi
mov r12, qword [rsp + 0x80]
test eax, eax
mov rsi, qword [rsp + 0x88]
setne bl
test eax, eax
jne 0x140008224
call fcn.1400023f0
mov r8, rax
lea rdx, str.Error_when_generating_the_dump:___ws_
mov ecx, 7
call fcn.14002a3c0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140002560
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d51a0
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140008260
Capabilities:
Create process on windows
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x4d0
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
movsxd rdi, ecx
movzx r14d, dl
mov ecx, 0x7530
call fcn.1400085d0
imul rbp, rdi, 0x220
lea rax, [section..data]
add rbp, rax
lea rsi, str.dxdiag.txt
cmp word [rbp], 0
jne 0x1400082e2
test edi, edi
je 0x1400082ce
cmp edi, 1
je 0x1400082c5
mov r8, rsi
jmp 0x1400082d5
lea r8, str.dxdiag_oncrash.txt
jmp 0x1400082d5
lea r8, str.dxdiag_onboot.txt
mov edx, 0x104
mov rcx, rbp
call fcn.1400021d0
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
xor eax, eax
lea rbx, [rbp + 0x208]
movups xmmword [rbx], xmm0
xor edx, edx
mov qword [rbx + 0x10], rax
mov r8d, 0x400
mov dword [rsp + 0xb4], eax
lea rcx, [rsp + 0xc0]
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400dfec4]
mov qword [rsp + 0x28], rbp
test r14b, r14b
lea rax, str._dontskip
lea r9, str.dxdiag.exe__s__whql:off__t___s_
mov edx, 0x200
cmovne rax, rcx
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.1400029a0
lea r8, [rsp + 0xc0]
mov ecx, 3
lea rdx, str.Start_DXDiag_generation_with_command_line:___ws_
call fcn.14002a430
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xc0]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test eax, eax
je 0x140008413
mov dword [0x140119440], edi
test edi, edi
je 0x1400083f6
cmp edi, 1
jne 0x1400083fd
lea rsi, str.dxdiag_oncrash.txt
jmp 0x1400083fd
lea rsi, str.dxdiag_onboot.txt
mov r8, rsi
lea rdx, str.Generating_asynchronously___s_
mov ecx, 3
call fcn.14002a430
jmp 0x140008451
call fcn.1400023f0
test edi, edi
je 0x14000842a
cmp edi, 1
jne 0x140008431
lea rsi, str.dxdiag_oncrash.txt
jmp 0x140008431
lea rsi, str.dxdiag_onboot.txt
mov r9, rax
lea rdx, str.Process_creation_failed__generation_aborted_for___s____ws_
mov r8, rsi
mov ecx, 3
call fcn.14002a3c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, bl
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1400d51a0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140008480
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ecx, ecx
call fcn.1400085d0
xor edi, edi
lea rbx, [section..data]
lea rsi, [0x140119440]
mov rcx, rbx
call fcn.140002100
test al, al
je 0x1400084cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, rbx
lea rdx, str.DXDiag_file_deleted____ws__
mov ecx, 3
call fcn.14002a430
mov word [rbx], di
add rbx, 0x220
cmp rbx, rsi
jne 0x1400084a6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400085d0
Capabilities:
Delete file
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
movsxd rbx, dword [0x140119440]
mov esi, ecx
cmp ebx, 2
je 0x1400086fe
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x58], rdi
movaps xmmword [rsp + 0x30], xmm6
call fcn.140002df0
mov edx, dword [0x140119440]
movups xmm6, xmmword [rax]
test edx, edx
je 0x140008629
cmp edx, 1
je 0x140008620
lea r8, str.dxdiag.txt
jmp 0x140008630
lea r8, str.dxdiag_oncrash.txt
jmp 0x140008630
lea r8, str.dxdiag_onboot.txt
lea rdx, str.Waiting_for___s__to_finish_its_generation
mov ecx, 3
call fcn.14002a430
mov eax, 0x10624dd3
lea rbp, [section..data]
mul esi
imul rbx, rbx, 0x220
mov edi, edx
mov edx, esi
shr edi, 6
mov rcx, qword [rbx + rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400086a2
mov r8d, edi
lea rdx, str.The_timeout___u_seconds__has_been_reached._Terminate_the_DXDiag_process.
mov ecx, 3
call fcn.14002a3c0
mov rcx, qword [rbx + rbp + 0x208]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rbx + rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400086c9
lea rcx, [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140002dc0
mov r9d, edi
lea rdx, str.The_generation_has_finished_after__u_seconds.___max_allowed:__u_seconds__
mov r8, rax
mov ecx, 3
call fcn.14002a430
mov rcx, qword [rbx + rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov dword [0x140119440], 2
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x140008710
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14011e878]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp word [0x1401275a0], 0
jne 0x140008817
lea r8, str.procstats.csv
mov edx, 0x104
lea rcx, [0x1401275a0]
call fcn.1400021d0
lea rdx, str.Generating_the_file...
mov ecx, 9
call fcn.14002a430
lea r8, [0x1400e0218]
mov qword [rsp + 0x20], 0
lea rdx, [0x1401275a0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
je 0x1400087aa
lea r8, [0x1401275a0]
mov ecx, 9
lea rdx, str.Impossible_to_open_the_file___ws_._Procstats_generation_aborted.
call fcn.14002a3c0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d51a0
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x20]
lea rdx, str.process_name_page_fault_count_peak_working_set_size_working_set_size_quota_peak_paged_pool_usage_quota_paged_pool_usage_quota_peak_non_paged_pool_usage_quota_non_paged_pool_usage_page_file_usage_peak_page_file_usage_n
mov qword [rsp + 0x50], rbx
call fcn.1400079c0
xorps xmm0, xmm0
mov qword [rsp + 0x28], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, str.SeDebugPrivilege
movups xmmword [rsp + 0x30], xmm0
call fcn.140001f70
mov rcx, qword [rsp + 0x20]
movzx ebx, al
call fcn.140008860
test bl, bl
mov rbx, qword [rsp + 0x50]
je 0x14000880c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140002560
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d51a0
add rsp, 0x58
ret