joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006bfc
Capabilities:
Install driver
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor ebp, ebp
mov rbx, rdx
mov sil, r8b
mov rdx, rcx
test rcx, rcx
je 0x180006cd6
test rbx, rbx
jne 0x180006c36
mov eax, 0xc00000f0
jmp 0x180006cdb
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1800016c8
test eax, eax
js 0x180006cd6
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.180006a58
test eax, eax
js 0x180006cdb
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test sil, sil
je 0x180006ccc
cmp eax, 0xc000010e
je 0x180006cb0
cmp eax, 0xc0000035
je 0x180006cb0
cmp eax, 0x40000000
jne 0x180006cdb
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x180006cdb
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x180006cdb
cmp eax, 0x40000000
cmove eax, ebp
jmp 0x180006cdb
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180006cf4
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1800016c8
test eax, eax
jns 0x180006d3f
mov eax, 0xc00000ef
jmp 0x180006dad
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.180006a58
test eax, eax
js 0x180006dad
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x180006dab
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.18000103c
lea rdx, [rsp + 0x250]
call fcn.180006878
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret
Function at 0x180006eb8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov esi, ecx
mov rax, qword gs:[0x30]
mov edi, 0x1000
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180006f8e
jmp 0x180006f4a
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x180006f8e
mov rax, qword gs:[0x30]
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180006f00
test eax, eax
js 0x180006f6d
mov rax, rbx
jmp 0x180006f90
test rbx, rbx
je 0x180006f8e
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x20
mov r8d, 0x1000
mov edx, 8
mov dword [rsp + 0x30], r8d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180007080
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180007053
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0x80000005
jne 0x180007088
cmp dword [rbx], 0
jne 0x18000708c
test rbx, rbx
je 0x180007080
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
add rsp, 0x20
pop rbx
ret
test eax, eax
js 0x18000705f
mov rax, rbx
jmp 0x180007082
Function at 0x180007448
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xa0
mov rbx, r9
mov qword [r11 - 0x60], 0
lea rdi, [r11 - 0x50]
xor eax, eax
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
lea rdx, str.Device
lea rcx, [r11 - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
and qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
lea r8, [rsp + 0x68]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180007621
and dword [rsp + 0xb8], 0
and dword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x180007603
mov r8d, dword [rsp + 0xc0]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180007603
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rsp + 0xc0]
mov rdx, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1800075e5
mov rdx, rbx
mov rcx, rdi
call fcn.1800073ac
mov dword [rsp + 0xb0], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0xb0], 0
jl 0x1800074e2
and dword [rsp + 0x40], 0
jmp 0x180007603
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007613
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x18000761d
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x180007864
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x1800078d6
mov edi, 0xc000009a
jmp 0x180007a29
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x180007921
mov edi, 0xc000009a
jmp 0x180007a0d
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x1800079f1
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x1800079f1
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x180007a2d
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x180007c9c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.180007bd0
mov rdi, rax
test rax, rax
je 0x180007ced
lea rcx, str.PROCEXP152
call fcn.180006cf4
not eax
mov rcx, rdi
shr eax, 0x1f
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019cc
xor al, al
add rsp, 0x28
ret
Function at 0x1800011f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1800dc008]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [rsp + 0x280]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1800012e0
lea rcx, [rsp + 0x280]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180001240
movsd xmm0, qword [str..]
lea rdx, [rsp + 0x30]
movzx eax, word [0x180036530]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800012e0
mov qword [rsp + 0x4b0], rbx
xor ebx, ebx
nop dword [rax + rax]
movzx edx, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5e]
cmp dx, 0x2e
jne 0x1800012b7
test cx, cx
je 0x1800012b9
cmp dx, dx
jne 0x1800012b7
cmp cx, dx
jne 0x1800012b7
cmp word [rsp + 0x60], 0
je 0x1800012b9
inc ebx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180001290
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rbx, qword [rsp + 0x4b0]
jmp 0x1800012e5
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180002210
add rsp, 0x4a0
pop rdi
ret

Function at 0x180001300
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ebx, 0xa
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x32
lea ecx, [rdx - 0x31]
call qword [sym.imp.KERNEL32.dll_Beep]
sub rbx, 1
jne 0x180001320
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
sub eax, edi
cmp eax, 0x2904
setae cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400228bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022906
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022906
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022906
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022906
cmp dword [rcx + 0x84], 0xe
jbe 0x140022906
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140022908
xor al, al
add rsp, 0x28
ret

Function at 0x14002576c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400257db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400257db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400257db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400257db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400257db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400257db
cmp dword [rcx + 0xf8], 0
je 0x1400257db
mov ecx, ebx
call fcn.14002588c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140025668
nop
cmp dword [rbp + 0x20], 0
je 0x140025829
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140025834
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002576c

Function at 0x140025970
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400257db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400257db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400257db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400257db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400257db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400257db
cmp dword [rcx + 0xf8], 0
je 0x1400257db
mov ecx, ebx
call fcn.14002588c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140025668
nop
cmp dword [rbp + 0x20], 0
je 0x140025829
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140025834
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002576c
Function at 0x140036310
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140036397
mov rsi, rbx
cmp word [rax], bp
je 0x140036356
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140036340
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003633c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140033930
mov rdi, rax
test rax, rax
je 0x140036384
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c560
mov rbp, rdi
xor ecx, ecx
call fcn.140031dec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140039ab0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140039ac6
mov al, 1
jmp 0x140039b26
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140039ad7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140039b24
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036658
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039b24
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140039b24
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140039b24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140039b26
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003be90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003beb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003beb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400037a0
Capabilities:
Check for sandbox and av modules

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140003884
lea rcx, str.sbiedll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.sbieDll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vboxhook.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.VBoxHook.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmcheck.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmsrvc.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmtools.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vgauth.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmhgfs.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmguestlib.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140003884
lea rcx, str.vmhgfs.dll
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rsp, 0x28
ret