joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400196a0
Capabilities:
Access pe header

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 rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140019703
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14001989e
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10b
je 0x140019726
cmp dword [rsp + 0x30], 0x20b
je 0x140019735
jmp 0x140019745
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x40], rax
jmp 0x140019755
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x140019755
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14001989e
lea r9, [rsp + 0x60]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140019783
cmp dword [rsp + 0x60], 0
jne 0x1400197b8
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x1400197a0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
jmp 0x1400197ab
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x14001989e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x60], 0
je 0x140019893
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140019806
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14001989e
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], 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 + 0x28]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call fcn.1400193f0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001988e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14001989e
jmp 0x1400197d8
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140021990
add rsp, 0x78
ret
Function at 0x14001a210
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x38], 0
je 0x14001a280
cmp qword [rsp + 0xa8], 0
jne 0x14001a285
jmp 0x14001a487
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x14001a29e
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x40
jbe 0x14001a2cb
jmp 0x14001a487
mov edx, 0x40
mov rcx, qword [rsp + 0x38]
call fcn.14001a510
movzx eax, al
test eax, eax
je 0x14001a2e6
jmp 0x14001a487
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a2fa
jmp 0x14001a487
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x14001a344
jmp 0x14001a487
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14001a378
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
jmp 0x14001a397
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x24], 0
jmp 0x14001a3ea
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jae 0x14001a47d
xor eax, eax
mov word [rsp + 0x20], ax
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001a478
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
call fcn.140015160
test eax, eax
jne 0x14001a478
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
jmp 0x14001a47d
jmp 0x14001a3e0
xor eax, eax
test eax, eax
jne 0x14001a22a
mov rax, qword [rsp + 0x78]
add rsp, 0x98
ret
Function at 0x14001acc0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x2d0], 0
jne 0x14001ad0d
jmp 0x14001aef2
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x70], 0
jne 0x14001ad34
jmp 0x14001aef2
mov eax, dword [rsp + 0x70]
mov r8d, 0x6c747373
mov edx, eax
mov ecx, 0x100
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001ad5d
jmp 0x14001aef2
mov eax, dword [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1400016b0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14001ad97
jmp 0x14001aef2
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14001aee8
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], 0
jmp 0x14001add0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x14001aee8
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x58]
call fcn.14001b1f0
movzx eax, al
test eax, eax
je 0x14001aee3
cmp dword [rsp + 0x44], 0
je 0x14001aee3
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov eax, 0x208
mov word [rsp + 0x7a], ax
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x14001aee3
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x2d8]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xa0]
mov rax, qword [rsp + 0x68]
call qword [0x1400284c0]
movzx eax, al
test eax, eax
jne 0x14001aee3
jmp 0x14001aee8
jmp 0x14001adc6
xor eax, eax
test eax, eax
jne 0x14001acfd
cmp qword [rsp + 0x38], 0
je 0x14001af0a
mov edx, 0x6c747373
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140021990
add rsp, 0x2c0
pop rdi
ret
Function at 0x14001b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x410
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x348
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call fcn.14001b910
movzx eax, al
test eax, eax
jne 0x14001b63d
jmp 0x14001b847
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x420]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r9, qword [rsp + 0x40]
lea r8, [0x140027ba0]
lea rdx, [0x140027bc0]
mov ecx, 0x10
call fcn.14001ee00
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x98]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14001b741
lea r8, [0x140027be0]
lea rdx, [0x140027bc0]
mov ecx, 0x10
call fcn.14001ee00
jmp 0x14001b847
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x48], 0
jne 0x14001b787
jmp 0x14001b847
mov eax, dword [rsp + 0x48]
mov r8d, 0x554d4c44
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001b7b0
jmp 0x14001b847
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14001b7ed
jmp 0x14001b847
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x38]
add rcx, 0xc
mov edx, dword [rsp + 0x430]
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x428]
call fcn.14001c290
mov r9, qword [rsp + 0x428]
lea r8, [0x140027c00]
lea rdx, [0x140027bc0]
mov ecx, 0x10
call fcn.14001ee00
mov byte [rsp + 0x30], 1
xor eax, eax
test eax, eax
jne 0x14001b610
cmp qword [rsp + 0x38], 0
je 0x14001b85c
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x50], 0
je 0x14001b86f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140021990
add rsp, 0x410
pop rdi
ret
Function at 0x14001e670
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx eax, al
cmp eax, 1
jle 0x14001e6a9
int 0x2c
mov dword [rsp + 0x64], 0
jmp 0x14001e6b1
mov dword [rsp + 0x64], 1
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x28], 0
je 0x14001e6c7
xor eax, eax
jmp 0x14001e890
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xd0]
add rax, 0xb0
mov rdx, rax
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x240
lea rax, [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xd0]
add rax, 0x28
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x68]
mov edx, 0x100004
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001e7d5
mov eax, dword [rsp + 0x60]
jmp 0x14001e890
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0xa1], 1
mov rax, qword [rsp + 0xd0]
add rax, 0xa8
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
lea rcx, [0x14001dbb0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001e86a
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0xa1], 0
mov eax, dword [rsp + 0x60]
jmp 0x14001e890
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0xa2]
movzx eax, al
test eax, eax
jne 0x14001e88c
mov ecx, 0x64
call fcn.14001f0e0
jmp 0x14001e86a
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140021990
add rsp, 0xc0
pop rdi
ret
Function at 0x14001f170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx eax, al
test eax, eax
je 0x14001f1ad
int 0x2c
mov dword [rsp + 0x60], 0
jmp 0x14001f1b5
mov dword [rsp + 0x60], 1
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
cmp byte [rax + rcx], 0
jne 0x14001f1dc
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14001f24d
call fcn.14001dee0
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140021990
add rsp, 0x90
pop rdi
ret
Function at 0x14001f6a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub rsp, 0x138
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rsp + 0x40], xmm7
lea rax, [rsp + 0x100]
movaps xmmword [rax - 0x80], xmm11
movaps xmmword [rax - 0x50], xmm14
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rax - 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rax - 0x40], xmm15
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rax - 0x70], xmm12
mov qword [rax - 8], rbp
mov rbp, rsp
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r13
mov qword [rax + 0x30], r15
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r14
mov qword [rbp + 0xd8], rcx
lea rax, [r8 - 0x30]
mov qword [rbp + 0xe0], rax
mov rbx, qword gs:[0x188]
mov qword [r8 + 0x20], rsp
mov rsi, qword [rbx + 0x90]
mov qword [rbp + 0xd0], rsi
cli
mov qword [rbx + 0x28], r8
lea r9, [r8 + 0x50]
mov qword [rbx + 0x38], r9
test qword [0x140038e40], 1
jne 0x14001f75c
mov rdi, qword gs:[8]
mov qword [rdi + 4], r8
jmp 0x14001f765
mov qword gs:[0x9008], r8
mov ecx, 0x6000
sub r9, rcx
mov qword gs:[0x1a8], r8
mov qword [rbx + 0x30], r9
lea rsp, [r8 - 0x190]
mov rdi, rsp
mov ecx, 0x32
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsi - 0x110]
ldmxcsr dword [rbp - 0x54]
mov r11, qword [rbp + 0xf8]
mov rbp, qword [rbp + 0xd8]
mov rax, qword [rdx + 0x10]
mov rsp, qword [rdx + 8]
mov rcx, qword [rdx]
movss xmm0, dword [rdx + 0x18]
movss xmm1, dword [rdx + 0x20]
movss xmm2, dword [rdx + 0x28]
movss xmm3, dword [rdx + 0x30]
cmp qword [rdx + 0x38], 0
je 0x14001f7cf
mov r13, qword [rdx + 0x38]
mov r9, rbp
test qword [0x140038e40], 1
jne 0x14001f7e5
swapgs
sysretq
mov r8d, dword gs:[0x9018]
bt r8d, 1
jb 0x14001f82c
mov rbp, qword gs:[0x188]
mov rbp, qword [rbp + 0x220]
mov rbp, qword [rbp + 0x388]
bt ebp, 0
jae 0x14001f829
bt r8d, 0
jb 0x14001f820
bts rbp, 0x3f
jmp 0x14001f829
and dword gs:[0x9018], 0xfffffffe
mov cr3, rbp
mov rbp, r9
bt r8d, 1
jb 0x14001f83f
verw word gs:[0x902a]
swapgs
sysretq
ret
Function at 0x14001f910
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001fa3c
mov eax, dword [rsp + 0x60]
jmp 0x14001fb71
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001fa81
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
jmp 0x14001fb71
mov eax, dword [rsp + 0x80]
mov r8d, 0x4153554b
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14001fabd
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc000009a
jmp 0x14001fb71
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001fb2d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
jmp 0x14001fb71
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0xf8], 0
je 0x14001fb53
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
cmp qword [rsp + 0x100], 0
je 0x14001fb6f
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140021990
add rsp, 0xe0
pop rdi
ret
Function at 0x140023810
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret