joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039f90
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14003a08a
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f090], rax
test rax, rax
je 0x14003a08a
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14003a08a
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f098], rax
test rax, rax
je 0x14003a08a
lea rcx, str.COMBASE.DLL
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14003a085
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f088], rax
test rax, rax
je 0x14003a085
lea rdx, str.WindowsCreateStringReference
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f080], rax
test rax, rax
je 0x14003a085
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f0a8], rax
test rax, rax
je 0x14003a085
lea rdx, str.WindowsDeleteString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f0a0], rax
mov rbx, qword [rsp + 0x20]
cmp qword [0x14005f090], 0
je 0x14003a0c3
cmp qword [0x14005f098], 0
je 0x14003a0c3
cmp qword [0x14005f088], 0
je 0x14003a0c3
cmp qword [0x14005f080], 0
je 0x14003a0c3
cmp qword [0x14005f0a0], 0
je 0x14003a0c3
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14003fc08
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140011f90
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240a5]
call fcn.1400113c0
lea rcx, [0x14001b0d0]
call fcn.1400111cc
cmp dword [0x14001e1c0], 1
je 0x14001210d
lea rcx, [0x14001afe8]
call fcn.1400111cc
lea rdx, [0x14001ea00]
lea rcx, str._50s
call fcn.1400110a0
lea rdx, [0x14001b0e4]
lea rcx, str.userinfo.txt
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012013
lea rcx, [0x14001b0a8]
call fcn.1400111cc
jmp 0x14001210d
mov dword [rbp + 0x24], 0
lea r9, [0x14001eab2]
lea r8, [0x14001ea80]
lea rdx, str._s__s
mov rcx, qword [rbp + 8]
call fcn.14001116d
cmp eax, 0xffffffff
je 0x1400120ec
lea rdx, [0x14001ea80]
lea rcx, [0x14001ea00]
call fcn.140011429
test eax, eax
jne 0x1400120e7
xor eax, eax
cmp eax, 1
je 0x1400120e7
mov dword [rbp + 0x24], 1
lea rcx, [0x14001b008]
call fcn.1400111cc
lea rdx, [0x14001ea32]
lea rcx, str._50s
call fcn.1400110a0
lea rdx, [0x14001eab2]
lea rcx, [0x14001ea32]
call fcn.140011429
test eax, eax
jne 0x1400120d6
lea rcx, [0x14001b0f0]
call fcn.1400111cc
mov dword [0x14001e1c0], 1
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001afb0]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x1400120e7
lea rcx, [0x14001b108]
call fcn.1400111cc
jmp 0x14001205c
jmp 0x14001201a
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
cmp dword [rbp + 0x24], 0
jne 0x140012108
lea rcx, [0x14001b128]
call fcn.1400111cc
jmp 0x140011fb7
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011230
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112b2
Capabilities:
Execute command

Disassembly:
jmp 0x140012180
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1400240a5]
call fcn.1400113c0
xor eax, eax
cmp eax, 1
je 0x1400122af
lea rcx, [0x14001af68]
call fcn.1400111cc
lea rcx, [0x14001af88]
call fcn.1400111cc
lea rdx, [rbp + 4]
lea rcx, [0x14001afa8]
call fcn.1400110a0
lea rcx, [0x14001afac]
call fcn.1400111cc
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001afb0]
call qword [sym.imp.ucrtbased.dll_system]
mov eax, dword [rbp + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 1
je 0x140012231
cmp dword [rbp + 0xd4], 2
je 0x14001224d
jmp 0x140012286
call fcn.140011190
cmp dword [0x14001e1c0], 1
jne 0x140012249
call fcn.140011343
call fcn.140011127
xor eax, eax
jmp 0x1400122af
call fcn.1400110d2
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001afb0]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.140011190
cmp dword [0x14001e1c0], 1
jne 0x140012282
call fcn.140011343
call fcn.140011127
xor eax, eax
jmp 0x1400122af
lea rcx, [0x14001afb8]
call fcn.1400111cc
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001afb0]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x1400121bd
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001af40]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400111e5
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400112bc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014eb0
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ec3
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014eed
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f01
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f13
xor al, al
jmp 0x140014f31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f2f
xor al, al
jmp 0x140014f31
mov al, 1
add rsp, 0x38
ret
Function at 0x140001760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140001817
movsxd r13, dword [rax + 0x3c]
mov r12d, dword [r13 + rax + 0x88]
mov r15d, dword [r12 + rax + 0x1c]
mov r10d, dword [r12 + rax + 0x20]
add r15, rax
mov r11d, dword [r12 + rax + 0x24]
add r10, rax
add r11, rax
test esi, 0xffff0000
jne 0x1400017ce
movzx eax, si
sub eax, dword [r12 + rbx + 0x10]
mov eax, dword [r15 + rax*4]
add rax, rbx
jmp 0x140001819
mov edi, dword [r12 + rax + 0x18]
xor r14d, r14d
mov r9d, r14d
test edi, edi
je 0x140001817
nop dword [rax]
mov eax, dword [r10]
mov r8, rsi
movzx ebp, word [r11]
add rax, rbx
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001803
inc rax
test ecx, ecx
jne 0x1400017f0
test edx, edx
je 0x140001836
inc r9d
add r11, 2
add r10, 4
cmp r9d, edi
jb 0x1400017e0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, dword [r15 + rbp*4]
cmp r12, rcx
ja 0x1400018ee
mov eax, dword [r13 + rbx + 0x8c]
add eax, r12d
cmp rcx, rax
jae 0x1400018ee
lea rbp, [rcx + rbx]
mov rcx, rbp
lea rdx, [0x140003398]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
lea rsi, [rax + 1]
mov rax, 0xffffffffffffffff
sub rsi, rbp
mov rcx, rsi
add rcx, 4
lea edx, [rax + 2]
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140001817
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, word [0x14000339c]
mov word [rbx + rsi], cx
movzx ecx, byte [0x14000339e]
mov byte [rbx + rsi + 2], cl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400018dd
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.140001760
mov r14, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, r14
jmp 0x140001819
lea rax, [rcx + rbx]
jmp 0x140001819
Function at 0x140001e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movsxd r9, dword [rdx + 0x38]
mov rdi, rdx
mov r10d, dword [rdx + 0x90]
mov rbp, rcx
mov rbx, qword [rdx + 0x30]
mov al, r9b
mov r14d, dword [rdx + 0x4c]
and al, 0x3f
mov r15d, dword [rdx + 0x88]
btr rbx, 0x10
mov r12d, dword [rdx + 0x8c]
mov r13d, dword [rdx + 0x74]
mov rdx, r9
shr rdx, 6
movzx ecx, al
mov dword [rsp + 0xa0], r10d
mov rax, qword [rbp + rdx*8 + 0x1118]
mov edx, 0x10000
bt rax, rcx
jae 0x140001ea7
cmp dword [rdi + 0x1c], 1
jne 0x140001ea7
or rbx, rdx
mov eax, dword [rdi + 0x3c]
lea rsi, [rdi + 0x40]
mov r8d, dword [rdi + 0xb8]
test rdx, rbx
jne 0x140001f1f
mov dword [rsp + 0x60], r10d
xor edx, edx
mov dword [rsp + 0x58], r13d
mov rcx, rbp
mov qword [rsp + 0x50], rsi
and dword [rsp + 0x48], 0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140002d60
mov rdx, rdi
mov rcx, rbp
call fcn.1400017e0
test al, al
je 0x140001f5c
mov r8d, dword [rdi + 0xc0]
bts rbx, 0x10
mov eax, dword [rdi + 0x3c]
mov r9d, 2
mov r10d, dword [rsp + 0xa0]
mov dword [rsp + 0x60], r10d
mov dl, 1
mov dword [rsp + 0x58], r13d
mov rcx, rbp
mov qword [rsp + 0x50], rsi
and dword [rsp + 0x48], 0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140002d60
test al, al
je 0x140001f7a
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x14002ff80]
call fcn.140003378
mov r9d, dword [rdi + 0xb8]
lea rcx, [0x14002ffe0]
mov rdx, rax
mov r8d, 0x694
call fcn.140024df4
int3
Function at 0x140012608
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 2
lea r9, [rsp + 0x30]
mov rdi, rcx
mov r8d, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov edx, eax
mov esi, eax
mov eax, 0xc0000000
and edx, eax
cmp edx, eax
je 0x1400127bb
mov ecx, dword [rdi + 0x1244]
or rbx, 0xffffffffffffffff
shr ecx, 8
test cl, 1
je 0x140012671
mov rcx, qword [rdi + 0x1610]
jmp 0x140012687
mov eax, dword [rdi + 0x1608]
mov ecx, dword [rdi + 0x1600]
add rcx, rax
cmp rcx, rax
cmovb rcx, rbx
mov qword [rsp + 0x38], rcx
mov rax, rbx
mov rcx, qword [str.VMware_Virtual_SVGA_3D_Graphics_Adapter]
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x140012698
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003f048]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003f070]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x1400126d6
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003f060]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 8
lea rdx, [0x14003f078]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [str.VMware_SVGA_3D]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140012741
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003f090]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003f0b8]
inc rbx
cmp word [rcx + rbx*2], di
jne 0x14001277c
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003f0a8]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400245d0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140014898
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0xb0]
xor edi, edi
mov rax, qword [rsp + 0xa8]
mov r13d, r8d
mov r15, qword [rsp + 0xa0]
mov esi, edx
mov r14, qword [rbx]
test rax, rax
je 0x1400148e8
mov r12d, dword [rax + 0x58]
jmp 0x1400148ec
mov r12d, dword [r15 + 0x58]
cmp r12d, 8
jae 0x140014a3f
lea r8, [r14 + 4]
mov dword [r14], 0x24
mov rdx, r9
call fcn.140008e10
movsxd rcx, dword [r15 + 0xc]
cmp ecx, 0x29
ja 0x140014922
movabs rdx, 0x20bd7f00000
bt rdx, rcx
jb 0x14001492b
cmp ecx, 0x71
jne 0x140014a3f
lea rdx, [rsp + 0x20]
call fcn.140003194
mov eax, dword [r15 + 0x20]
and dword [r14 + 0x10], edi
mov dword [r14 + 0xc], eax
mov eax, dword [rsp + 0x20]
mov byte [r14 + 0x10], al
shr eax, 8
mov byte [r14 + 0x11], al
mov rax, rsi
mov ecx, dword [rbx + 8]
shl rax, 5
add rax, 0x14
cmp rax, rcx
jbe 0x140014973
lea rsi, [rcx - 0x14]
mov edi, 0xc01e0001
shr rsi, 5
add dword [rbx + 0x34], esi
mov ebp, esi
xor r8d, r8d
shl ebp, 5
add ebp, 0x14
test esi, esi
je 0x140014a0a
and dword [rsp + 0x28], r8d
and dword [rsp + 0x2c], r8d
add r14, 0x1c
mov eax, dword [r15 + 0x10]
mov rcx, qword [rbx + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [r15 + 0x14]
mov dword [rsp + 0x34], eax
test rcx, rcx
je 0x1400149ba
lea edx, [r8 + r13]
shl rdx, 4
add rdx, rcx
jmp 0x1400149bf
lea rdx, [rsp + 0x28]
mov dword [r14 - 8], 0x25
inc r8d
mov ecx, dword [rbx + 0x4c]
sub ecx, dword [rbx + 0x3c]
add ecx, dword [rdx]
mov dword [r14 - 4], ecx
mov ecx, dword [rbx + 0x50]
sub ecx, dword [rbx + 0x40]
add ecx, dword [rdx + 4]
mov dword [r14], ecx
mov eax, dword [rdx]
mov dword [r14 + 4], eax
mov eax, dword [rdx + 4]
mov dword [r14 + 8], eax
mov eax, dword [rdx + 8]
mov dword [r14 + 0xc], eax
mov eax, dword [rdx + 0xc]
mov dword [r14 + 0x10], eax
mov dword [r14 + 0x14], r12d
add r14, 0x20
cmp r8d, esi
jb 0x140014994
mov rcx, qword [rbx + 0x28]
xor edx, edx
lea r8d, [rdx + 0x30]
call fcn.14002fac0
add qword [rbx + 0x28], 0x18
mov rax, qword [rbx + 0x28]
mov dword [rax], 1
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x10], 4
add qword [rbx + 0x28], 0x18
mov eax, ebp
add qword [rbx], rax
jmp 0x140014a44
mov edi, 0xc000000d
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400245d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018b68
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
mov byte [rsp + 0x20], 0
lea r9, [0x140018820]
mov rbx, rcx
lea r8d, [rdx + 4]
call fcn.14001185c
xor r8d, r8d
lea rcx, [rbx + 0x3c10]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [0x1400188b0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140018c13
and qword [rsp + 0x28], 0
lea rcx, [rbx + 0x3c28]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x140018c15
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400245d0
add rsp, 0x50
pop rbx
ret

Function at 0x14001941c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor eax, eax
lea rsi, [rsp + 0x30]
mov qword [rbp - 0x79], rax
lea r14, str.Flags
mov qword [rbp - 0x71], rax
mov rbx, r9
mov dword [rbp - 0x75], 4
mov r12, r8
mov dword [rbp - 0x71], 4
mov r15, rdx
xor edi, edi
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea rcx, [rsp + 0x48]
mov rdx, r12
mov word [rsp + 0x4a], ax
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov rdx, qword [r14]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
jne 0x140019511
lea rax, [rsp + 0x58]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x79]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x20], 0x10
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140019511
mov eax, dword [rbp - 0x6d]
inc edi
mov dword [rsi], eax
add r14, 8
add rsi, 4
cmp edi, 5
jb 0x140019470
mov eax, dword [rsp + 0x30]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x14], eax
mov byte [rbx], 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400245d0
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001e960
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, 1
lea r9, [rsp + 0x30]
mov rdi, rdx
mov r14, rcx
mov rcx, qword [rcx + 0x80]
mov r8d, r12d
mov ebx, r12d
lea esi, [r12 + 1]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
test eax, eax
jne 0x14001eb33
and dword [rdi + 0xc0], eax
lea r9, [rsp + 0x38]
and dword [rsp + 0x74], eax
lea rdx, [rsp + 0x50]
and dword [rsp + 0x48], eax
mov r8d, esi
movups xmm0, xmmword [0x14003f370]
mov rcx, qword [rsp + 0x30]
xor eax, eax
and qword [rsp + 0x6c], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea eax, [rsi + 2]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x60], 8
mov dword [rsp + 0x68], r12d
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x14001ea4c
mov eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
call fcn.14002ea2c
mov ecx, dword [rsp + 0x70]
mov rbx, rax
mov dword [rdi + 0xc0], ecx
test dword [r14 + 0x1244], 0x114
cmove ebx, r12d
cmp ebx, r12d
cmovb ebx, r12d
xor esi, esi
mov dword [rdi + 0xc4], ebx
movups xmm0, xmmword [0x140034580]
lea rcx, [rbp - 0x58]
xor edx, edx
movsd xmm1, qword [0x140034590]
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
lea r8d, [rdx + 0x60]
call fcn.14002fac0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x14
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
mov word [rsp + 0x3a], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea r8, [rsp + 0x38]
xor edx, edx
mov word [rsp + 0x52], ax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
test eax, eax
jne 0x14001eb33
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jne 0x14001eb33
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + rsi*2]
lea r9, [rdi + rcx*8]
mov rcx, r14
lea r8, [rsp + 0x50]
call fcn.14001941c
add esi, r12d
cmp esi, 8
jb 0x14001ea6a
cmp byte [r14 + 0x12ed], 0
je 0x14001eb28
cmp ebx, r12d
jne 0x14001eb28
and dword [rdi + 0x10], 0
and dword [rdi + 0x14], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400245d0
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140024630
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14003f3a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rcx], 0x23003f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
nop dword [rax + rax]
test eax, eax
js 0x140024687
cmp dword [rsp + 0x24], 6
ja 0x140024681
jne 0x140024687
cmp dword [rsp + 0x28], 2
jb 0x140024687
mov dword [rbx], 0x230047
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400245d0
add rsp, 0x150
pop rbx
ret

Function at 0x140024730
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov r14, rcx
mov esi, 0xa
call fcn.1400246a0
mov rdi, rax
test rax, rax
jne 0x14002476a
mov ebx, 0xc0000017
jmp 0x140024832
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwLoadDriver]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
mov eax, 0x80000000
mov r15d, 0xc000010e
lea ecx, [rbx + rax]
test eax, ecx
jne 0x1400247b9
cmp ebx, r15d
jne 0x140024832
cmp ebx, r15d
lea rdx, str.DeviceDxgKrnl
lea rcx, [rsp + 0x30]
setne dil
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r14
mov edx, 0xc0000000
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14002482b
test dil, dil
jne 0x140024824
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], 0xffffffffffff3cb0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
nop dword [rax + rax]
add esi, 0xffffffff
jne 0x1400247d8
jmp 0x140024832
call fcn.140024850
jmp 0x140024832
test dil, dil
cmove ebx, r15d
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140024850
Capabilities:
Unload driver

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400246a0
mov rbx, rax
test rax, rax
je 0x140024899
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwUnloadDriver]
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret