joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4de4c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4deec2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc503108]
test eax, eax
je 0x2fc4def5a
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc503110]
mov qword [rbp - 8], rax
jmp 0x2fc4def3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4def32
cmp qword [rbp - 0x10], 0
je 0x2fc4def32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4deef8
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4def5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4df060
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4df088
mov eax, 0
jmp 0x2fc4df0d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4df0b1
mov eax, 0
jmp 0x2fc4df0d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4df0d1
mov eax, 0
jmp 0x2fc4df0d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4df0dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4df15a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4df151
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4df151
mov rax, qword [rbp - 8]
jmp 0x2fc4df16f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4df124
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd980
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4de382
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc502108]
test eax, eax
je 0x2fc4de41a
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc502110]
mov qword [rbp - 8], rax
jmp 0x2fc4de3fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4de3f2
cmp qword [rbp - 0x10], 0
je 0x2fc4de3f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4de3b8
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4de41b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4de520
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4de548
mov eax, 0
jmp 0x2fc4de596
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4de571
mov eax, 0
jmp 0x2fc4de596
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4de591
mov eax, 0
jmp 0x2fc4de596
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4de59c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4de61a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4de611
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4de611
mov rax, qword [rbp - 8]
jmp 0x2fc4de62f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4de5e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x128dc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
and dword [r11 + 8], 0
mov dword [rsp + 0x48], 0x30
and qword [r11 - 0x38], 0
mov dword [rsp + 0x60], 0x240
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rcx
mov edi, r8d
mov qword [r11 - 0x58], rax
and dword [rsp + 0x28], 0
and qword [r11 - 0x68], 0
mov rbx, r9
mov rsi, rdx
lea rcx, [r11 - 0x48]
lea r8, [r11 - 0x40]
xor r9d, r9d
mov edx, 0x20006
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x1298a
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
mov r9d, edi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x129a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
and qword [rax - 0x58], 0
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
mov rbp, r8
mov qword [rax - 0x50], rcx
mov r14, rdx
lea r8, [rax - 0x60]
lea rcx, [rax - 0x68]
mov edx, 0x20019
mov r13, r9
mov dword [rax - 0x60], 0x30
mov dword [rax - 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x12ac3
mov rsi, qword [rsp + 0xc0]
xor ecx, ecx
mov ebx, dword [rsi]
add ebx, 0x10
mov edx, ebx
mov r12d, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
jne 0x12a30
mov ebx, 0xc000009a
jmp 0x12ab6
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00024250
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov r9, rdi
mov r8d, 2
mov rdx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x12a9f
cmp eax, 0x80000005
je 0x12a9f
test eax, eax
js 0x12aab
test rbp, rbp
je 0x12a84
mov ecx, dword [rdi + 4]
mov dword [rbp], ecx
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, r13
cmp dword [rsi], eax
cmovb eax, dword [rsi]
mov r8d, eax
mov dword [rsi], eax
call fcn.00022cb0
jmp 0x12aab
mov eax, dword [rsp + 0xa0]
add eax, 0xfffffff4
mov dword [rsi], eax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14cf8
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
movabs rax, 0xfffff78000000014
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rcx, [rsp + 0x30]
call fcn.00014a88
movzx eax, byte [rsp + 0x34]
movzx r11d, byte [rsp + 0x35]
add r11d, eax
movzx eax, byte [rsp + 0x33]
lea rcx, [0x0002e140]
add r11d, eax
movzx eax, byte [rsp + 0x32]
add eax, dword [rsp + 0x38]
add eax, r11d
mov dword [rsp + 0x38], eax
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x14d7a
cmp dword [0x0002e144], 6
jb 0x14d7a
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
jmp 0x14da8
mov eax, dword [rsp + 0x38]
mov ecx, 0x3039
test eax, eax
jne 0x14d95
mov eax, dword [0x0002aca8]
imul eax, eax, 0x41c64e6d
add eax, ecx
imul eax, eax, 0x3e39b193
sub ecx, eax
shr ecx, 0x10
and ecx, 0x7fff
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14f00
Capabilities:
Create device object

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
and qword [rax + 0x10], 0
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
mov rdi, rcx
lea rdx, [0x00024380]
lea rcx, [rax - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 0x80
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov ebx, eax
test eax, eax
jns 0x14f6d
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14f66
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x1504b
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
xor r8d, r8d
mov r9d, dword [rcx + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x34]
lea edx, [r8 + 0x28]
mov rcx, rdi
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x14fb8
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x15049
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov rsi, rax
test rax, rax
jne 0x14fe5
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [rsp + 0x78], rsi
jmp 0x14fa5
mov rax, qword [rsp + 0x78]
xor edx, edx
mov rbx, qword [rax + 0x40]
lea r8d, [rdx + 0x28]
mov rcx, rbx
call fcn.00024250
mov dword [rbx], 0x28
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rax + 0x30]
and ecx, 0x14
or dword [rdx + 0x30], ecx
mov rax, qword [rsp + 0x78]
mov qword [0x0002ace8], rax
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x15f44
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
je 0x15f7c
mov r10d, edx
movzx edx, byte [r9]
mov eax, r8d
mov ecx, r8d
xor rdx, rax
shr ecx, 8
inc r9
movzx eax, dl
lea rdx, [0x0002d0e0]
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
sub r10, 1
jne 0x15f52
not r8d
mov eax, r8d
ret
Function at 0x1a548
Capabilities:
Print debug messages

Disassembly:
test r8, r8
je 0x1a7bf
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x00028100]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, r9
mov r12, r8
movzx r13d, dx
mov edi, ecx
test r9, r9
je 0x1a7a2
lea rax, [0x0002d4e0]
test rax, rax
je 0x1a7a2
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
je 0x1a7a2
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1a5cb
mov rcx, rsi
jmp 0x1a79a
mov edx, 1
lea r15d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r15d
call fcn.0001160c
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1a5fa
lea rcx, [0x00024690]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1a78c
mov word [rsp + 0x42], r13w
or r13d, 0xffffffff
mov word [rsp + 0x40], r15w
cmp edi, r13d
jne 0x1a61d
mov rcx, r12
call fcn.0001ce24
mov dword [rsp + 0x44], eax
jmp 0x1a621
mov dword [rsp + 0x44], edi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.000111cc
test eax, eax
jns 0x1a66a
cmp edi, r13d
je 0x1a65a
mov rcx, r12
call fcn.0001ce24
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov dword [rsp + 0x44], eax
call fcn.000111cc
test eax, eax
jns 0x1a66a
lea rcx, [0x000246b0]
jmp 0x1a6f6
lea r8, [0x0002d4e0]
xor eax, eax
or r13, 0xffffffffffffffff
mov qword [rsp + 0x30], r8
mov rdi, r8
mov rcx, r13
repne scasb al, byte [rdi]
lea r8, [0x000246d0]
mov r9, r14
not rcx
mov edx, 0x1000
dec rcx
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], r12
call sub.ntoskrnl.exe__snprintf
xor eax, eax
mov rcx, r13
mov rdi, rsi
xor r9d, r9d
mov rdx, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbp
call fcn.000114f4
test eax, eax
jns 0x1a6d7
lea rcx, [0x00024750]
jmp 0x1a6f6
xor r9d, r9d
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rbp
call fcn.000113ec
test eax, eax
jns 0x1a720
lea rcx, [0x00024770]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbp
call fcn.000110ec
jmp 0x1a7a2
mov rcx, rbp
call fcn.000110ec
lea rdx, [0x00024790]
mov r8d, 0xf
mov rcx, rbx
mov byte [rbx + 0x3fff], 0
call qword [sym.imp.ntoskrnl.exe__strnicmp]
test eax, eax
jne 0x1a76e
lea rdx, [0x000247f0]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_strstr]
test rax, rax
je 0x1a76e
lea rcx, [rbx + 0x4000]
add rax, 0x10
cmp rax, rcx
jb 0x1a78c
lea rcx, [0x000247a0]
mov rdx, rbx
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x000247d0]
mov rdx, rsi
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00022c20
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1cbd8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rax, qword [0x00028100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov r12d, 0x4000
xor ecx, ecx
mov rdx, r12
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
cmp rax, rdi
jne 0x1cc2d
mov eax, dword [0x0002ad2c]
cmp eax, edi
cmovne edi, eax
jmp 0x1cdf5
mov r13d, 0x38
xor ecx, ecx
mov rdx, r13
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, rdi
je 0x1cdcd
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.00024250
or qword [rsi + 0x10], 0xffffffffffffffff
mov r13d, 2
mov dword [rsi], r13d
neg rsi
cmp rsi, 0xffffffffffffffff
je 0x1cdcd
mov r8, r12
xor edx, edx
mov rcx, rbp
call fcn.00024250
mov rdx, rbx
mov rcx, rbp
call fcn.0001c9e4
mov word [rsp + 0x30], di
mov byte [rsp + 0x30], dil
mov ebx, eax
mov byte [rsp + 0x31], 0x35
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x3a], ax
mov word [rsp + 0x38], r13w
call fcn.0001c89c
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov r13d, 0x10
xor r9d, r9d
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.0001155c
xor edx, edx
mov rcx, rbp
cmp eax, edi
mov ebx, eax
jge 0x1cd49
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov eax, dword [0x0002ad2c]
cmp ebx, 0xc0000022
jne 0x1cd2b
mov ecx, dword [0x0002ad28]
cmp eax, edi
je 0x1cd0f
mov edi, eax
jmp 0x1cd1e
mov eax, ecx
lea rdi, [0x00029bd8]
and eax, 3
mov edi, dword [rdi + rax*4]
inc ecx
mov dword [0x0002ad28], ecx
jmp 0x1cdf5
cmp eax, edi
je 0x1cd36
mov edi, eax
jmp 0x1cdf5
lea rcx, [0x000250a0]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1cdf5
mov r8, r12
mov dword [rsp + 0x30], r13d
call fcn.00024250
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], r11
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.00011474
mov rcx, rbp
cmp eax, edi
mov ebx, eax
jge 0x1cda9
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov r11d, dword [0x0002ad2c]
cmp r11d, edi
jne 0x1cde4
lea rcx, [0x000250c0]
jmp 0x1cd3d
mov edx, eax
call fcn.0001cafc
mov ebx, eax
cmp eax, edi
jne 0x1cdc1
mov ecx, dword [0x0002ad2c]
cmp ecx, edi
cmovne ebx, ecx
mov rcx, rsi
call fcn.000110ec
mov eax, ebx
jmp 0x1cdf7
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r11d, dword [0x0002ad2c]
cmp r11d, edi
je 0x1cde9
mov edi, r11d
jmp 0x1cdf5
lea rcx, [0x00025080]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00022c20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1ddf8
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x80
lea rdx, [0x00024400]
lea rcx, [rax - 0x48]
mov ebx, 4
mov dword [rax + 8], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r12, [0x0002daf0]
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r8d, ebx
mov dword [rsp + 0x20], ebx
call fcn.000128dc
lea rcx, [0x0002ce60]
call fcn.0001f920
mov r13d, 0x400
xor ebx, ebx
mov rdx, r13
xor ecx, ecx
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], r13w
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x38], rax
cmp rax, rbx
je 0x1dfce
movzx r8d, word [rsp + 0x32]
xor edx, edx
mov rcx, rax
call fcn.00024250
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1df19
lea rdx, str.Enum
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1df19
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1df19
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
mov r8, r13
xor edx, edx
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], r13w
call fcn.00024250
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1dfbc
lea rdx, str.Security
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1dfbc
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1dfbc
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1dfce
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1e038
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x1e358
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xb0
xor ebx, ebx
cmp byte [0x0002ad39], 1
mov qword [rax + 0x10], rbx
jne 0x1e530
lea rdx, [0x00029030]
lea rcx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [0x00029b3c]
lea rax, [0x00029b40]
mov rdx, qword [rax + rdx*8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1e530
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x98], 0x200
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0xc8], rbx
je 0x1e530
lea rdx, [0x000251d0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
mov ebx, 4
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00024400]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000251f0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xb0
pop rbx
ret