joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401503c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r13d, r13d
mov r14, r9
test byte [rcx + 8], 2
mov r15d, r8d
mov r12, rdx
mov rbx, rcx
mov edi, r13d
je 0x1401503f4
call fcn.140150320
jmp 0x1401505da
mov eax, dword [rcx + 0x24]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rsi
mov esi, dword [rcx + 0x28]
sub esi, eax
jne 0x14015050c
mov r8d, dword [rcx + 0x2c]
test r8d, r8d
je 0x14015042d
mov rdx, qword ds:[rcx + 0x18]
call fcn.140150600
test eax, eax
js 0x140150464
mov dword [rbx + 0x2c], r13d
cmp r15d, dword [rbx + 0x20]
jb 0x140150450
lfence
mov r9, r14
mov qword [rbx + 0x24], r13
mov r8d, r15d
mov rdx, r12
mov rcx, rbx
call fcn.140150320
jmp 0x1401505ca
cmp qword [rbx + 0x18], rdi
jne 0x14015046c
mov rcx, rbx
call fcn.1401502a0
nop
test eax, eax
jns 0x14015046c
lfence
jmp 0x1401505ca
mov ecx, dword [rbx + 0x20]
lea rbp, [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rbp
test byte [rbx + 8], 8
mov qword [rsp + 0x40], r13
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1401504d1
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x140150504
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x140150504
mov rsi, qword ds:[rsp + 0x58]
add qword [rbp], rsi
test esi, esi
jne 0x1401504f8
lfence
test r14, r14
je 0x1401505c8
mov dword [r14], r13d
jmp 0x1401505c8
mov dword [rbx + 0x24], r13d
mov eax, r13d
mov dword [rbx + 0x28], esi
jmp 0x140150510
lfence
jmp 0x1401505c8
lea rbp, [rcx + 0x10]
mov edx, eax
cmp esi, r15d
mov rcx, r12
cmova esi, r15d
add rdx, qword [rbx + 0x18]
mov r8d, esi
call fcn.1401e3aa0
add dword [rbx + 0x24], esi
cmp esi, r15d
jae 0x1401505bb
mov eax, dword [rbx + 0x20]
cmp dword [rbx + 0x28], eax
jne 0x1401505bb
lfence
test byte [rbx + 8], 8
lea rax, [r12 + rsi]
mov rcx, rbp
cmove rcx, r13
xor r12d, r12d
mov qword [rsp + 0x40], r12
sub r15d, esi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], r15d
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1401505a8
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1401505c8
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1401505c8
mov rax, qword [rsp + 0x58]
add qword [rbp], rax
add esi, eax
mov qword [rbx + 0x24], r12
nop dword [rax + rax]
test r14, r14
je 0x1401505c8
mov dword [r14], esi
mov eax, edi
mov rbp, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140150600
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
test byte [rcx + 8], 8
lea rax, [rcx + 0x10]
mov rbx, rcx
mov ecx, 0
cmove rax, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov dword [r11 - 0x38], r8d
lea rax, [r11 - 0x18]
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp eax, 0x103
jne 0x14015066e
mov rcx, qword ds:[rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x140150684
mov ecx, dword [rsp + 0x50]
test ecx, ecx
js 0x140150682
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
or dword [rbx + 8], 0x80000000
mov eax, ecx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1401506a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
test byte [rcx + 8], 2
mov rbp, rdx
mov rdi, rcx
je 0x1401506ce
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.140150600
cmp dword [rcx + 0x2c], ebx
jne 0x1401506ee
call fcn.1401507d0
mov ebx, eax
test eax, eax
jns 0x1401506ee
lfence
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword ds:[rdi + 0x2c]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
test r8d, r8d
je 0x140150759
mov r14d, dword [rdi + 0x20]
sub r14d, r8d
je 0x140150740
mov ecx, r8d
cmp r14d, esi
mov rdx, rbp
cmova r14d, esi
add rcx, qword [rdi + 0x18]
mov r8d, r14d
mov r15d, r14d
call fcn.1401e3aa0
mov r8d, dword [rdi + 0x2c]
add r8d, r14d
mov dword [rdi + 0x2c], r8d
cmp r14d, esi
je 0x1401507a8
add rbp, r15
sub esi, r14d
mov rdx, qword [rdi + 0x18]
mov rcx, rdi
call fcn.140150600
mov ebx, eax
test eax, eax
js 0x140150775
mov dword [rdi + 0x2c], 0
cmp esi, dword [rdi + 0x20]
jb 0x14015077a
lfence
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140150600
mov ebx, eax
test eax, eax
jns 0x1401507a8
lfence
jmp 0x1401507aa
test esi, esi
je 0x1401507a8
cmp qword [rdi + 0x18], 0
jne 0x140150793
mov rcx, rdi
call fcn.1401502a0
mov ebx, eax
test eax, eax
js 0x140150775
lfence
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
mov r8d, esi
call fcn.1401e3aa0
mov dword [rdi + 0x2c], esi
mov eax, ebx
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401507d0
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, dword [rcx + 0x28]
mov rbx, rcx
mov ecx, dword [rcx + 0x24]
xor edx, edx
cmp r8d, ecx
je 0x14015082e
sub ecx, r8d
movsxd r8, ecx
add r8, qword [rbx + 0x10]
test byte [rbx + 8], 8
mov qword [rbx + 0x10], r8
jne 0x14015082e
mov rcx, qword [rbx]
lea r9d, [rdx + 8]
mov qword [rsp + 0x50], r8
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edx, eax
test eax, eax
jns 0x14015082e
lfence
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x24], 0
mov eax, edx
add rsp, 0x40
pop rbx
ret
Function at 0x140150900
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x140150964
nop dword [rax]
sub r8d, 1
je 0x14015095b
cmp r8d, 1
jne 0x14015096b
lea rdx, [rcx + 0x10]
mov rcx, qword [rcx]
call sym.SystemInformer.exe_PhGetFileSize
mov r9d, eax
test eax, eax
jns 0x140150952
lfence
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
add qword [rbx + 0x10], rax
jmp 0x14015096b
mov rax, qword [rdx]
add qword [rcx + 0x10], rax
jmp 0x14015096b
mov rax, qword [rdx]
mov qword [rcx + 0x10], rax
test byte [rbx + 8], 8
jne 0x1401509a4
mov rax, qword [rbx + 0x10]
lea r8, [rsp + 0x68]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov r9d, eax
test eax, eax
js 0x14015093f
mov rbx, qword [rsp + 0x50]
mov eax, r9d
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140153780
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [r11 + 0x20], rcx
mov ebx, 2
mov qword [rsp + 0xb0], rbx
mov rax, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401537d7
test byte [rcx + 0x20], 1
je 0x1401537d7
mov rdx, qword [rbp + 0x18]
lea rcx, [r11 + 0x20]
mov qword [r11 - 0x78], rcx
lea r9, [0x140153740]
mov rcx, rax
mov r8d, ebx
call sym.SystemInformer.exe_PhEnumGenericModules
xor edx, edx
lea rax, [rsp + 0xb8]
lea r9, [0x140153740]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ecx, [rdx + 4]
call sym.SystemInformer.exe_PhEnumGenericModules
lea r12, [0x1402bb9e0]
nop
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r13, qword [rcx + 0x18]
add r13, 0x10
mov r15, qword [r13]
cmp r15, r13
je 0x1401539db
nop dword [rax]
movzx eax, word [r15 + 0x58]
mov rbx, qword [r15 + 0x60]
test r12, r12
je 0x1401538e6
mov rsi, qword [r12]
cmp rax, rsi
jb 0x1401539ab
mov r14, qword [r12 + 8]
mov rcx, rsi
shr rcx, 4
test rcx, rcx
je 0x14015389a
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140153999
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x140153870
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x1401538e6
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx ebp, word [r14 + rbx]
cmp cx, bp
je 0x1401538db
nop dword [rax]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, bp
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x1401539ab
add rbx, 2
sub rsi, 1
jne 0x1401538b0
test r15, r15
je 0x1401539d3
movzx eax, word [r15 + 0x48]
lea rcx, [rsp + 0x38]
mov rdi, qword [r15 + 0x30]
mov esi, dword [r15 + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [r15 + 0x50]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_PhDosPathNameToNtPathName
mov rcx, qword gs:[0x30]
mov rbx, rax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
test rax, rax
je 0x1401539cb
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rcx, qword [rsp + 0xa0]
mov r9d, esi
mov r8, rdi
mov rdx, rbx
call sym.SystemInformer.exe_PhLoadModuleSymbolProvider
lea rcx, ds:[rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015396a
call fcn.14013d2a0
mov rbx, qword [rsp + 0xb0]
add r12, 0x10
sub rbx, 1
mov qword [rsp + 0xb0], rbx
jne 0x140153800
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x1401538a0
mov r15, qword [r15]
cmp r15, r13
jne 0x140153840
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x14015396a
mov rbx, qword [rsp + 0xb0]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x140153972
Function at 0x140154660
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x400], rax
lea rax, [rsp + 0x60]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x70]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x400
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r15, rcx
call fcn.140153f40
test eax, eax
js 0x1401548cf
cmp dword [rbp - 0x40], 2
mov qword [rsp + 0x538], rbx
mov qword [rsp + 0x540], rdi
mov qword [rsp + 0x548], r14
jne 0x14015479c
lfence
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, r15
call fcn.140154380
mov edi, eax
test eax, eax
js 0x1401548b7
sub rsi, qword [rbp - 0x60]
xor ebx, ebx
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x140154754
mov r9, qword [rsp + 0x58]
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov eax, dword [r9 + rcx*4]
lea rdx, [r9 + rcx*4]
cmp rsi, rax
jb 0x14015474d
mov eax, dword [rdx + 4]
cmp rsi, rax
jb 0x14015477c
inc ebx
cmp ebx, r8d
jb 0x140154730
mov edi, 0xc0000225
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1401548b5
nop dword [rax]
test rdx, rdx
je 0x140154754
movsd xmm0, qword [rdx]
movsd qword [0x1402c2f88], xmm0
mov eax, dword [rdx + 8]
mov dword [0x1402c2f90], eax
jmp 0x140154759
mov eax, dword ds:[rbp - 0x3c]
cmp eax, 0x100000
jbe 0x1401547b1
mov edi, 0x80000005
jmp 0x1401548b5
xor ebx, ebx
mov dword [rsp + 0x28], 4
lea rdi, [rax + rax*2]
mov qword [rsp + 0x40], rbx
shl rdi, 2
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x50], rdi
lea rcx, [rbx - 1]
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1401548b0
mov r14, qword ds:[rsp + 0x40]
test r14, r14
je 0x1401548b0
lfence
mov r8, qword [rsp + 0x40]
mov r9, rdi
mov rdx, qword [rbp - 0x80]
mov rcx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov edi, eax
test eax, eax
js 0x140154887
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], r14
lfence
sub rsi, qword [rbp - 0x60]
cmp dword [rbp - 0x40], ebx
mov r9, rsi
mov rsi, qword [rsp + 0x58]
mov edx, dword [rsp + 0x48]
sete r8b
mov rcx, rsi
call fcn.1401542c0
test rax, rax
je 0x14015487b
movsd xmm0, qword [rax]
movsd qword [0x1402c2f88], xmm0
mov eax, dword [rax + 8]
mov dword [0x1402c2f90], eax
mov qword [rsp + 0x40], rsi
jmp 0x14015488c
mov edi, 0xc0000225
mov qword [rsp + 0x40], rsi
jmp 0x14015488c
mov qword [rsp + 0x40], r14
mov r9d, 0x8000
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x1401548b5
mov edi, 0xc0000017
mov eax, edi
mov rdi, qword [rsp + 0x540]
mov rbx, qword [rsp + 0x538]
mov r14, qword [rsp + 0x548]
lfence
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x510
pop r15
pop rsi
pop rbp
ret
Function at 0x140156420
Capabilities:
Terminate process

Disassembly:
mov qword ss:[rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [0x1402c2f94], 5
mov ebp, edx
mov r14, rcx
jne 0x14015654f
mov qword [rsp + 0x30], rbx
lea rcx, [0x1402c3430]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rsi, rax
test rax, rax
je 0x14015646e
lock dec dword [0x1402c3440]
jmp 0x14015648e
mov r8, qword [0x1402c3448]
mov edx, 4
mov rcx, qword [0x1402bfe50]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
lea rcx, [rsi + 0x12]
xor edx, edx
mov r8d, 0x15a
call fcn.1401dff50
mov ecx, 0x7ffe0018
mov dword [rsi + 0x10], 0x15c0003
mov dword [rsi + 0x14], 6
mov edx, 0x7ffe0014
lea r8d, [rcx + 4]
nop dword [rax + rax]
mov eax, dword [rcx]
mov dword [rsi + 0x1c], eax
mov eax, dword [rdx]
mov dword [rsi + 0x18], eax
mov eax, dword [r8]
cmp dword [rsi + 0x1c], eax
jne 0x1401564c0
lea rcx, ds:[rsi + 0x10]
mov qword [rsi + 0x28], r14
mov dword [rsi + 0x30], ebp
call fcn.14018ea80
mov edi, eax
test eax, eax
js 0x1401564f1
lfence
mov edi, dword [rsi + 0x20]
mov eax, dword [0x1402c3444]
cmp dword [0x1402c3440], eax
mov rbx, qword [rsp + 0x30]
jae 0x14015651d
mov rdx, rsi
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c3440]
jmp 0x14015652f
mov rcx, qword [0x1402bfe50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x38]
cmp edi, 0xc00000bb
je 0x14015654f
mov eax, edi
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, ebp
mov rcx, r14
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.ntdll.dll_NtTerminateProcess]
Function at 0x1401568e0
Capabilities:
Get system information on windows

Disassembly:
push r14
sub rsp, 0x60
mov r14, r8
test r8, r8
jne 0x1401568fa
mov eax, 0xc0000030
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x50], r15
mov eax, 0x100
xor r15d, r15d
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], 0x1000000
nop dword [rax]
mov rcx, qword [0x1402bfe50]
xor edx, edx
movzx r8d, ax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rsp + 0x40], rax
test rax, rax
je 0x140156a92
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x140156979
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1402bfe50]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax]
cmp ebx, 0xc0000004
jne 0x14015698f
movzx eax, word [rsp + 0x3a]
jmp 0x140156920
lfence
test ebx, ebx
jns 0x1401569a9
mov r15, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop r14
ret
mov qword ss:[rsp + 0x78], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x80], rsi
mov edx, 0x5c
movzx esi, word [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call sym.SystemInformer.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
jne 0x140156a02
movzx eax, word [rsp + 0x38]
test ax, ax
je 0x140156a15
mov rbp, qword [rsp + 0x40]
lea rcx, [rax + 0x12]
mov esi, eax
jmp 0x140156a23
add rax, rax
lea rbp, [rdi + 2]
add rbp, rax
sub rsi, rax
add rsi, 0xfffffffffffffffe
jne 0x140156a1f
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rdi, rax
jmp 0x140156a56
lea rcx, [rsi + 0x12]
mov rdx, qword [0x1402bfcf8]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rsi
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rsi], r15w
test rbp, rbp
je 0x140156a56
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.1401e3aa0
mov qword [r14], rdi
xor edx, edx
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x1402bfe50]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xc0000017
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
Function at 0x140156ac0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x40
mov r15, rdx
mov rbx, rcx
mov rcx, qword [0x1402bfe50]
mov edx, 4
mov r8d, 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdi, rax
lea r8d, [r12 + 0x18]
lea ecx, [r12 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140156b80
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx r8d, word [rsp + 0x2a]
lea edx, [r12 + 4]
mov rcx, qword [0x1402bfe50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
lea r8d, [r12 + 0x18]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea ecx, [r12 + 0x58]
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x140156b8c
lfence
jmp 0x140156c21
cmp word [rsp + 0x28], r12w
jne 0x140156bb0
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
jmp 0x140156c35
lfence
movzx eax, word [rsp + 0x28]
test ax, ax
jne 0x140156bca
nop dword [rax]
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x140156c1e
mov rdx, qword [0x1402bfcf8]
lea rcx, [rax + 0x12]
mov qword [rsp + 0x60], rbp
mov rbp, rax
mov qword [rsp + 0x68], r14
mov r14, qword [rsp + 0x30]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rbp
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rbp], r12w
test r14, r14
je 0x140156c14
mov rcx, qword [rbx + 8]
mov r8, rbp
mov rdx, r14
call fcn.1401e3aa0
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov qword [r15], rbx
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret
Function at 0x140159d70
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140159dbc
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x30], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x70
pop rbx
ret

Function at 0x140159dd0
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
mov rax, qword [rdx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov r9d, 8
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x48
ret

Function at 0x140159e00
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
mov r9d, 8
lea r8, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
lfence
test eax, eax
js 0x140159e3a
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x40
pop rbx
ret

Function at 0x140159e60
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x140159e6e
mov rax, qword [rdx]
jmp 0x140159e70
xor eax, eax
mov r9d, 8
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x48
ret

Function at 0x140159ea0
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
mov rax, qword [rdx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov r9d, 8
mov dword [rsp + 0x20], 0x13
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x48
ret
Function at 0x140159ee0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
cmp dword [0x1402b5e88], 0x6a
mov rdi, rcx
jb 0x140159f28
mov r9d, 4
mov dword [rax + 0x10], 0x13
lea r8, [rax + 0x10]
mov dword [rsp + 0x20], 0x40
lea rdx, [rax - 0x58]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop word [rax + rax]
test eax, eax
jns 0x14015a023
mov qword [rsp + 0xc0], rbx
lfence
mov r9d, 1
mov byte [rsp + 0xc8], 1
lea r8, [rsp + 0xc8]
mov dword [rsp + 0x20], 0xd
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ebx, eax
test eax, eax
jns 0x14015a01b
xorps xmm0, xmm0
mov qword [rsp + 0x88], rdi
xor edi, edi
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x50], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rdi
lea r9, [rsp + 0x70]
mov dword [rsp + 0x40], 0x1000
lea r8, [rsp + 0x80]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0x30], 4
mov edx, 0x10000
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rax
movdqu xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x14015a019
mov rcx, qword ds:[rsp + 0xd0]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0xc0]
mov eax, edi
add rsp, 0xb0
pop rdi
ret
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret