joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4144a0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x005a4f20], ax
jne 0x41450a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x005a4f22]
mov r8d, 0x55
call fcn.00410280
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x414613
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040ee50
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4145ce
cmp byte [0x005a4ef0], 0
je 0x414562
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00414340
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040f4c0
jmp 0x4145ce
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004140a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f4c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4145ce
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x4145ad
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00414658]
call fcn.004104f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004140a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.004104f0
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x005a4f20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.004101c0
lea rcx, [0x005a4f22]
mov edx, 0xaa
mov r8, rax
call fcn.00413e90
lea rcx, [0x005a4ef8]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ef30
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x414fc0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040f020
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410280
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.004105c0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00414e10
test al, al
jne 0x41508a
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410280
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.004105c0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00414e10
test al, al
jne 0x41508a
mov rcx, qword [rbp + 0x28]
call fcn.0040ee50
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ef30
lea rcx, [rbp + 0x70]
call fcn.0040ee50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4150e0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040f020
mov rcx, qword [rbp + 0x90]
call fcn.0040f020
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040ee50
cmp qword [rbp + 0x90], 0
je 0x41529f
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040f550
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x41518b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x4151c4
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4151bd
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410780
jmp 0x4151c4
sub eax, 1
test eax, eax
jne 0x415190
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00414d10
cmp qword [rbp + 0x68], 0
je 0x415202
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00414ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040f4c0
jmp 0x41529e
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.004144a0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00414ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040f4c0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415277
cmp byte [0x005a4ef0], 0
jne 0x415277
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.004144a0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00414ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f4c0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41529e
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00414fc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040f4c0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040ef30
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ef30
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x417890
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x4178b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x4178d4
cmp eax, 1
jae 0x4178d9
cmp ecx, 5
jbe 0x4178e5
mov dword [0x005a0a28], 0x7f
jmp 0x4178ef
mov dword [0x005a0a28], 0x409
add rsp, 0x28
ret
Function at 0x418b70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00418b60
mov ebx, eax
test ebx, ebx
je 0x418bb9
cmp dword [0x0058364c], 0xffffffff
jne 0x418b93
mov ecx, 0xe2
call fcn.0040eb60
mov ecx, ebx
call fcn.00418b40
test rax, rax
jne 0x418bab
mov ecx, 0xe2
call fcn.0040eb60
jmp 0x418bb9
mov ecx, dword [0x0058364c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x418c00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x248]
test rax, rax
je 0x418c3f
cmp dword [0x0058364c], 0xffffffff
je 0x418c3f
mov ecx, dword [0x0058364c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x418c3f
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x0058364c]
xor edx, edx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x418c80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x005a62c8], 0
je 0x418cbb
mov ecx, dword [0x0058364c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x418cce
call fcn.00418b70
mov ecx, dword [0x0058364c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x418cce
mov rax, qword [0x005a62c0]
jmp 0x418cce
mov rax, qword gs:[0x58]
mov ecx, dword [0x0058364c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x437910
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.004376d0
mov ebx, eax
mov rax, qword [0x0059f700]
cmp byte [rax], 0
je 0x437a3f
mov rcx, qword [0x0059f390]
call fcn.0040ac70
call fcn.004094e0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004378d0]
mov r8d, 1
movsxd r9, esi
call fcn.00413150
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00437acc]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x437a82
mov rcx, qword [0x005a6288]
call fcn.00413b30
mov rcx, rax
mov rax, qword [0x0059f318]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004378d0]
call fcn.00413320
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43ace0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040f6b0
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00417870
mov esi, eax
cmp esi, 0x104
jbe 0x43ad3b
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004091a0
mov rdi, rax
jmp 0x43ad3f
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00417870
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x43ad95
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x43ad76
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43ada7
mov rcx, rdi
call fcn.004091d0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x454860
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x454867
nop
ret
Function at 0x45b6b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x45b6d4
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x45b6be
nop
ret

Function at 0x472830
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
cmp byte [rbp + 0x88], 0
je 0x47286e
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.0040c4f0
mov qword [rbp + 0x80], rax
nop
mov rcx, qword [0x0046a770]
mov dl, 1
call fcn.0049f8d0
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rcx, qword [0x00471318]
mov dl, 1
call fcn.004a4670
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x00471318]
mov dl, 1
call fcn.004a4670
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0x34]
mov dword [rax + 0x20], ecx
cmp byte [rbp + 0x88], 0
je 0x47292b
mov rcx, qword [rbp + 0x80]
call fcn.0040c530
mov qword [rbp + 0x80], rax
jmp 0x47292b
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret

Function at 0x5035a0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x5035f0
cmp byte [rcx + 0x1d], 0
jne 0x5035f0
cmp byte [rcx + 0x40], 0
jne 0x5035f0
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50360d
mov rcx, qword [0x004c4488]
mov dl, 1
mov r8, qword [0x0059f670]
call fcn.00437d70
mov rcx, rax
call fcn.0040dfb0
jmp 0x50360d
mov rcx, qword [0x004c4488]
mov dl, 1
mov r8, qword [0x0059f670]
call fcn.00437d70
mov rcx, rax
call fcn.0040dfb0
add rsp, 0x28
ret

Function at 0x5042a0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00503420
jmp 0x5042fb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x504320
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00503420
cmp esi, 1
jne 0x50434a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001694
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
sub rsp, 0x80
mov rax, qword [0x14000c330]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [0x14000cc58], rcx
test rcx, rcx
je 0x140001840
test rdx, rdx
je 0x140001840
lea rbx, [0x1400163d0]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
xorps xmm0, xmm0
movdqu xmmword [0x1400163c0], xmm0
and qword [0x1400163a8], 0
mov dword [rsp + 0x40], 0x28
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rbp, [0x140016380]
lea r8, [0x1400163a0]
lea rcx, [0x14000ff90]
mov edx, 0x110000
mov r9, rbp
mov dword [0x1400163a0], 0x30
mov dword [0x1400163b8], 0x40
mov qword [0x1400163b0], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140001845
mov rcx, qword [0x14000ff90]
and dword [rsp + 0x60], 0
xor eax, eax
lea r9d, [rax + 0x18]
lea r8, [rsp + 0x60]
mov rdx, rbp
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140001822
cmp qword [rsp + 0x68], 0
je 0x140001822
mov edx, dword [rsp + 0x68]
mov ecx, 1
mov r8d, 0x62737973
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x14000ffa0], rax
test rax, rax
je 0x140001822
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call fcn.140001550
and qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x38], 0
mov rcx, qword [0x14000ff90]
mov dword [rsp + 0x30], eax
mov rax, qword [0x14000ffa0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140001822
mov eax, dword [rsp + 0x68]
mov dword [0x140016370], eax
mov rcx, qword [0x14000ff90]
test rcx, rcx
je 0x14000183c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [0x14000ff90], 0
mov eax, ebx
jmp 0x140001845
mov eax, 0xc000000d
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400092a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1400018d4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x60], 0
mov rdi, rdx
mov esi, ecx
mov edx, 0x30
xor ecx, ecx
mov bl, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rax
mov qword [0x140016328], rax
test rax, rax
jne 0x140001913
xor bl, bl
jmp 0x1400019bd
imul eax, esi, 0xffffd8f0
xor edx, edx
movsxd rcx, eax
mov qword [r8], rcx
mov rax, qword [0x140016328]
xor r8d, r8d
mov qword [rax + 8], rdi
mov rcx, qword [0x140016328]
add rcx, 0x18
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
lea rax, [0x140004360]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x14000199f
mov rax, qword [0x140016328]
mov rcx, qword [rsp + 0x60]
and qword [rsp + 0x28], 0
add rax, 0x10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f0003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x1400019bd
mov rcx, qword [0x140016328]
xor bl, bl
test rcx, rcx
je 0x1400019bd
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x140016328], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400019cd
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rsi, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400019e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx eax, word [rcx + 6]
movzx edx, word [rcx + 2]
xor ebx, ebx
rol ax, 8
mov rdi, rcx
movzx esi, ax
mov eax, 0x8000
test ax, dx
je 0x140001aca
mov al, dl
and al, 7
cmp al, 3
jne 0x140001a20
xor eax, eax
jmp 0x140001ad8
mov eax, 0x400
lea rcx, [0x140009440]
test ax, dx
jne 0x140001a38
lea rcx, [0x140009460]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rdi + 0xc]
mov r9d, 1
jmp 0x140001a4c
add rcx, r9
cmp byte [rcx], bl
jne 0x140001a49
mov r10d, 5
mov edx, ebx
add rcx, r10
test esi, esi
jle 0x140001ad6
add rcx, 2
movzx r8d, word [rcx]
movzx eax, r8w
rol ax, 8
cmp ax, r9w
je 0x140001a9b
rol r8w, 8
cmp r8w, r10w
jne 0x140001a92
movzx eax, word [rcx + 8]
add rcx, 0xa
rol ax, 8
movzx eax, ax
add rcx, rax
add edx, r9d
cmp edx, esi
jl 0x140001a5f
jmp 0x140001ad6
mov ebx, dword [rcx + 0xa]
mov eax, ebx
mov ecx, ebx
movzx edx, bl
shr eax, 0x10
shr ecx, 0x18
movzx r9d, al
mov eax, ebx
mov dword [rsp + 0x20], ecx
shr eax, 8
lea rcx, [0x140009480]
movzx r8d, al
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001ad6
lea rcx, [0x1400094a0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400024ec
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14000c330]
xor rax, rsp
mov qword [rbp + 0x770], rax
xor r12d, r12d
xor eax, eax
mov r15, rcx
mov edi, r8d
mov esi, edx
mov r13d, 0x3ff
lea rcx, [rbp + 0x371]
mov r8d, r13d
xor edx, edx
mov r14d, r12d
mov word [rsp + 0x48], r12w
mov qword [rsp + 0x4a], rax
mov word [rsp + 0x52], ax
mov dword [rsp + 0x40], r12d
mov byte [rbp + 0x370], r12b
call fcn.140001550
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x5a], rax
mov dword [rsp + 0x62], eax
mov word [rsp + 0x66], ax
lea eax, [r12 + 2]
mov word [rsp + 0x58], r12w
mov edx, eax
mov ecx, eax
call fcn.1400079bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400025c7
lea rcx, [0x1400094c0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400092a0
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x880
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rbp + 0x370]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov r8, r15
mov dword [rsp + 0x58], 0x35000002
mov dword [rsp + 0x5c], esi
call fcn.1400038d0
xor r9d, r9d
lea rdx, [rbp + 0x370]
mov esi, eax
mov rcx, rbx
lea rax, [rsp + 0x58]
mov r8d, esi
test edi, edi
je 0x14000261f
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call fcn.140007910
jmp 0x140002631
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call fcn.140007860
cmp eax, esi
je 0x140002646
lea rcx, [0x140009500]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400026cf
lea rcx, [rsp + 0x71]
mov r8, r13
xor edx, edx
mov byte [rsp + 0x70], r12b
call fcn.140001550
xor r9d, r9d
mov dword [rsp + 0x40], 0x10
lea rax, [rsp + 0x40]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, rbx
test edi, edi
je 0x140002693
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140007784
jmp 0x1400026a7
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.1400076f8
test eax, eax
jg 0x1400026b1
test edi, edi
jne 0x1400026cf
jmp 0x140002646
movsxd rcx, eax
cmp rcx, 0x400
jae 0x140002706
mov byte [rsp + rcx + 0x70], r12b
lea rcx, [rsp + 0x70]
call fcn.1400019e0
mov r14d, eax
mov rcx, rbx
neg rcx
cmp byte [rcx + 5], r12b
je 0x1400026f6
cmp dword [rcx], 1
jne 0x1400026f6
mov byte [rcx + 7], 1
mov rcx, qword [rcx + 0x20]
mov edx, 4
mov rcx, qword [rcx + 8]
call fcn.140007eec
mov rcx, rbx
call fcn.140004c1c
mov eax, r14d
jmp 0x14000259d
call fcn.14000924c
int3
Function at 0x140002f40
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x40], di
mov qword [r11 - 0x16], rax
lea rcx, [r11 - 0x18]
lea rdx, [0x140009970]
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0x22]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140002fac
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x40], di
mov qword [r11 - 0x16], rax
lea rcx, [r11 - 0x18]
lea rdx, [0x140009aa0]
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0x22]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140003c94
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
lea rcx, [rbp - 9]
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp + 7]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x1f], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x37], xmm0
lea r8, [rbp + 0x17]
lea rcx, [rbp - 0x11]
mov edx, 0xf003f
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x17], 0x30
mov dword [rbp + 0x2f], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140003d40
mov eax, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 7]
mov dword [rsp + 0x28], eax
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret