joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019fda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14019fe2a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14019fe20
cmp r11, r10
ja 0x14019fea6
cmp r10, rdx
ja 0x14019feb8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14019fe22
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14019fe00
jmp 0x14019fe87
ja 0x14019fe2a
mov r11, r10
cmp rax, r8
jne 0x14019fdc7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14019fe8b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14019fe60
mov r8, r10
sub ecx, r9d
jns 0x14019fe7e
jmp 0x14019fe8d
cmp r10, rdx
je 0x14019fe9a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14019fe8d
xor al, 1
cmp r8, rdx
jne 0x14019fe40
jmp 0x14019fe8d
xor eax, eax
jmp 0x14019fe8d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1401ac180
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1401ac6a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401ac690
int3

Function at 0x1401a2754
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a279e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a279e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a279e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a279e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a279e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401a27a0
xor al, al
add rsp, 0x28
ret
Function at 0x1401aa150
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, [0x140202c4d]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1401aa1b1
mov rdi, rax
lea rdx, [0x140202c6e]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401aa1b1
mov rsi, rax
lea rdx, [0x140202c7c]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401aa1b1
mov rdi, rax
xor ebx, ebx
jmp 0x1401aa237
lea rcx, [0x140202c08]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1401aa2ab
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401aa2ab
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401aa2ab
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401aa2ab
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x1401aa2ab
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x140297081]
mov ecx, 0x18
mov edx, 8
call fcn.140017460
test rax, rax
je 0x1401aa2b0
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1402970d0], rcx
je 0x1401aa29f
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x1401aa288
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140017470
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a9e20
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.1401abfc0
ud2
Function at 0x1401ab040
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401933c0
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1401ab0c9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401ab0fc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401ab110
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1401ab130
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140017470
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401ab130
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140017470
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14001cb90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400593a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebp, ebp
lea r9, [r11 - 0x28]
mov rdi, rcx
mov qword [r11 - 0x20], rbp
mov rcx, qword [rcx + 0x80]
lea edx, [rbp + 2]
mov r8d, edx
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov edx, eax
mov esi, eax
mov eax, 0xc0000000
and edx, eax
cmp edx, eax
je 0x14001cd5b
mov edx, dword [rdi + 0x1244]
mov ecx, edx
shr ecx, 8
and cl, 1
je 0x14001cc02
shr edx, 5
test dl, 1
je 0x14001cd7f
or rbx, 0xffffffffffffffff
test cl, cl
je 0x14001cc13
mov rcx, qword [rdi + 0x1610]
jmp 0x14001cc29
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.NVIDIA_GeForce]
inc rax
cmp word [rcx + rax*2], bp
jne 0x14001cc38
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x140059048]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x140059070]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], bp
jne 0x14001cc76
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x140059060]
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, [0x140059078]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [str.NVIDIA_WDDM_3D]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], bp
jne 0x14001cce1
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x140059090]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x1400590b8]
inc rbx
cmp word [rcx + rbx*2], bp
jne 0x14001cd1c
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x1400590a8]
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.1400380c0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov r8d, 0x686
lea rdx, [0x140047d80]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
Function at 0x140025668
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400593a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rax, cr8
test al, al
jne 0x14002577c
cmp byte [rcx + 0x3f20], al
jne 0x140025796
xor edx, edx
mov byte [rsp + 0x20], al
lea r9, [0x140025330]
lea r8d, [rdx + 4]
call fcn.14001b114
xor r8d, r8d
lea rcx, [rbx + 0x3f28]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [0x140025390]
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 0x14002572a
and qword [rsp + 0x28], 0
lea rcx, [rbx + 0x3f40]
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 0x140025769
xor r8d, r8d
lea rcx, [0x14004b510]
xor edx, edx
mov al, 0x64
cmp al, 0x2f
je 0x140025740
cmp al, 0x5c
jne 0x140025744
lea r8d, [rdx + 1]
inc edx
mov eax, edx
mov al, byte [rdx + rcx]
test al, al
jne 0x140025738
mov edx, r8d
mov r8d, 0x107
add rdx, rcx
lea rcx, [0x140047e80]
call fcn.140047034
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400380c0
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf8
lea rdx, [0x14004b510]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
mov r8d, 0xf9
lea rdx, [0x14004b510]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
Function at 0x140026320
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 [0x1400593a8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, r9
mov r12, r8
mov r15, rdx
test r9, r9
je 0x140026448
mov rax, cr8
test al, al
jne 0x140026462
xor eax, eax
lea rsi, [rsp + 0x30]
mov qword [rbp - 0x79], rax
lea r14, str.Flags
mov qword [rbp - 0x71], rax
xor edi, edi
mov dword [rbp - 0x75], 4
mov dword [rbp - 0x71], 4
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 0x14002642a
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 0x14002642a
mov eax, dword [rbp - 0x6d]
inc edi
mov dword [rsi], eax
add r14, 8
add rsi, 4
cmp edi, 5
jb 0x140026389
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.1400380c0
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, 0x3154
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
mov r8d, 0x3156
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
Function at 0x14002ea7c
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 [0x1400593a8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, 1
mov rbx, rdx
mov edi, r12d
mov rsi, rcx
mov rax, cr8
test al, al
jne 0x14002ec94
test rcx, rcx
je 0x14002ecae
test rdx, rdx
je 0x14002ecc8
mov rcx, qword [rcx + 0x80]
lea r14d, [r12 + 1]
mov edx, r14d
lea r9, [rsp + 0x30]
mov r8d, r12d
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
test eax, eax
jne 0x14002ec71
and dword [rbx + 0xc0], eax
lea r9, [rsp + 0x38]
and dword [rsp + 0x74], eax
lea rdx, [rsp + 0x50]
and dword [rsp + 0x48], eax
mov r8d, r14d
movups xmm0, xmmword [0x140059370]
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, [r12 + 3]
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 0x14002eb89
mov eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
call fcn.140046564
mov ecx, dword [rsp + 0x70]
mov rdi, rax
mov dword [rbx + 0xc0], ecx
mov rcx, rsi
call fcn.14000441c
test al, al
cmove edi, r12d
cmp edi, r12d
cmovb edi, r12d
xor r14d, r14d
mov dword [rbx + 0xc4], edi
movups xmm0, xmmword [0x14004d310]
lea rcx, [rbp - 0x58]
xor edx, edx
movsd xmm1, qword [0x14004d320]
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
lea r8d, [rdx + 0x60]
call fcn.140047840
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, r14d
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
test eax, eax
jne 0x14002ec71
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jne 0x14002ec71
mov rdx, qword [rsp + 0x30]
lea rcx, [r14 + r14*2]
lea r9, [rbx + rcx*8]
mov rcx, rsi
lea r8, [rsp + 0x50]
call fcn.140026320
add r14d, r12d
cmp r14d, 8
jb 0x14002eba7
cmp byte [rsi + 0x12ed], 0
je 0x14002ec66
cmp edi, r12d
jne 0x14002ec66
and dword [rbx + 0x10], 0
and dword [rbx + 0x14], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400380c0
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x2ff0
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
mov r8d, 0x2ff1
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
mov r8d, 0x2ff2
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
Function at 0x140031ac0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400593a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
and qword [rsp + 0x30], 0
mov rbx, rcx
mov dword [rsp + 0x38], edx
mov rax, cr8
test al, al
jne 0x140031b64
call fcn.1400255ec
test al, al
je 0x140031b7e
mov rcx, qword [rbx + 0x80]
lea r9, [rsp + 0x30]
mov edx, 2
mov r8d, edx
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x140031b51
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 4
lea rdx, [0x140059370]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400380c0
add rsp, 0x50
pop rbx
ret
mov r8d, 0x30bc
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
mov r8d, 0x30bd
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
Function at 0x140037604
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400593a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, r8
mov dword [r11 - 0x68], r9d
mov rdi, rcx
mov rax, cr8
test al, al
jne 0x1400376af
xor eax, eax
lea rcx, [r11 - 0x60]
mov qword [r11 - 0x60], rax
mov eax, 0x30
mov word [rsp + 0x3a], ax
lea rax, [r11 - 0x50]
mov qword [r11 - 0x58], rax
call fcn.1400279e8
mov esi, 0xc0000000
and eax, esi
cmp eax, esi
je 0x140037697
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140027b54
and eax, esi
cmp eax, esi
je 0x140037697
mov r9d, 4
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400380c0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
mov r8d, 0x319b
lea rdx, [0x14004b5d0]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3

Function at 0x140038120
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400593a8]
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 0x140038177
cmp dword [rsp + 0x24], 6
ja 0x140038171
jne 0x140038177
cmp dword [rsp + 0x28], 2
jb 0x140038177
mov dword [rbx], 0x230047
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400380c0
add rsp, 0x150
pop rbx
ret

Function at 0x140038220
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.140038190
mov rdi, rax
test rax, rax
jne 0x14003825a
mov ebx, 0xc0000017
jmp 0x140038322
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 0x1400382a9
cmp ebx, r15d
jne 0x140038322
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 0x14003831b
test dil, dil
jne 0x140038314
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 0x1400382c8
jmp 0x140038322
call fcn.140038340
jmp 0x140038322
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 0x140038340
Capabilities:
Unload driver

Disassembly:
push rbx
sub rsp, 0x30
call fcn.140038190
mov rbx, rax
test rax, rax
je 0x140038389
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

Function at 0x140044b10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r14b, byte [rcx + 0x20]
xor r15b, r15b
mov r13d, r9d
mov r9d, r8d
mov ebx, edx
mov rbp, rcx
mov edi, edx
cmp r14b, 0x20
jne 0x140044b46
mov esi, 3
jmp 0x140044b4d
movzx esi, r14b
shr esi, 3
movzx eax, r14b
mov r8d, ebx
imul eax, ebx
imul r8d, r13d
imul eax, r9d
cdq
and edx, 7
add eax, edx
mov edx, ebx
sar eax, 3
movsxd r12, eax
mov eax, dword [rcx + 0x18]
imul eax, ebx
imul edx, r9d
lea r9, [rsp + 0xa8]
imul eax, r13d
cdqe
add r12, rax
lea rax, [rsp + 0x98]
add r12, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140045908
mov r8d, dword [rbp + 0x24]
mov r11, rax
mov qword [rsp + 0x90], rax
lea eax, [r8 - 1]
cdq
idiv ebx
cmp dword [rsp + 0xa0], eax
jne 0x140044bd1
lea ecx, [rbx - 1]
add ecx, r8d
mov eax, ecx
cdq
idiv ebx
mov edi, edx
sub edi, ecx
add edi, r8d
add edi, ebx
mov r8d, dword [rbp + 0x28]
lea eax, [r8 - 1]
cdq
idiv ebx
cmp r13d, eax
jne 0x140044bf3
lea ecx, [rbx - 1]
add ecx, r8d
mov eax, ecx
cdq
idiv ebx
sub edx, ecx
add edx, r8d
add ebx, edx
test ebx, ebx
jle 0x140044d00
mov eax, ebx
mov qword [rsp + 0x30], rax
test r15b, r15b
jne 0x140044c6f
mov rdx, r12
mov r9, r11
test edi, edi
jle 0x140044cda
movsxd rax, dword [rsp + 0x98]
movzx r10d, r14b
shr r10, 3
mov qword [rsp + 0x38], rax
mov r13d, edi
test rsi, rsi
je 0x140044c56
mov r11, r9
mov r8, rdx
sub r11, rdx
mov rbx, rsi
mov cl, byte [r11 + r8]
xor cl, byte [r8]
inc r8
or r15b, cl
sub rbx, 1
jne 0x140044c3e
mov rax, qword [rsp + 0x38]
add rdx, r10
add r9, rax
sub r13, 1
jne 0x140044c2d
mov r11, qword [rsp + 0x90]
test r15b, r15b
je 0x140044cda
mov r10, r12
mov rcx, r11
test edi, edi
jle 0x140044cda
movsxd r13, dword [rsp + 0x98]
mov ebx, edi
xor r11d, r11d
test rsi, rsi
je 0x140044ca9
mov r8, r10
mov rdx, rcx
sub r8, rcx
mov r9, rsi
mov r11, rsi
mov al, byte [r8 + rdx]
mov byte [rdx], al
inc rdx
sub r9, 1
jne 0x140044c9a
cmp byte [rbp + 0x2d], 0
je 0x140044cba
cmp byte [rbp + 0x20], 0x20
jne 0x140044cba
mov byte [r11 + rcx], 0
movzx r14d, byte [rbp + 0x20]
add rcx, r13
mov eax, r14d
shr rax, 3
add r10, rax
sub rbx, 1
jne 0x140044c83
mov r11, qword [rsp + 0x90]
movsxd rax, dword [rbp + 0x18]
add r12, rax
movsxd rax, dword [rsp + 0xa8]
add r11, rax
sub qword [rsp + 0x30], 1
mov qword [rsp + 0x90], r11
jne 0x140044c02
test r15b, r15b
sete al
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140046e78
Capabilities:
Reference the vmware io port

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140046e99
mov eax, 0x5658
mov dword [rcx], 0x564d5868
mov word [rcx + 0x18], ax
add rsp, 0x28
jmp 0x140046f60
mov r8d, 0x123
lea rdx, [0x140050a60]
lea rcx, [0x140047c80]
call fcn.1400388e4
int3
push rbx
push rsi
push rdi
mov rax, rcx
push rax
mov rdi, qword [rax + 0x28]
mov rsi, qword [rax + 0x20]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rax + 8]
mov rax, qword [rax]
in eax, dx
xchg qword [rsp], rax
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 8], rbx
pop qword [rax]
pop rdi
pop rsi
pop rbx
ret

Function at 0x140068000
Capabilities:
Check os version
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1400593a8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
test rcx, rcx
je 0x14006812f
test rdx, rdx
je 0x14006812f
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x14006806f
cmp dword [rsp + 0x54], 6
ja 0x14006805b
jne 0x14006806f
cmp dword [rsp + 0x58], 2
jb 0x14006806f
mov dword [0x14005ba60], 0x200
mov dword [0x14005ba64], 0x40000000
call fcn.14001d100
call fcn.14001da74
call fcn.1400470f8
lea rdx, [0x1400681f0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x14005bc28]
mov r9d, 0x23
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
js 0x1400680ef
lea rax, [0x140065c50]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x80], rax
lea rax, [0x140065ce0]
mov qword [rbx + 0xe8], rax
lea rax, [0x140065e10]
mov qword [rbx + 0x68], rax
jmp 0x140068134
xor edx, edx
lea r8, [0x140068220]
xor ecx, ecx
mov al, 0x64
cmp al, 0x2f
je 0x140068104
cmp al, 0x5c
jne 0x140068107
lea edx, [rcx + 1]
inc ecx
mov eax, ecx
mov al, byte [rcx + r8]
test al, al
jne 0x1400680fc
add rdx, r8
lea rcx, [0x140068290]
mov r8d, 0xf0
call fcn.140047034
call fcn.1400380e0
jmp 0x140068134
mov edi, 0xc000000d
mov eax, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400380c0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret