joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000edd0
Capabilities:
Get common file path

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 r14
mov eax, 0x1020
call fcn.140025870
sub rsp, rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14000ef7f
call fcn.14000efa8
mov rcx, rbx
call fcn.14002a818
mov rcx, rbx
mov rbp, rax
call fcn.14000efd8
test al, al
je 0x14000eeb4
mov rcx, rbx
call fcn.14000efa8
test al, al
je 0x14000ee68
lea rax, [rbp + 4]
cmp rdi, rax
jbe 0x14000ef7f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.140014280
mov rdx, rbx
mov r8, rdi
mov rcx, rsi
call fcn.14001423c
mov al, 1
jmp 0x14000ef81
cmp word [rbx], 0x5c
jne 0x14000ef7f
cmp word [rbx + 2], 0x5c
jne 0x14000ef7f
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000ef7f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.140014280
mov r8, rdi
lea rdx, [0x14003bd58]
mov rcx, rsi
call fcn.14001423c
lea rdx, [rbx + 2]
jmp 0x14000ee56
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x14000ef7f
cmp word [rbx], 0x5c
je 0x14000ef49
cmp word [rbx], 0x2f
je 0x14000ef49
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.14000e828
lea rcx, [rsp + 0x20]
call fcn.14002a818
lea rcx, [rax + 4]
add rcx, rbp
cmp rdi, rcx
jbe 0x14000ef7f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.140014280
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001423c
cmp word [rbx], 0x2e
jne 0x14000ee53
cmp word [rbx + 2], 0x5c
je 0x14000ef40
cmp word [rbx + 2], 0x2f
jne 0x14000ee53
add rbx, 4
jmp 0x14000ee53
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000ef7f
mov r8, rdi
lea rdx, str.__
mov rcx, rsi
call fcn.140014280
mov r8, rdi
mov word [rsp + 0x24], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001423c
jmp 0x14000ee53
xor al, al
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000fee8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, r9
mov r10b, bl
cmp r8d, 1
jbe 0x14000ff1c
lea rcx, [rdx + 1]
lea r8d, [rdi - 1]
xor r10b, byte [rcx]
inc rcx
sub r8, 1
jne 0x14000ff10
cmp r10b, byte [rdx]
jne 0x14000ff58
mov r8, rdi
or ecx, 0xffffffff
call fcn.140007200
lea rdx, [0x14004c060]
not eax
mov rcx, rdx
cmp dword [rcx + 4], eax
jne 0x14000ff41
cmp dword [rcx], edi
je 0x14000ff4e
inc ebx
add rcx, 0xc
cmp ebx, 6
jae 0x14000ff58
jmp 0x14000ff38
lea rcx, [rbx + rbx*2]
mov eax, dword [rdx + rcx*4 + 8]
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x140001920]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x140001230]
xor ecx, ecx
add rsp, 0x28
jmp 0x14000159a
jmp qword [sym.imp.ntoskrnl.exe_IoCreateDriver]

Function at 0x1400010a8
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x8eb8b19
mov rbx, rcx
jne 0x1400010ff
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010ff
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 0x1400010ff
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400010ff
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 0x140001104
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x14000110c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
cmp dword [rcx], 0x8eb8b19
mov rbx, rcx
jne 0x14000120a
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x14000120a
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x14000120a
mov rdi, qword [rsi + 0x28]
test rdi, rdi
jne 0x14000116b
call fcn.140001044
mov edx, eax
mov rdi, qword [rdx + rsi]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x1400011a9
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rsi, cr3
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rsi, rsi
jne 0x1400011ac
mov rsi, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov rdi, qword [rbx + 0x18]
call fcn.1400013b8
test rax, rax
je 0x14000120a
and qword [rsp + 0x78], 0
mov ecx, eax
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
mov r9d, 1
cmp edx, edi
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x10]
cmovl edi, edx
movsxd r8, edi
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x14000120f
mov eax, 0xc0000001
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14000dd80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x14000ddba
call fcn.140003f88
and dword [rax], 0
call fcn.140003f68
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140003e98
mov eax, ebx
jmp 0x14000de0a
test edx, 0xfffffff9
jne 0x14000dd8d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000dde3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140003fa8
call fcn.140003f68
mov eax, dword [rax]
jmp 0x14000de0a
test al, 0x10
jne 0x14000de08
test al, 1
je 0x14000de08
test bl, 2
je 0x14000de08
call fcn.140003f88
mov dword [rax], 5
call fcn.140003f68
mov dword [rax], 0xd
jmp 0x14000ddda
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000688c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400070a8]
test rax, rax
je 0x1400068d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400068d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400068d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400068d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400068d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400068d8
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004600]
mov dword [rax], 1
mov rax, qword [0x140004610]
mov dword [rax], 1
mov rax, qword [0x140004590]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400045e0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400046c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400046a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004540]
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 [sym._matherr]
call sym.__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 0x140001c10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001db0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cb0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001dd2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d60
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cd8
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002340
Capabilities:
Get thread local storage value

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

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x1400025d0
Capabilities:
Parse pe header

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

Function at 0x140002600
Capabilities:
Enumerate pe sections

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

Function at 0x140002650
Capabilities:
Parse pe header

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

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

Function at 0x140002770
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140004590]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027d0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002820
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002817
test rcx, rcx
je 0x1400027d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002808
xor eax, eax
ret

Function at 0x140002830
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140004590]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002922
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002930
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002922
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002922
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002922
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]
cmp rax, r9
mov r8, r9
jb 0x140002985
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002998
add rdx, 0x28
cmp rdx, r10
jne 0x140002970
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000298e
test ecx, ecx
jg 0x1400029a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002ed0
Capabilities:
Create new key via cryptacquirecontext
Create thread
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call sym.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x140002f1b
jmp 0x140002f91
test cl, cl
je 0x140002f48
and esi, 1
je 0x140002f30
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140002f17
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140002ef8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140002f06
test cl, cl
je 0x140002f48
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140002f48
cmp al, 0x20
jle 0x140002f38
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [rsp + 0x5c], 1
mov r9d, 0xa
je 0x140002f76
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140004590]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x1400041c0]
jmp 0x140002f48
Function at 0x1400098f0
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 [0x140016040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.14000a870
test rax, rax
jne 0x140009935
xor al, al
jmp 0x140009a11
cmp qword [rsp + 0x88], 0
jne 0x14000995f
mov eax, dword [rsp + 0x80]
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x14000995f
xor al, al
jmp 0x140009a11
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.140009030
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 0x140009a0d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
jmp 0x140009a0f
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140012d80
add rsp, 0x70
pop rdi
ret
Function at 0x140009f10
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 0x140009f5f
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x140009f5f
xor al, al
jmp 0x14000a0be
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, qword [rsp + 0x80]
call fcn.140009b00
movzx eax, al
test eax, eax
je 0x14000a07b
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax - 1]
mov rcx, rax
call fcn.140009b00
movzx eax, al
test eax, eax
je 0x14000a07b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
cmp dword [0x140020cfc], 0
je 0x140009fd8
call fcn.1400024f0
call fcn.14000ff00
nop
cmp dword [0x140020cfc], 0
jne 0x140009ff2
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x30], rax
jae 0x14000a011
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 0x14000a04e
lfence
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14000ae60
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x28], eax
je 0x14000a046
mov dword [rsp + 0x20], 0xc0000001
jmp 0x14000a04e
mov dword [rsp + 0x20], 0
cmp dword [0x140020cfc], 0
je 0x14000a07b
call fcn.14000ffc0
mov qword [rsp + 0x48], rax
call fcn.14000ff60
call fcn.140002500
cmp qword [rsp + 0x48], 0
je 0x14000a07b
mov dword [rsp + 0x20], 0xc0000001
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
nop
jmp 0x14000a08c
cmp qword [rsp + 0x78], 0
jne 0x14000a0a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
cmp dword [rsp + 0x20], 0
jl 0x14000a0b1
mov dword [rsp + 0x24], 1
jmp 0x14000a0b9
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x58
pop rdi
pop rsi
ret