joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008590
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x1400087f9
test rdi, rdi
je 0x1400085ca
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140008637
add ebx, 1
cmp ebx, 1
je 0x140008740
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140008605
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000883f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x1400087e2
xor edx, edx
test rsi, rsi
je 0x1400086af
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140008810
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400087a0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140008770
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140008750
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140008605
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000871f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400086f5
mov edx, 0xf
cmp eax, 0xe
jg 0x1400086f5
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x1400086f5
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1400087b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000883f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x1400087ee
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140008830
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x1400086af
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x1400087fe
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140009280
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400092a0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400092e8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009294
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400092d5

Function at 0x140009310
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001f2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400093c8
mov rdx, qword [0x14001f200]
lea rcx, [0x14001f200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140009398
cmp rdx, rcx
jne 0x14000937a
mov qword [rdx], rax
cmp rax, rcx
je 0x14000937f
nop dword [rax]
test rax, rax
je 0x1400093aa
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140009368
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x1400093aa
mov rdx, rax
jmp 0x140009376
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400093e6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x1400093aa
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140df7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140df71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140df7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140df706f
add dl, dl
jne 0x140df7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140df70f6
xor eax, eax
add dl, dl
jne 0x140df70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140df71ad
add dl, dl
jne 0x140df70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140df70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140df70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140df70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140df70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140df707e
mov eax, 1
add dl, dl
jne 0x140df7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140df7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140df70fb
sub eax, ebx
mov ebx, 1
jne 0x140df714c
mov ecx, 1
add dl, dl
jne 0x140df712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140df713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140df7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140df707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140df7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140df7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140df715d
cmp eax, 0x7d00
jae 0x140df719b
cmp eax, 0x500
jb 0x140df7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140df707e
cmp eax, 0x7f
ja 0x140df719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140df707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140df71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140df707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6da0b2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da2c5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da0b478
mov rax, qword [0x6da2c5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da0b33c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da0b3c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da0b320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da0b4ad
mov rax, qword [0x6da2c5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da2c5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da0b490
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da0b3be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da0b420
add dword [0x6da2c5e4], 1
cmp edi, 8
jae 0x6da0b3f3
test dil, 4
jne 0x6da0b464
test edi, edi
je 0x6da0b3e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da0b47f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da0b3e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da0b40c
jmp 0x6da0b3e8
add rsi, qword [0x6da2c5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da0b3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da0b3e8
xor esi, esi
jmp 0x6da0b347
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da0b3e8
mov rax, qword [0x6da2c5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da0bc00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da2c8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da2c8a0]
test rbx, rbx
je 0x6da0bc54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da0bc4b
test rsi, rsi
je 0x6da0bc4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da0bc30
lea rcx, [0x6da2c8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da0be90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da0bea0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da0beb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da0bef1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da0bee8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da0bef3
add rax, 0x28
cmp rax, r9
jne 0x6da0bed4
xor eax, eax
ret

Function at 0x6da0bf90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da291f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da0bffd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da0bffd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da0bffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da0bff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da0bfff
add rax, 0x28
cmp rax, r9
jne 0x6da0bfe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da0c100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da291f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da0c120
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da0c118
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da0c17d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da0c174
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da0c184
add rax, 0x28
cmp rax, r9
jne 0x6da0c160
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da0c1a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da291f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da0c20e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da0c20e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da0c20e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da0c20e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da0c205
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da0c215
add rcx, 0x28
cmp rcx, rax
jne 0x6da0c1f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da0c228
jmp 0x6da0c20e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da0c236
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da0c20e
test r9d, r9d
jg 0x6da0c220
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da0c570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
call fcn.140002544
test al, al
jne 0x140001202
mov rcx, qword [rbx + 0x28]
add rcx, 0x48
call fcn.140001d2c
call fcn.1400026d0
test al, al
je 0x140001202
call fcn.14000193c
test al, al
je 0x140001202
lea rax, [0x140001ca8]
mov qword [rbx + 0x70], rax
lea rdx, [0x140002cf0]
mov qword [rbx + 0x80], rax
lea rcx, [rsp + 0x40]
lea rax, [0x140001a04]
mov qword [rbx + 0xe0], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
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]
test eax, eax
js 0x140001207
mov dl, 0x10
mov cl, 1
call qword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
lea rbx, [0x140004230]
lea rdx, [0x140002d20]
mov rcx, rbx
test al, al
jne 0x1400010cb
lea rdx, [0x140002d60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
js 0x1400011f3
mov edi, 0x30d40
mov r8d, 0x5975616e
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, 0x5975616e
mov edx, edi
xor ecx, ecx
mov qword [0x1400041d8], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, 0x9c40
xor ecx, ecx
mov r8d, 0x5975616e
mov qword [0x140004200], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [0x1400041d8]
mov qword [0x140004208], rax
test rcx, rcx
je 0x1400011bd
cmp qword [0x140004200], 0
je 0x1400011b5
test rax, rax
je 0x1400011b5
mov rdx, qword [0x140004028]
lea rcx, [0x14000128c]
call fcn.140002114
mov edi, eax
test eax, eax
jns 0x1400011b1
mov rcx, qword [0x1400041d0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x1400041d8]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004200]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004208]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
jmp 0x1400011f3
xor eax, eax
jmp 0x140001207
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004200]
test rcx, rcx
je 0x1400011d1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004208]
test rcx, rcx
je 0x1400011e5
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov edi, 0xc0000001
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
jmp 0x140001207
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000193c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x140004050]
mov dword [0x140004050], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x1400019fb
cmp dword [0x140004054], 0xa
jne 0x14000197d
cmp dword [0x140004058], 0
jne 0x14000197d
cmp dword [0x14000405c], 0x585d
ja 0x1400019fb
call fcn.140001514
test al, al
je 0x1400019fb
lea rcx, [0x140002c70]
call fcn.1400025a4
lea rcx, [0x140002cb0]
mov qword [0x140004170], rax
call fcn.1400025a4
lea rcx, [0x140002cd0]
mov qword [0x140004178], rax
call fcn.1400025a4
mov qword [0x140004180], rax
call fcn.140001868
cmp qword [0x140004170], 0
mov qword [0x140004188], rax
je 0x1400019fb
cmp qword [0x140004178], 0
je 0x1400019fb
cmp qword [0x140004180], 0
je 0x1400019fb
test rax, rax
je 0x1400019fb
call fcn.140002158
test al, al
je 0x1400019fb
mov al, 1
jmp 0x1400019fd
xor al, al
add rsp, 0x28
ret

Function at 0x140001d2c
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rbx, rcx
mov rax, cr8
test al, al
je 0x140001d53
mov eax, 0xc0000001
jmp 0x140001e67
and qword [rbp + 0x6f], 0
lea rcx, [rbp - 9]
and qword [rbp + 0x77], 0
xor eax, eax
and dword [rbp + 0x23], eax
xor edx, edx
and dword [rbp + 0x3b], eax
mov qword [rbp - 0x19], rax
lea r8d, [rax + 0x28]
mov qword [rbp - 0x11], rax
call fcn.140002b00
and qword [rbp + 0x27], 0
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
lea r8, [rbp + 0x1f]
mov dword [rbp + 0x1f], 0x30
mov edx, 0x100180
mov dword [rbp + 0x37], 0x240
lea rcx, [rbp + 0x6f]
mov qword [rbp + 0x2f], rbx
movdqu xmmword [rbp + 0x3f], xmm0
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x140001e67
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x77]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x6f]
mov edx, 0x180
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rbp + 0x6f]
mov ebx, eax
test eax, eax
jns 0x140001e09
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x140001e67
mov r9d, 0x28
mov dword [rbp + 0x17], 0x80
lea r8, [rbp - 9]
mov dword [rsp + 0x20], 4
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140001e4a
and qword [rcx + 0x10], 0
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rax, qword [rbp + 0x77]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
Function at 0x140002114
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
mov qword [rax - 0x18], rdx
xor r9d, r9d
mov qword [rax - 0x20], rcx
xor r8d, r8d
and qword [rax - 0x28], 0
lea rcx, [rax + 0x18]
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x14000214f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400026d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 0x5000
xor esi, esi
mov edx, edi
xor ecx, ecx
mov r8d, 0x5975616e
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400027a2
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000272e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add edi, edi
jmp 0x1400026e6
test eax, eax
js 0x140002794
mov rcx, qword [rbx + 0x18]
mov r9d, 0x51eb851f
mov qword [0x140004010], rcx
mov sil, 1
mov eax, dword [rbx + 0x20]
mov dword [0x140004004], eax
mov r8, qword [rbx + 0x140]
mov qword [0x140004008], r8
mov eax, dword [rbx + 0x148]
mov dword [section..data], eax
mov eax, r9d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
mov dword [0x140004020], edx
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x140004024], edx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, sil
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret