joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
xor eax, eax
lea rcx, [rbp - 0x15]
mov rbx, r8
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rbp - 0x39], xmm0
lea r8d, [rax + 0x64]
call fcn.180006360
mov dword [rbp - 0x19], 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x41]
mov edx, 0xb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800010fe
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x1800010f4
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov r8, rbx
mov qword [rsp + 0x48], rax
xor edx, edx
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1800010ea
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret

Function at 0x180001d8c
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov r10, rcx
movups xmm0, xmmword [0x180027fd0]
movdqu xmmword [rsp + 0x50], xmm0
mov r8d, edx
and r8d, 7
mov eax, r8d
neg eax
sbb r9d, r9d
and r9d, 8
add r9d, 8
lea rax, [0x180028008]
lea rcx, [0x180027fe8]
test r8d, r8d
cmove rcx, rax
and dword [rsp + 0x48], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], edx
mov qword [r11 - 0x38], r10
mov dword [r11 - 0x40], r9d
lea rax, [r11 - 0x18]
mov qword [r11 - 0x48], rax
xor r9d, r9d
mov r8d, edx
mov rdx, r10
mov rcx, qword [rcx]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
jmp 0x180001e04
add rsp, 0x68
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140022060]
mov dword [rax], 1
mov rax, qword [0x140022070]
mov dword [rax], 1
mov rax, qword [0x140022080]
mov dword [rax], 1
mov rax, qword [0x140022000]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003ab0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov r9d, dword [rcx + 0x48]
mov rsi, qword [rcx]
movabs rax, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
lea r9, [rcx + r9 + 0x28]
cmp rsi, 0x20
jb 0x140003b8c
mov rbx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov r10, qword [rcx + 0x20]
mov rdi, qword [rcx + 0x18]
rorx r15, rbx, 0x3f
imul rbx, rax
rorx r12, r14, 0x39
imul r14, rax
rorx r13, r10, 0x2e
imul r10, rax
add r12, r15
rorx r15, rdi, 0x34
imul rdi, rax
add r13, r15
add r13, r12
rorx rbx, rbx, 0x21
rorx r14, r14, 0x21
rorx r10, r10, 0x21
imul rbx, rdx
imul r14, rdx
rorx rdi, rdi, 0x21
imul r10, rdx
imul rdi, rdx
xor rbx, r13
imul rbx, rdx
add rbx, r11
xor r14, rbx
imul r14, rdx
add r14, r11
xor rdi, r14
imul rdi, rdx
add rdi, r11
xor r10, rdi
imul r10, rdx
add r10, r11
jmp 0x140003b93
mov r10, qword [rcx + 0x18]
add r10, r8
lea rdi, [rcx + 0x28]
add r10, rsi
add rcx, 0x30
cmp rcx, r9
jbe 0x140003bb0
mov rsi, rdi
jmp 0x140003be1
mov rcx, qword [rdi]
lea rsi, [rdi + 8]
add rdi, 0x10
imul rcx, rax
rorx rcx, rcx, 0x21
imul rcx, rdx
xor rcx, r10
rorx r10, rcx, 0x25
imul r10, rdx
add r10, r11
cmp rdi, r9
mov rdi, rsi
jbe 0x140003bb0
movabs rcx, 0x165667b19e3779f9
lea r11, [rsi + 4]
cmp r11, r9
jbe 0x140003bf9
mov r11, rsi
jmp 0x140003c38
mov esi, dword [rsi]
imul rsi, rdx
xor rsi, r10
rorx r10, rsi, 0x29
imul r10, rax
add r10, rcx
jmp 0x140003c38
movzx esi, byte [r11]
inc r11
imul rsi, r8
xor rsi, r10
rorx r10, rsi, 0x35
imul r10, rdx
cmp r11, r9
jb 0x140003c20
mov rdx, r10
shr rdx, 0x21
xor rdx, r10
imul rdx, rax
mov r8, rdx
shr r8, 0x1d
xor r8, rdx
imul r8, rcx
mov rax, r8
shr rax, 0x20
xor rax, r8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400119a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rdi, [rsp + 0x80]
mov r9d, edx
mov rsi, rcx
lea r8, [0x140021480]
mov edx, pe_nt_image_headers64
mov r15d, pe_nt_image_headers64
mov rcx, rdi
call fcn.140011b70
movzx eax, byte [rsp + 0x80]
mov word [rsp + 0x100], 0
test al, al
je 0x140011a8a
lea r12, [rsp + 0x100]
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
nop word cs:[rax + rax]
mov r8d, 2
mov rcx, rbx
mov rdx, r14
mov byte [rsp + 0x2c], al
mov byte [rsp + 0x2d], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140011b5b
cmp word [r12], 0
mov rax, r12
mov rcx, r15
je 0x140011a61
mov rcx, r15
mov rdx, r12
nop dword [rax + rax]
dec rcx
cmp word [rdx + 2], 0
lea rax, [rdx + 2]
mov rdx, rax
jne 0x140011a50
test rcx, rcx
je 0x140011b5b
movzx ecx, word [rsp + 0x30]
add r12, 2
dec r15
mov word [rax], cx
mov word [rax + 2], 0
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140011a10
mov word [rsp + 0x30], 0
movzx eax, byte [rsi]
test al, al
je 0x140011b36
lea r14, [rsp + 0x30]
mov r15d, 0x28
lea rdi, [rsp + 0x2c]
lea rbx, [rsp + 0x2a]
nop word cs:[rax + rax]
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140011b5b
cmp word [r14], 0
mov rax, r14
mov rcx, r15
je 0x140011b11
mov rcx, r15
mov rdx, r14
nop word cs:[rax + rax]
dec rcx
cmp word [rdx + 2], 0
lea rax, [rdx + 2]
mov rdx, rax
jne 0x140011b00
test rcx, rcx
je 0x140011b5b
movzx ecx, word [rsp + 0x2c]
add r14, 2
dec r15
mov word [rax], cx
mov word [rax + 2], 0
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x140011ac0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
int3
Function at 0x140012b60
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rcx, qword [0x14002c0b8]
test rcx, rcx
je 0x140012ba4
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012b97
mov rcx, qword [0x14002c0b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002c0b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e8f0], 1
jne 0x140012c41
vmovups ymm0, ymmword [0x1400217b0]
vmovups ymm1, ymmword [0x140021798]
lea rsi, [rsp + 0x20]
mov rcx, rsi
vmovups ymmword [rsp + 0x38], ymm0
vmovups ymmword [rsp + 0x20], ymm1
vzeroupper
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
lea rdi, [0x14002c0d0]
nop
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012c41
and eax, 0x10
je 0x140012c41
mov ecx, 0x64
call r15
vmovups ymm0, ymmword [0x1400217b0]
vmovups ymm1, ymmword [0x140021798]
mov rcx, rsi
vmovups ymmword [rsp + 0x38], ymm0
vmovups ymmword [rsp + 0x20], ymm1
vzeroupper
call r12
dec ebx
jne 0x140012c00
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140014690
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.140015e10
sub rsp, rax
mov eax, dword [0x14002c0c0]
mov rsi, rcx
test eax, eax
je 0x1400146b3
test eax, eax
jg 0x1400146fb
jmp 0x140014732
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400121c0
test al, al
je 0x1400147a9
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002c0c0]
lea rdx, [0x140031130]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14002c0c0], eax
test eax, eax
jle 0x140014732
lea rdi, [0x140031130]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001479c
movsxd rax, dword [0x14002c0c0]
inc rbx
add rdi, 8
cmp rbx, rax
jl 0x140014710
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140014749
cmp word [rsi + 2], 0x3a
mov al, 1
je 0x14001479e
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001476a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001479e
cmp dword [0x14002c0c0], 0x3ff
jg 0x14001479e
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002c0c0]
lea rdx, [0x140031130]
mov qword [rdx + rcx*8], rax
inc ecx
mov dword [0x14002c0c0], ecx
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140013a50
int3

Function at 0x140014af0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001ba40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001ba40
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400157c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004b1e8]
test eax, eax
je 0x14001585a
lea rax, [0x14004b1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004b1f0]
mov qword [rbp - 8], rax
jmp 0x14001583e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015832
cmp qword [rbp - 0x10], 0
je 0x140015832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400157f8
lea rax, [0x14004b1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001585b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140015960
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015988
mov eax, 0
jmp 0x1400159d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400159b1
mov eax, 0
jmp 0x1400159d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400159d1
mov eax, 0
jmp 0x1400159d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400159dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015a5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015a51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015a51
mov rax, qword [rbp - 8]
jmp 0x140015a6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015a24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001680
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
xor edi, edi
mov ecx, 0xa0
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x58], rdi
call fcn.140001bd0
movdqa xmm0, xmmword [0x140003580]
lea rdx, [rsp + 0x70]
movdqu xmmword [rsp + 0x60], xmm0
mov rcx, rax
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [str.C:Users_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1400034b0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400034c0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400034d0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400034e0]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x1400034f0]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x140003500]
movups xmmword [rax + 0x60], xmm0
movaps xmm1, xmmword [0x140003510]
movups xmmword [rax + 0x70], xmm1
movaps xmm0, xmmword [0x140003520]
movups xmmword [rax + 0x80], xmm0
movsd xmm0, qword [0x140003530]
movsd qword [rax + 0x90], xmm0
mov eax, dword [0x140003538]
mov dword [rcx + 0x98], eax
movzx eax, word [0x14000353c]
mov word [rcx + 0x9c], ax
mov word [rcx + 0x9e], di
lea rcx, [rsp + 0x50]
call fcn.140001180
xorps xmm0, xmm0
mov dword [rbp + 0x470], 0x68
mov rbx, rax
lea rcx, str.C:Windowsexplorer.exe
xor eax, eax
xor r9d, r9d
mov dword [rbp + 0x4d4], eax
xor r8d, r8d
mov qword [rbp + 0x460], rax
xor edx, edx
lea rax, [rbp + 0x450]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x470]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
movups xmmword [rbp + 0x474], xmm0
movups xmmword [rbp + 0x484], xmm0
movups xmmword [rbp + 0x494], xmm0
movups xmmword [rbp + 0x4a4], xmm0
movups xmmword [rbp + 0x4b4], xmm0
movups xmmword [rbp + 0x4c4], xmm0
movups xmmword [rbp + 0x450], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
mov qword [rsp + 0x70], rdi
mov r8d, 0x4d0
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x458]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x70]
mov rcx, qword [rbp + 0x450]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, rbx
lea rcx, [rbp + 0x450]
call fcn.1400013d0
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140001bb0
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400025ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400025ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400025ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400025ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400025ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400025d0
xor al, al
add rsp, 0x28
ret
Function at 0x1400013c0
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.ntdll.dll_RtlNormalizeProcessParams]
mov rbx, qword [rax + 0x78]
test rbx, rbx
je 0x1400013fa
cmp word [rbx], 0
jne 0x1400013fe
mov rbx, qword [rax + 0x68]
lea rax, [rsp + 0x48]
xor r8d, r8d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.140001200
mov rax, qword gs:[0x30]
mov esi, dword [rsp + 0x40]
mov rcx, qword [rax + 0x60]
mov eax, dword [rsp + 0x48]
lea edx, [rsi*8 + 8]
mov rcx, qword [rcx + 0x30]
lea r8, [rdx + rax*2]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140001458
mov edx, 0xc0000017
jmp 0x140001487
lea eax, [rsi + 1]
mov rdx, rdi
lea r8, [rdi + rax*8]
mov rcx, rbx
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140001200
mov ecx, dword [rsp + 0x40]
mov rdx, rdi
call fcn.140001070
mov edx, eax
mov rcx, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ntdll.dll_NtTerminateProcess]
Function at 0x1400014b0
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
lea rcx, str.____Searching_pattern..._n
call fcn.140001000
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], 0
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
xor edi, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000154b
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x60]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001500
test eax, eax
js 0x140001599
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001599
lea rsi, [rdi + 0x2e]
nop dword [rax]
movzx ecx, word [rsi]
lea rdx, [0x1400031e0]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.ntdll.dll__stricmp]
test eax, eax
je 0x14000163c
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x140001560
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
xor edx, edx
lea rcx, str.ntoskrnl.exe
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x28]
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [rsp + 0x30]
xor edi, edi
mov dword [rsp + 0x20], 0xd38b48ff
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
test eax, eax
je 0x140001679
lea r9, [rbp + 4]
mov r10d, eax
nop word [rax + rax]
xor eax, eax
lea rcx, [rsp + 0x24]
mov r8, r9
lea rdx, [rsp + 0x20]
sub r8, rcx
movzx ecx, byte [r8 + rdx]
cmp byte [rdx], cl
jne 0x14000165a
cmp eax, 6
je 0x140001657
inc eax
inc rdx
cmp eax, 7
jb 0x140001622
jmp 0x14000165a
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400015ac
mov rdi, r9
inc r9
sub r10, 1
jne 0x140001610
test rdi, rdi
je 0x140001679
mov rdx, rdi
lea rcx, str.___Instr_:__p_n
call fcn.140001000
jmp 0x140001685
lea rcx, str.____Couldnt_find_lea_r8___nt_SeCiCallbacks_
call fcn.140001000
mov ebx, dword [rdi + 3]
lea rcx, str.___usermode_CiCallbacks_:__p_n
add ebx, 7
movabs rax, 0xffffffff00000000
add ebx, edi
and rdi, rax
add rbx, rdi
mov rdx, rbx
call fcn.140001000
sub rbx, rbp
lea rcx, str.___Offset__:__p_n
mov rdx, rbx
call fcn.140001000
lea rdx, str.ZwFlushInstructionCache
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
sub rcx, rbp
mov rbp, qword [rsp + 0x70]
add rax, rcx
lea rcx, [rbx + 0x20]
mov rbx, qword [rsp + 0x68]
add rcx, rsi
mov qword [r14 + 8], rax
mov rax, r14
mov qword [r14], rcx
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140001bf0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov byte [rax + 0x18], r8b
push rdi
sub rsp, 0x660
mov rsi, rdx
lea r9, [rax + 0x18]
mov rdi, rcx
mov dl, 1
mov ecx, 0xa
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x140001c3a
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001000
mov eax, ebx
jmp 0x140001e71
xor ebx, ebx
lea r8, [rsp + 0x450]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140001e71
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x240]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140001e71
lea rdx, [rsp + 0x240]
lea rcx, [section..data]
call fcn.140001700
lea rdx, [section..data]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001e71
lea r8, str.___
mov dword [rsp + 0x688], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscpy_s]
lea r8, [rsp + 0x240]
mov edx, 0x87
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscat_s]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001d00
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
xor ecx, ecx
lea rdx, [section..data]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001e71
lea rax, [rsp + 0x688]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [section..data]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001e71
lea rdx, [rsp + 0x450]
lea rcx, [0x140005210]
call fcn.140001700
lea rdx, [0x140005210]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov edi, eax
test eax, eax
js 0x140001e6f
lea r8, str.___
mov dword [rsp + 0x688], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscpy_s]
lea r8, [rsp + 0x450]
mov edx, 0x87
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscat_s]
lea rax, [rsp + 0x30]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140001df0
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
xor ecx, ecx
lea rdx, [0x140005210]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov edi, eax
test eax, eax
js 0x140001e6f
lea rax, [rsp + 0x688]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140005210]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov edi, eax
test eax, eax
js 0x140001e6f
call fcn.1400017b0
mov eax, edi
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret