joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162800
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140171dc0
test rax, rax
jne 0x14016282c
mov eax, 0xc00000bb
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x1402cba10]
mov r8, rdi
mov qword [rsp + 0x70], rbx
mov edx, 4
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
lea r15, [0x14023fe60]
mov r13d, 0x5a4d
test byte [0x1402c71a0], 1
mov rsi, rax
jne 0x1401629cc
lock bts qword [0x1402c71a0], 0x1f
setb al
test al, al
jne 0x1401629b5
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x12
mov qword [rsp + 0x38], r15
call fcn.14017ede0
test rax, rax
jne 0x14016290f
xor edx, edx
mov r8d, 0x800
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x14016290f
xor edx, edx
mov r8d, 0x200
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax]
test rax, rax
jne 0x14016290f
cmp dword [0x1402c0f40], 0x3e
jae 0x1401629a7
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1401629a7
cmp word [rax], r13w
jne 0x1401629a7
mov edx, dword ds:[rax + 0x3c]
lea ecx, [rdx - 1]
cmp ecx, 0x7ffffffd
ja 0x1401629a7
cmp dword [rdx + rax], 0x4550
jne 0x1401629a7
add rdx, 0x88
add rdx, rax
mov ecx, dword [rdx]
test ecx, ecx
je 0x1401629a7
cmp dword [rdx + 4], r12d
je 0x1401629a7
lea r8, ds:[rax + rcx]
mov word [rsp + 0x20], r12w
mov rcx, rax
lea r9, str.NtQueryInformationTransactionManager
call fcn.14017f180
mov r9, rax
test rax, rax
je 0x1401629a7
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402ceef8], rax
xor rax, r9
mov qword [0x1402cf038], rax
lea rcx, [0x1402c71a0]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x1401629cc
test byte [0x1402c71a0], 1
jne 0x1401629cc
xor edx, edx
lea rcx, [0x1402c71a0]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cf038]
test rax, rax
je 0x1401629ea
mov rcx, qword [0x1402ceef8]
nop
test rcx, rcx
je 0x1401629ea
xor rax, rcx
jmp 0x1401629ed
mov rax, r12
mov r9d, edi
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 2
mov rcx, rbp
call qword [case.0x14013dbaa.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x140162a56
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x140162a4f
lfence
mov rcx, qword [0x1402cba10]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x14016286d
mov eax, 0xc000009a
jmp 0x140162a73
test ebx, ebx
js 0x140162a5f
mov qword [r14], rsi
jmp 0x140162a71
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x140162aa0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140171c00
test rax, rax
jne 0x140162acc
mov eax, 0xc00000bb
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x1402cba10]
mov r8, rdi
mov qword [rsp + 0x70], rbx
mov edx, 4
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
lea r15, [0x14023fe60]
mov r13d, 0x5a4d
test byte [0x1402c7130], 1
mov rsi, rax
jne 0x140162c6c
lock bts qword [0x1402c7130], 0x1f
setb al
test al, al
jne 0x140162c55
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x12
mov qword [rsp + 0x38], r15
call fcn.14017ede0
test rax, rax
jne 0x140162baf
xor edx, edx
mov r8d, 0x800
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x140162baf
xor edx, edx
mov r8d, 0x200
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax]
test rax, rax
jne 0x140162baf
cmp dword [0x1402c0f40], 0x3e
jae 0x140162c47
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140162c47
cmp word [rax], r13w
jne 0x140162c47
mov edx, dword ds:[rax + 0x3c]
lea ecx, [rdx - 1]
cmp ecx, 0x7ffffffd
ja 0x140162c47
cmp dword [rdx + rax], 0x4550
jne 0x140162c47
add rdx, 0x88
add rdx, rax
mov ecx, dword [rdx]
test ecx, ecx
je 0x140162c47
cmp dword [rdx + 4], r12d
je 0x140162c47
lea r8, ds:[rax + rcx]
mov word [rsp + 0x20], r12w
mov rcx, rax
lea r9, str.NtQueryInformationTransaction
call fcn.14017f180
mov r9, rax
test rax, rax
je 0x140162c47
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402cefc8], rax
xor rax, r9
mov qword [0x1402cef30], rax
lea rcx, [0x1402c7130]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x140162c6c
test byte [0x1402c7130], 1
jne 0x140162c6c
xor edx, edx
lea rcx, [0x1402c7130]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cef30]
test rax, rax
je 0x140162c8a
mov rcx, qword [0x1402cefc8]
nop
test rcx, rcx
je 0x140162c8a
xor rax, rcx
jmp 0x140162c8d
mov rax, r12
mov r9d, edi
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [case.0x14013dbaa.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x140162cf6
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x140162cef
lfence
mov rcx, qword [0x1402cba10]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140162b0d
mov eax, 0xc000009a
jmp 0x140162d13
test ebx, ebx
js 0x140162cff
mov qword [r14], rsi
jmp 0x140162d11
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x140162d40
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140171a40
test rax, rax
jne 0x140162d6c
mov eax, 0xc00000bb
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x1402cba10]
mov r8, rdi
mov qword [rsp + 0x70], rbx
mov edx, 4
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
lea r15, [0x14023fe60]
mov r13d, 0x5a4d
test byte [0x1402c7150], 1
mov rsi, rax
jne 0x140162f0c
lock bts qword [0x1402c7150], 0x1f
setb al
test al, al
jne 0x140162ef5
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x12
mov qword [rsp + 0x38], r15
call fcn.14017ede0
test rax, rax
jne 0x140162e4f
xor edx, edx
mov r8d, 0x800
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x140162e4f
xor edx, edx
mov r8d, 0x200
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax]
test rax, rax
jne 0x140162e4f
cmp dword [0x1402c0f40], 0x3e
jae 0x140162ee7
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140162ee7
cmp word [rax], r13w
jne 0x140162ee7
mov edx, dword ds:[rax + 0x3c]
lea ecx, [rdx - 1]
cmp ecx, 0x7ffffffd
ja 0x140162ee7
cmp dword [rdx + rax], 0x4550
jne 0x140162ee7
add rdx, 0x88
add rdx, rax
mov ecx, dword [rdx]
test ecx, ecx
je 0x140162ee7
cmp dword [rdx + 4], r12d
je 0x140162ee7
lea r8, ds:[rax + rcx]
mov word [rsp + 0x20], r12w
mov rcx, rax
lea r9, str.NtQueryInformationResourceManager
call fcn.14017f180
mov r9, rax
test rax, rax
je 0x140162ee7
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402cefa0], rax
xor rax, r9
mov qword [0x1402cf020], rax
lea rcx, [0x1402c7150]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x140162f0c
test byte [0x1402c7150], 1
jne 0x140162f0c
xor edx, edx
lea rcx, [0x1402c7150]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cf020]
test rax, rax
je 0x140162f2a
mov rcx, qword [0x1402cefa0]
nop
test rcx, rcx
je 0x140162f2a
xor rax, rcx
jmp 0x140162f2d
mov rax, r12
mov r9d, edi
mov qword [rsp + 0x20], r12
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [case.0x14013dbaa.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x140162f96
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x140162f8f
lfence
mov rcx, qword [0x1402cba10]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140162dad
mov eax, 0xc000009a
jmp 0x140162fb3
test ebx, ebx
js 0x140162f9f
mov qword [r14], rsi
jmp 0x140162fb1
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x1401649c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rsp + 0x38], 0x800
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, 0x800
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140164a58
mov rcx, qword [0x1402cba10]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x38]
mov edx, 4
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lfence
test eax, eax
js 0x140164a62
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140164a80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub rsp, 0x178
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x130
call fcn.14020ba80
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov r8d, 0x130
lea rdx, [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140164b1d
cmp dword [rsp + 0x30], 1
jb 0x140164b1d
lea rax, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140164af0
lea rcx, ds:[rsp + 0x60]
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x178
ret
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x178
ret
Function at 0x140164b40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x1402c0f40], 0x64
jb 0x140164c07
mov qword [r11 + 8], rbx
mov qword [r11 - 8], rdi
mov rdi, qword [0x1402c6fa0]
test rdi, rdi
jne 0x140164b8a
nop dword [rax]
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x140164bdc
mov rdx, qword [0x1402cb8c0]
lea rcx, [rdi + 0x12]
mov qword [rsp + 0x188], rsi
mov rsi, qword [str.SystemRootSystem32_ntoskrnl.exe]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
xor ecx, ecx
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], cx
test rsi, rsi
je 0x140164bd4
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020be40
mov rsi, qword [rsp + 0x188]
mov rdi, qword [rsp + 0x170]
mov rax, rbx
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x178
ret
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x130
call fcn.14020ba80
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov r8d, 0x130
lea rdx, [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax]
test eax, eax
je 0x140164c78
cmp eax, 0xc0000004
jne 0x140164c78
cmp dword [rsp + 0x30], 1
jb 0x140164c78
lea rax, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140164c60
lea rcx, [rsp + 0x60]
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov rcx, rax
jmp 0x140164c7a
xor ecx, ecx
mov rax, rcx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x178
ret
Function at 0x140164ca0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x130
lea rcx, [rsp + 0x30]
call fcn.14020ba80
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov r8d, 0x130
lea rdx, [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax]
test eax, eax
je 0x140164e10
cmp eax, 0xc0000004
jne 0x140164e15
cmp dword [rsp + 0x30], 1
jb 0x140164e10
nop
test rsi, rsi
je 0x140164de8
cmp dword [0x1402c0f40], 0x64
jb 0x140164dc2
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x170], rdi
mov rdi, qword [0x1402c6d68]
test rdi, rdi
jne 0x140164d5c
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x140164dad
mov rdx, qword [0x1402cb8c0]
lea rcx, [rdi + 0x12]
mov qword [rsp + 0x178], rbp
mov rbp, qword [str.SystemRootSystem32_ntoskrnl.exe]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
xor ecx, ecx
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], cx
test rbp, rbp
je 0x140164da5
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, rbp
call fcn.14020be40
mov rbp, qword [rsp + 0x178]
mov rdi, qword [rsp + 0x170]
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x1b8]
jmp 0x140164de8
lea rax, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140164dd0
lea rcx, ds:[rsp + 0x60]
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov qword [rsi], rax
cmp dword [0x1402c0f40], 0x71
mov rax, qword [rsp + 0x48]
jb 0x140164e02
test rax, rax
jne 0x140164e02
mov rax, 0xfffffffffffffffe
mov qword [r14], rax
mov eax, dword [rsp + 0x50]
mov dword [r15], eax
xor eax, eax
jmp 0x140164e15
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x180
pop r15
pop r14
pop rsi
ret

Function at 0x140164e40
Capabilities:
Get system information on windows

Disassembly:
mov edx, 5
jmp sym.SystemInformer.exe_PhEnumProcessesEx
Function at 0x140164e60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x20
mov r8d, edx
mov esi, edx
mov r15, rcx
sub r8d, 5
je 0x140164eb3
sub r8d, 0x34
je 0x140164ea4
nop
cmp r8d, 0x5b
je 0x140164e95
mov eax, 0xc0000003
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x1402c6d40]
lea r14, [0x1402c6d40]
jmp 0x140164ec0
mov eax, dword [0x1402c6d3c]
lea r14, [0x1402c6d3c]
jmp 0x140164ec0
mov eax, dword [0x1402c6d38]
lea r14, [0x1402c6d38]
mov rcx, qword [0x1402cba10]
xor edx, edx
mov r8d, eax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140164f45
nop
mov r8d, dword ds:[rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140164f16
cmp eax, 0xc0000004
jne 0x140164f5e
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, qword [0x1402cba10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140164ef0
mov eax, 0xc0000017
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
lfence
test ebx, ebx
jns 0x140164f7b
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x140164f4a
mov eax, dword ds:[rsp + 0x48]
cmp eax, 0x100000
ja 0x140164f8a
mov dword [r14], eax
mov qword [r15], rdi
mov eax, ebx
jmp 0x140164f4a
Function at 0x1401652c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, dword [0x1402c6cd0]
mov r14, rcx
mov rcx, qword [0x1402cba10]
xor ebp, ebp
mov r8d, ebx
mov dword [rsp + 0x48], ebp
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140165371
cmp ebp, 0xa
jae 0x140165379
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [rsp + 0x48]
mov edx, 4
mov rcx, qword [0x1402cba10]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, ds:[rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
inc ebp
mov esi, eax
cmp eax, 0xc0000004
je 0x140165318
test esi, esi
jns 0x14016542f
mov ebx, dword [0x1402c6cd0]
mov edx, 4
mov rcx, qword [0x1402cba10]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140165408
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140165428
lfence
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x1401653b4
test esi, esi
jns 0x14016542f
lfence
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140165443
mov eax, 0xc000009a
jmp 0x140165445
lfence
cmp ebx, 0x200000
ja 0x140165440
mov dword [0x1402c6cd0], ebx
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140165780
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x1402cba10]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140165828
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140165848
lfence
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x1401657d2
lfence
test esi, esi
jns 0x14016584f
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140165852
mov eax, 0xc000009a
jmp 0x140165854
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140165880
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x1402cba10]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140165928
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140165948
lfence
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x1401658d2
lfence
test esi, esi
jns 0x14016594f
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140165952
mov eax, 0xc000009a
jmp 0x140165954
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140166880
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movzx r13d, r8b
mov ebx, edx
mov r14, rcx
mov r15d, 0x400
mov rcx, qword [0x1402cba10]
mov r8d, r15d
mov edx, 4
mov r12, r9
mov dil, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
nop dword [rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r12
xor r9d, r9d
mov byte [rsp + 0x40], r13b
xor r8d, r8d
mov dword [rsp + 0x38], ebx
xor edx, edx
mov dword [rsp + 0x30], r15d
mov rcx, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x140166928
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x140166938
cmp ebx, 0xc0000004
jne 0x140166972
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1402cba10]
lea eax, [r15 + r15]
mov r8d, eax
mov edx, 4
mov r15d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [rsp + 0xa8]
jmp 0x1401668ca
cmp ebx, 0x80000006
je 0x1401669ee
test ebx, ebx
js 0x1401669f0
lfence
mov r8, qword [rsp + 0xc8]
mov rdx, rsi
mov rax, qword [rsp + 0xc0]
mov rcx, r14
xor ebp, ebp
mov rdi, rsi
call qword [case.0x14013dbaa.0]
test al, al
je 0x1401669f0
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x1401669df
mov r8, qword [rsp + 0xc8]
add ebp, eax
mov rax, qword [rsp + 0xc0]
mov rcx, r14
mov edi, ebp
add rdi, rsi
mov rdx, rdi
call qword [case.0x14013dbaa.0]
test al, al
jne 0x1401669b0
jmp 0x1401669f0
mov ebx, dword [rsp + 0xa8]
xor dil, dil
jmp 0x1401668d0
xor ebx, ebx
mov rcx, qword [0x1402cba10]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret