joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180057490
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18004c034
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180057531
cmp ebx, dword [rsp + 0x30]
je 0x18005752a
test esi, esi
je 0x18005752a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180057505
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180057512
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800574ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180057516
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180057533
mov eax, 1
jmp 0x180057533
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005a3fc
Capabilities:
Get file size

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

Function at 0x18005d570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18005d598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18005d598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001060
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov word [rsp + 0x70], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6c]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x6c], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400010ff
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001850
add rsp, 0x80
pop rbx
ret

Function at 0x140001120
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x1b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001060
test eax, eax
jne 0x1400011c5
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400011c5
xor edx, edx
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.140002830
lea rax, [0x140014330]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400011e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x1400011dd
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140001850
add rsp, 0x1b8
ret
xor ecx, ecx
call fcn.140003224
int3
xor ecx, ecx
call fcn.140003224
int3
Function at 0x1400011f0
Capabilities:
Allocate or change rwx memory
Check if file exists
Encode data using xor
Execute shellcode via indirect call
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140001120
lea rcx, [0x140014404]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
jne 0x140001240
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [0x140014404]
xor ecx, ecx
lea rdx, [0x1416f6e80]
call qword [0x1416fb878]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [0x140014404]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012a0
xor r9d, r9d
lea r8, [0x140014338]
lea rdx, [0x140014340]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400013ea
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400012d9
xor r9d, r9d
lea r8, [0x140014338]
lea rdx, [0x140014358]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400013ea
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rsi
call fcn.140003474
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400013bb
mov ecx, dword [rsp + 0x48]
cmp rcx, qword [rsp + 0x40]
jne 0x1400013bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x40]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x140001380
movabs r8, 0x2492492492492493
lea r9, [0x1416f6ed0]
nop dword [rax]
mov rax, r8
mov rcx, rbx
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rbx + rsi], al
inc rbx
cmp rbx, rdi
jb 0x140001350
mov rdx, qword [rsp + 0x40]
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14000bdf0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
jmp 0x1400013dd
xor r9d, r9d
lea r8, [0x140014338]
lea rdx, [0x140014370]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140003460
mov rsi, qword [rsp + 0x70]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001850
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001410
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor eax, eax
lea rdx, [0x140014384]
xor ecx, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov rbx, rax
test rax, rax
je 0x1400014bb
lea rax, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea edx, [r8 + 5]
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x14000148c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400014b2
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x50]
test edx, edx
je 0x1400014b2
nop dword [rax]
mov eax, dword [r8]
cmp edx, eax
jb 0x1400014b2
add r8, rax
sub edx, eax
mov dword [rsp + 0x40], edx
jne 0x1400014a0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001850
add rsp, 0x460
pop rbx
ret

Function at 0x140003224
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400030b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400030b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400030b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400030b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400030b7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400030b7
cmp dword [rcx + 0xf8], 0
je 0x1400030b7
mov ecx, ebx
call fcn.140003158
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140002f48
cmp dword [rbp + 0x20], 0
je 0x140003104
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000310c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140003050
Function at 0x140001d10
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 0x140001d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070b4]
mov rbx, rcx
test esi, esi
jle 0x140001eb0
mov rax, qword [0x1400070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001db0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ed2
mov rax, qword [0x1400070b8]
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 [0x1400070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001eb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001e4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001e60
add dword [0x1400070b4], 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 [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e4e
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 0x140001dd8
mov rax, qword [0x1400070b8]
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 0x140002460
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x1400024bc
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 rsi, rsi
je 0x1400024b3
test eax, eax
jne 0x1400024b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002498
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 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400026f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002700
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 0x14000274d
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 0x140002744
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000274f
add rax, 0x28
cmp rax, r9
jne 0x140002730
xor eax, eax
ret

Function at 0x140002750
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027e0
mov rdx, qword [0x1400043c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027ce
cmp word [rax + 0x18], 0x20b
jne 0x1400027ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400027e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027b0
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 0x1400027f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002810
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002818
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002810
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000286d
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 0x140002864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002810
add rax, 0x28
cmp rax, r9
jne 0x140002850
xor eax, eax
ret

Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000288f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002898
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000288f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002920
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002917
test rcx, rcx
je 0x1400028d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002908
xor eax, eax
ret

Function at 0x140002930
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002990
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002998
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002990
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002990
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 0x1400029e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400029f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400029d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a22
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002a22
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 0x140002a85
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002a98
add rdx, 0x28
cmp r10, rdx
jne 0x140002a70
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002aa7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ab7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a8e
test ecx, ecx
jg 0x140002aa0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x172de00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x172de0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x172de1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x172de05
lea eax, [rcx + 1]
jmp 0x172de2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x172de3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x172de24
sub eax, 3
jb 0x172de5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x172dead
sar eax, 1
movsxd rbp, eax
jb 0x172de94
jmp 0x172de6c
add ebx, ebx
jne 0x172de6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x172de94
inc ecx
add ebx, ebx
jne 0x172de7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x172de94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x172de8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x172de7c
add ecx, 2
jmp 0x172de99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0172ddc2
jmp 0x172de0d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1317000]
mov eax, dword [rdi]
or eax, eax
je 0x172df09
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x132d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x172deb9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x172df03
mov qword [rbx], rax
add rbx, 8
jmp 0x172ded9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x172df4d
cmp al, 0xef
ja 0x172df35
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x172df15
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x172df24
mov eax, dword [rdi]
add rdi, 4
jmp 0x172df24
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x172dfa1
sub rsp, 0xffffffffffffff80
jmp 0x471dc0
Function at 0x140009550
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rax, qword [0x140016050]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.14000a4d0
test rax, rax
jne 0x140009595
xor al, al
jmp 0x140009671
cmp qword [rsp + 0x88], 0
jne 0x1400095bf
mov eax, dword [rsp + 0x80]
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x1400095bf
xor al, al
jmp 0x140009671
mov rax, qword [rsp + 0x90]
and rax, 0xfffffffffffff000
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
mov rax, qword [rsp + 0x98]
mov dword [rax], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.140008c90
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
cmp qword [rsp + 0x88], 0
jne 0x14000966d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
jmp 0x14000966f
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140012770
add rsp, 0x70
pop rdi
ret
Function at 0x140009b70
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xc0000001
cmp qword [rsp + 0x78], 0
jne 0x140009bbf
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x140009bbf
xor al, al
jmp 0x140009d1e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, qword [rsp + 0x80]
call fcn.140009760
movzx eax, al
test eax, eax
je 0x140009cdb
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax - 1]
mov rcx, rax
call fcn.140009760
movzx eax, al
test eax, eax
je 0x140009cdb
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
cmp dword [0x14001fffc], 0
je 0x140009c38
call fcn.1400021a0
call fcn.14000fb20
nop
cmp dword [0x14001fffc], 0
jne 0x140009c52
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x30], rax
jae 0x140009c71
mov eax, dword [rsp + 0x88]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x140009cae
lfence
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14000aac0
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x28], eax
je 0x140009ca6
mov dword [rsp + 0x20], 0xc0000001
jmp 0x140009cae
mov dword [rsp + 0x20], 0
cmp dword [0x14001fffc], 0
je 0x140009cdb
call fcn.14000fbe0
mov qword [rsp + 0x48], rax
call fcn.14000fb80
call fcn.1400021b0
cmp qword [rsp + 0x48], 0
je 0x140009cdb
mov dword [rsp + 0x20], 0xc0000001
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
nop
jmp 0x140009cec
cmp qword [rsp + 0x78], 0
jne 0x140009d00
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
cmp dword [rsp + 0x20], 0
jl 0x140009d11
mov dword [rsp + 0x24], 1
jmp 0x140009d19
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x58
pop rdi
pop rsi
ret