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

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18005c341
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18005c32a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005c31e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18005c2f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800765d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18005c350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180075040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180076780]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005c3c3
mov eax, 0xa
jmp 0x18005c456
test esi, esi
je 0x18005c3e5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005c408
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005c408
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005c401
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005c408
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18005f660
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18005c480
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18007678c]
mov ebx, edi
test ecx, ecx
je 0x18005c5bd
mov rax, qword [0x180076780]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18005c4d8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18005c4b0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005c5bd
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18005c120
mov r8d, dword [0x18007678c]
cmp ebx, r8d
jae 0x18005c548
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180076780]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18005c541
mov edx, esi
mov ecx, ebx
call fcn.18005c350
mov edi, eax
test eax, eax
jne 0x18005c548
mov r8d, dword [0x18007678c]
inc ebx
cmp ebx, r8d
jb 0x18005c510
cmp qword [rsp + 0x20], 0
je 0x18005c5bd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005c5a9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005c59a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18005c570
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800765d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1405517a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1405517ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1405517bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1405517a5
lea eax, [rcx + 1]
jmp 0x1405517cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1405517de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1405517c4
sub eax, 3
jb 0x1405517fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14055184d
sar eax, 1
movsxd rbp, eax
jb 0x140551834
jmp 0x14055180c
add ebx, ebx
jne 0x14055180a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140551834
inc ecx
add ebx, ebx
jne 0x14055181a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140551834
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14055182d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14055181c
add ecx, 2
jmp 0x140551839
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140551762
jmp 0x1405517ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x282000
mov dl, 0x5c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14055189d
cmp rsi, rcx
jae 0x1405518a5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140551884
cmp al, 0x8f
ja 0x140551884
cmp byte [rsi - 2], 0xf
je 0x14055188a
sub al, 0xe8
cmp al, 1
ja 0x14055186e
cmp rsi, rcx
jae 0x1405518a5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140551874
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1405518a5
lodsb al, byte [rsi]
jmp 0x140551884
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x54e000]
mov eax, dword [rdi]
or eax, eax
je 0x140551902
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x55157c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1405518b2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1405518fc
mov qword [rbx], rax
add rbx, 8
jmp 0x1405518d2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140551946
cmp al, 0xef
ja 0x14055192e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14055190e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14055191d
mov eax, dword [rdi]
add rdi, 4
jmp 0x14055191d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14055199a
sub rsp, 0xffffffffffffff80
jmp 0x14027cdb0
Function at 0x140003700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x28
mov byte [rsp + 8], 0x30
mov byte [rsp + 9], 0x31
mov byte [rsp + 0xa], 0x32
mov byte [rsp + 0xb], 0x33
mov byte [rsp + 0xc], 0x34
mov byte [rsp + 0xd], 0x35
mov byte [rsp + 0xe], 0x36
mov byte [rsp + 0xf], 0x37
mov byte [rsp + 0x10], 0x38
mov byte [rsp + 0x11], 0x39
mov byte [rsp + 0x12], 0x41
mov byte [rsp + 0x13], 0x42
mov byte [rsp + 0x14], 0x43
mov byte [rsp + 0x15], 0x44
mov byte [rsp + 0x16], 0x45
mov byte [rsp + 0x17], 0x46
movzx eax, byte [rsp + 0x30]
and eax, 0xf
mov byte [rsp + 1], al
movzx eax, byte [rsp + 0x30]
sar eax, 4
mov byte [rsp], al
movzx eax, byte [rsp]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
movzx eax, byte [rsp + rax + 8]
mov byte [rdx + rcx], al
movzx eax, byte [rsp + 1]
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x38]
movzx eax, byte [rsp + rax + 8]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
add rsp, 0x28
ret

Function at 0x140005620
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x98], 0x240
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 2
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x27
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x108]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x14000572f
xor eax, eax
jmp 0x140005796
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x140005774
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x140005796
mov eax, dword [rsp + 0xe0]
and eax, 0x10
test eax, eax
je 0x140005791
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x140005796
mov rax, qword [rsp + 0x78]
add rsp, 0xf0
pop rdi
ret
Function at 0x1400057a0
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x98], 0x240
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x108]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1400058af
xor eax, eax
jmp 0x140005916
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1400058f4
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x140005916
mov eax, dword [rsp + 0xe0]
and eax, 0x10
test eax, eax
je 0x140005911
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x140005916
mov rax, qword [rsp + 0x78]
add rsp, 0xf0
pop rdi
ret
Function at 0x140005920
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x50], 0xc0000001
mov r8d, 4
mov edx, 0x100080
mov rcx, qword [rsp + 0xa0]
call fcn.1400057a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140005a5c
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140005a51
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x140005a51
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140005a51
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
add rsp, 0x98
ret
Function at 0x140005fb0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0xc0000001
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov edx, 0x30
lea rcx, [rsp + 0x80]
call fcn.140002070
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x98], 0x40
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov r8d, 3
mov edx, 0x10000000
mov rcx, qword [rsp + 0xd0]
call fcn.1400057a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140006116
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0x14
mov r9d, 8
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140006111
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400061ed
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0xd0]
call fcn.140005620
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400061ed
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0x14
mov r9d, 8
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400061ed
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
add rsp, 0xc0
pop rdi
ret
Function at 0x140007640
Capabilities:
Access pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140007699
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140007845
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x10b
je 0x1400076bc
cmp dword [rsp + 0x38], 0x20b
je 0x1400076cb
jmp 0x1400076db
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x48], rax
jmp 0x1400076f0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400076f0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140007845
lea r9, [rsp + 0x28]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000771e
cmp dword [rsp + 0x28], 0
jne 0x140007758
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x14000773b
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x3c], eax
jmp 0x140007746
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x24], eax
jmp 0x140007845
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x28], 0
je 0x14000783a
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400077ab
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140007845
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
sub rax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.140007390
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140007835
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140007845
jmp 0x140007778
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x78
ret
Function at 0x140007850
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
cmp qword [0x140059378], 0
je 0x1400078ab
cmp qword [rsp + 0x70], 0
je 0x14000789f
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140059380]
mov dword [rax], ecx
mov rax, qword [0x140059378]
jmp 0x140007a45
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140008700
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400078d9
xor eax, eax
jmp 0x140007a45
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0
jne 0x140007902
xor eax, eax
jmp 0x140007a45
mov eax, dword [rsp + 0x24]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14000d000
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x140007a29
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140007973
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140007a29
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x40], rax
jb 0x140007a24
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x38]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x140007a24
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [0x140059378], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x18]
mov dword [0x140059380], eax
cmp qword [rsp + 0x70], 0
je 0x140007a22
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140059380]
mov dword [rax], ecx
jmp 0x140007a29
jmp 0x140007969
cmp qword [rsp + 0x30], 0
je 0x140007a3e
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140059378]
add rsp, 0x68
ret
Function at 0x140007f40
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1400080b1
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
jle 0x1400080b1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400080b1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x40]
call fcn.14000cd40
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
jmp 0x140008001
mov rax, qword [rsp + 0x48]
add rax, 0x28
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x108]
cmp qword [rsp + 0x48], rax
jae 0x140008067
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x50]
add rcx, qword [rdx]
mov rdx, qword [rsp + 0x48]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x40]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x58], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.14000cd40
jmp 0x140007ff3
mov r9d, 0xc000007b
mov r8d, 0xc0000018
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140007600
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400080b1
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x40]
call fcn.1400080f0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400080e2
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x28], 0
je 0x1400080e2
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
jmp 0x1400080e4
xor eax, eax
add rsp, 0x78
ret