joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001474
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r8
lea r9, [rax + 0x20]
mov r14, rdx
xor ebx, ebx
and dword [rax + 0x20], ebx
xor r8d, r8d
and dword [rax - 0x28], ebx
xor edx, edx
mov ebp, ecx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001538
mov eax, dword [rsp + 0x68]
add eax, dword [rsp + 0x20]
mov dword [rsp + 0x68], eax
test rbx, rbx
je 0x1400014d4
mov edx, 0x72706c48
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x68]
mov ecx, dword [0x140016020]
mov r8d, 0x72706c48
mov edx, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140001533
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
je 0x1400014b1
lfence
test eax, eax
jns 0x140001527
mov edx, 0x72706c48
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x140001538
mov eax, dword [rsp + 0x68]
mov qword [r14], rbx
mov qword [rsi], rax
jmp 0x140001523
mov eax, 0xc0000022
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001858
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

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 r14, rdx
mov r13, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov ecx, dword [0x140016020]
mov r12d, 0x564d52
mov ebx, 0x100000
mov r8d, r12d
mov edx, ebx
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov rdi, rax
test r14, r14
jne 0x1400018b4
mov eax, 0xc000000d
jmp 0x1400019d0
test rsi, rsi
jne 0x1400018d6
lea rdx, [0x14000b7f0]
lea rcx, [0x14000b710]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000017
jmp 0x1400019d0
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
lfence
test eax, eax
jns 0x140001903
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400019ce
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x14000191d
mov eax, dword [rdi]
test eax, eax
je 0x14000191f
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x14000190e
xor ebx, ebx
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x1400019a1
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x1400019b4
lea rcx, [rbp*4]
add rcx, rbp
add rcx, rcx
mov r15, qword [rdi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp r15, rax
je 0x140001998
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov rcx, qword [r14]
mov ebx, eax
test rcx, rcx
je 0x1400019b4
test r12b, r12b
jne 0x14000198e
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
test al, al
je 0x1400019b4
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x140001942
jmp 0x1400019b4
lea rdx, [0x14000b7f0]
lea rcx, [0x14000b810]
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x564d52
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [r14], 0
mov eax, 0xc0000225
cmove ebx, eax
mov eax, ebx
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
Function at 0x140002274
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ecx, ecx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002297
lfence
jmp 0x1400023b9
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
call fcn.140001858
test eax, eax
js 0x14000228f
mov ecx, dword [0x140016020]
mov edi, 0x564d52
mov r8d, edi
mov edx, 0x58
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140002307
mov rdi, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
movzx r9d, dil
lea r8, [0x14000c070]
xor edx, edx
mov qword [rsp + 0x28], rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000009a
jmp 0x1400023b9
and qword [rsp + 0x38], 0
lea rax, [0x140002640]
mov rdx, qword [rsp + 0x60]
lea r9, [0x140002610]
mov byte [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [0x140002610]
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_KeInitializeApc
lea rcx, [0x140016558]
call qword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
je 0x1400023b7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.ntoskrnl.exe_KeInsertQueueApc
test al, al
jne 0x1400023b7
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x140016558]
call qword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
mov rdi, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
movzx r9d, dil
lea r8, [0x14000c0d0]
xor edx, edx
mov qword [rsp + 0x28], rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc00000e5
jmp 0x1400023b9
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140002984
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rax, [0x1400023d0]
mov qword [r11 - 0x18], rbx
lea rcx, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x28], rbx
mov edx, 0x1fffff
mov qword [r11 + 8], rbx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov esi, eax
lfence
test eax, eax
jns 0x140002a03
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [rsp + 0x30], esi
lea r8, [0x14000c010]
movzx r9d, bl
xor edx, edx
mov qword [rsp + 0x28], rdi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140002a0e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140002bdc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov edi, r9d
lea rcx, [rsp + 0x38]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], 0x14
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140002c4f
cmp dword [rsp + 0x30], 0x14
ja 0x140002c4f
cmp dword [rsp + 0x4c], 4
jne 0x140002c4f
cmp dword [rsp + 0x50], 4
jne 0x140002c4f
mov edi, dword [rsp + 0x54]
mov dword [rsi], edi
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b190
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002f1c
Capabilities:
Query or enumerate registry value

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, 0x40
mov rdi, qword [rsp + 0x90]
mov r14, r9
mov r15d, r8d
mov r12, rdx
mov r13, rcx
test rdi, rdi
je 0x140002f8b
movzx esi, word [rdi]
mov r8d, 0x67666e43
mov ecx, dword [0x140016020]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140002f7a
mov eax, 0xc0000017
jmp 0x1400030c1
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rax
call fcn.14000b300
jmp 0x140002f8f
xor esi, esi
xor ebx, ebx
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r13
lea ebp, [r9 + 2]
mov r8d, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x140002fd9
cmp eax, 0xc0000023
jne 0x1400030b2
cmp dword [rsp + 0x90], 0x10
jb 0x1400030b2
mov edx, dword [rsp + 0x90]
mov r12d, 0x67666e43
mov ecx, dword [0x140016020]
mov r8d, r12d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400030b2
lea rax, [rsp + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x90]
mov r8d, ebp
mov rcx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x1400030a6
cmp dword [rdi + 4], r15d
jne 0x1400030a6
mov ecx, dword [rdi + 8]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x1400030a6
mov esi, ecx
test rbx, rbx
je 0x140003068
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [rdi + 8]
mov ecx, dword [0x140016020]
mov r8d, r12d
mov edx, esi
mov ebp, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
lfence
test rax, rax
jne 0x140003097
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002f70
lea rdx, [rdi + 0xc]
mov r8, rbp
mov rcx, rax
call fcn.14000b300
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14 + 8], rbx
xor eax, eax
mov word [r14], si
mov word [r14 + 2], si
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003588
Capabilities:
Create device object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
xor edi, edi
mov dword [rbp - 0x20], 0x280026
lea rax, [0x14000c870]
mov dword [rbp - 0x10], 0x30002e
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [0x14000c8a0]
mov qword [rbp + 0x18], rdi
mov qword [rbp - 8], rax
lea r9d, [rdi + 0x22]
lea rax, [rbp + 0x18]
xor edx, edx
mov qword [r11 - 0x38], rax
mov rbx, rcx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test eax, eax
jns 0x140003632
lfence
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
lea r8, [0x14000c8d0]
xor edx, edx
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
movzx r9d, bl
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400036ec
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
lfence
test eax, eax
jns 0x14000366f
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
lea r8, [0x14000c940]
jmp 0x140003610
lea rax, [0x140003710]
mov qword [rbx + 0x70], rax
lea rax, [0x140003710]
mov qword [rbx + 0x80], rax
lea rax, [0x140003710]
mov qword [rbx + 0x100], rax
lea rax, [0x140003730]
mov qword [rbx + 0xe0], rax
mov rax, qword [rbp + 0x18]
mov qword [0x140016088], rax
mov byte [0x140016080], 1
mov rdi, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov edx, 2
movzx r9d, dil
mov qword [rsp + 0x28], rbx
lea r8, [0x14000c9b0]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005294
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, rdx
mov rbx, rcx
mov r12d, 0x208
lea rcx, [rbp + 0x150]
mov r8d, r12d
xor edx, edx
call fcn.14000b5c0
mov rcx, qword [rbx + 8]
mov edx, 0x5c
call sub.ntoskrnl.exe_wcsrchr
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
xor r14d, r14d
test al, al
jne 0x14000530e
mov eax, 0xc000000d
jmp 0x140005480
mov r8, r12
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000b5c0
mov r8, rdi
lea rdx, [0x14000d080]
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_swprintf
mov r15d, 1
lea rdx, [rsp + 0x40]
mov ecx, r15d
call qword [sym.imp.ntoskrnl.exe_RtlCreateRegistryKey]
test eax, eax
js 0x140005480
lea r8, [rdi + 2]
lea rdx, [0x14000d0a0]
lea rcx, [rbp + 0x150]
call sub.ntoskrnl.exe_swprintf
or rbx, 0xffffffffffffffff
lea rcx, [rbp + 0x150]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140005372
lea eax, [rax*2 + 2]
mov r9d, r15d
mov dword [rsp + 0x28], eax
lea r8, [0x14000d0c0]
lea rax, [rbp + 0x150]
mov ecx, r15d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
test eax, eax
js 0x140005480
mov r8, r12
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000b5c0
mov r9, rdi
lea rdx, [0x14000d0e0]
mov r8, rdi
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_swprintf
lea rdx, [rsp + 0x40]
mov ecx, r15d
call qword [sym.imp.ntoskrnl.exe_RtlCreateRegistryKey]
test eax, eax
js 0x140005480
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x1400053ef
lea eax, [rbx*2 + 2]
mov r9d, r15d
mov dword [rsp + 0x28], eax
lea r8, [0x14000d120]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov ecx, r15d
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
test eax, eax
js 0x140005480
mov ebx, 4
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [0x14000d140]
mov ecx, r15d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [0x14000d150]
mov dword [rsp + 0x34], r15d
lea rdx, [rsp + 0x40]
mov ecx, r15d
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14000b190
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140006520
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, [0x1400064e0]
and qword [r11 + 8], 0
lea rcx, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
lfence
test eax, eax
jns 0x140006577
xor edx, edx
lea r8, [0x14000dc90]
mov r9d, eax
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140006582
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14000b098
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
lea rdx, [0x140010570]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x18], 0
lea rax, [rbp - 0x40]
and dword [rbp - 0x2c], 0
lea r8, [rbp - 0x30]
and dword [rbp - 0x14], 0
lea rcx, [rbp + 0x18]
and qword [rbp - 0x28], 0
xorps xmm0, xmm0
mov edx, 0xf003f
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x30], 0x30
mov dword [rbp - 0x18], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000b14a
xorps xmm0, xmm0
lea rdx, [0x14000d150]
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov r9d, 4
mov dword [rbp + 0x10], 1
mov dword [rsp + 0x28], r9d
lea rdx, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rbp
ret
Function at 0x2fc4db1a0
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 0x2fc4dbba2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbc3a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbc1e
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 0x2fc4dbc12
cmp qword [rbp - 0x10], 0
je 0x2fc4dbc12
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 0x2fc4dbbd8
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbc3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbd40
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 0x2fc4dbd68
mov eax, 0
jmp 0x2fc4dbdb6
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 0x2fc4dbd91
mov eax, 0
jmp 0x2fc4dbdb6
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 0x2fc4dbdb1
mov eax, 0
jmp 0x2fc4dbdb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbdbc
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 0x2fc4dbe3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbe31
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 0x2fc4dbe31
mov rax, qword [rbp - 8]
jmp 0x2fc4dbe4f
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 0x2fc4dbe04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da630
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 0x2fc4db032
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4db0ca
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4db0ae
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 0x2fc4db0a2
cmp qword [rbp - 0x10], 0
je 0x2fc4db0a2
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 0x2fc4db068
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db0cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db1d0
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 0x2fc4db1f8
mov eax, 0
jmp 0x2fc4db246
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 0x2fc4db221
mov eax, 0
jmp 0x2fc4db246
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 0x2fc4db241
mov eax, 0
jmp 0x2fc4db246
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db24c
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 0x2fc4db2ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db2c1
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 0x2fc4db2c1
mov rax, qword [rbp - 8]
jmp 0x2fc4db2df
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 0x2fc4db294
mov eax, 0
add rsp, 0x20
pop rbp
ret