joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140017e6b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140017e6b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140017e86
cmp eax, 0x42
jne 0x140017e6b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140017f36
cmp byte [r9 + r11], 0x5f
jne 0x140017f36
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140017f9e
mov rcx, rsi
xor edx, edx
call fcn.140012f80
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140012f80
test al, al
jne 0x140018031
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140017ec2
lea rdx, [0x1400a35d3]
mov r8d, 1
call fcn.14000a7a0
test al, al
jne 0x140018031
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140017e7a
xor r14d, r14d
lea rbx, [0x1400a399e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140017ef4
cmp byte [rax + rcx], 0x45
je 0x14001805a
sub r14, 1
jb 0x140017f19
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140017f19
mov r8d, 2
mov rdx, rbx
call fcn.14000a7a0
test al, al
jne 0x140018031
mov rcx, rsi
call fcn.140018070
test al, al
jne 0x140018031
mov rax, qword [rsi]
test rax, rax
jne 0x140017ee0
jmp 0x140017e7a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140017ff8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140017f92
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140017f7c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140017f6b
add dl, 0xa9
jmp 0x140017f7a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140017ff8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140017ff8
movzx edx, bl
add rax, rdx
jae 0x140017f40
jmp 0x140017ff8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140017ff8
cmp rax, rcx
jae 0x140017ff5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140018039
cmp qword [rsi + 0x20], 0
je 0x140018066
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140017e10
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140017e7c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140018048
lea rax, [0x1400a3969]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000a7a0
test al, al
je 0x140018048
mov dil, 2
jmp 0x140017e7a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140018003
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140017e7a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140017e7a
xor edi, edi
jmp 0x140017e7a
Function at 0x14001f700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14001f730
test ecx, ecx
jne 0x14001f780
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001f73c
test ecx, ecx
jne 0x14001f780
mov rcx, rdi
call fcn.14001f5e0
movzx eax, al
test bpl, bpl
jne 0x14001f787
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14001f773.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14001f8f8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14001f773.2
xor eax, eax
test bpl, bpl
je 0x14001f74c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14001f8d9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001f7ba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14001f839
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14001f800
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001f81b
inc rax
dec rdi
cmp rax, 1
jne 0x14001f7e0
jmp 0x14001f839
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001f81b
cmp ebx, 0x5c
je 0x14001f81b
inc rax
dec rdi
cmp rax, 1
jne 0x14001f800
jmp 0x14001f839
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14001f8e7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14001f863
mov al, 9
cmp rdx, 2
je 0x14001f867
cmp rdx, 1
jne 0x14001f877
cmp byte [r8], 0x2e
jne 0x14001f877
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14001f877
mov al, 0xa
jmp 0x14001f877
cmp byte [r8], 0x2e
jne 0x14001f877
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14001f773.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14001f773.2
mov ecx, 2
jmp case.0x14001f773.2
lea r8, str.library_std_srcpath.rs
call fcn.140035c30
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140035c30
ud2
Function at 0x140021a40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140021a83
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140020700]
mov qword [rbp - 0x28], rax
lea rax, str._W_n_
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.HW_n_
lea rcx, [rbp - 0x60]
call fcn.140035b70
ud2
Function at 0x14002b6b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002b4a8
Function at 0x14002e720
Capabilities:
Query environment variable

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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002e750
xor eax, eax
jmp 0x14002e813
mov rbp, rbx
cmp word [rax], si
je 0x14002e775
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002e75c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002e758
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002e670
movsxd r14, eax
test eax, eax
jne 0x14002e7b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002e749
mov rcx, r14
call fcn.14002f5d4
mov rdi, rax
test rax, rax
jne 0x14002e7cc
xor ecx, ecx
call fcn.14002cd00
jmp 0x14002e7a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002e670
test eax, eax
jne 0x14002e7fd
mov rcx, rdi
call fcn.14002cd00
jmp 0x14002e807
xor ecx, ecx
call fcn.14002cd00
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140031cdc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002d774
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140031d66
cmp byte [rbp - 0x21], r15b
je 0x140031d61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031d9c
call fcn.14002fdf4
test eax, eax
jne 0x140031d88
cmp byte [rbp - 0x21], r15b
je 0x140031d80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031d9c
cmp byte [rbp - 0x21], r15b
je 0x140031d99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002cd50
test eax, eax
jne 0x140031e3c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002d774
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140031ddb
cmp byte [rbp - 0x21], r15b
je 0x140031e10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140031e10
call fcn.14002fdf4
test eax, eax
jne 0x140031dfc
cmp byte [rbp - 0x21], r15b
je 0x140031df5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140031e10
cmp byte [rbp - 0x21], r15b
je 0x140031e0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002cd50
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140031e3c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140031e3f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140031e4d
mov rcx, rdi
call fcn.14002cd00
cmp byte [rbp + 0x3f], r15b
je 0x140031e5c
mov rcx, qword [rbp + 0x27]
call fcn.14002cd00
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002590
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov qword [0x14000a530], rcx
mov rbx, rcx
mov r14d, 0x80
mov r8d, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
mov edi, 0xc0000001
call fcn.140006e40
mov r8d, r14d
lea rcx, [rbp - 0x10]
xor edx, edx
call fcn.140006e40
mov r8d, r14d
lea rdx, [rsp + 0x70]
lea rcx, [0x140007720]
call fcn.140001320
test al, al
je 0x1400026f9
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8d, r14d
lea rdx, [rbp - 0x10]
lea rcx, [0x140007720]
call fcn.140001374
test al, al
je 0x1400026f9
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [r14 - 0x5e]
mov byte [rsp + 0x28], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov dword [rsp + 0x20], 0x100
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
js 0x1400026f9
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [0x14000a528], rax
lea rcx, [rsp + 0x58]
or dword [rax + 0x30], 4
mov rax, qword [rsp + 0x40]
btr dword [rax + 0x30], 7
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x1400026b7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1400026f9
lea rax, [0x140002570]
mov ecx, 0x1c
lea rdi, [rbx + 0x70]
rep stosq qword [rdi], rax
lea rax, [0x140002720]
mov qword [rbx + 0xe0], rax
call fcn.1400015b8
call fcn.140003aa0
mov rcx, rbx
call fcn.14000510c
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140004ca8
xor edi, edi
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140006bc0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002be8
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
test rcx, rcx
je 0x140002c3c
test rdx, rdx
je 0x140002c3c
lea rdx, [rax + 0x18]
mov qword [rax + 0x18], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002c3c
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call sub.ntoskrnl.exe_PsReferenceProcessFilePointer
test eax, eax
jns 0x140002c4e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], bx
jne 0x140002c52
mov rcx, qword [rsp + 0x30]
add edi, edi
movzx eax, word [rcx + 0x58]
cmp eax, edi
jb 0x140002c99
movzx r8d, word [rcx + 0x5a]
xor edx, edx
mov rcx, qword [rcx + 0x60]
call fcn.140006e40
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov r8d, edi
mov rcx, qword [rcx + 0x60]
call fcn.140006f40
mov rax, qword [rsp + 0x30]
mov bl, 1
mov word [rax + 0x58], di
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
jmp 0x140002c3e

Function at 0x140002cb4
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [0x14000a538], rcx
lea rax, [0x140002b5c]
xor ecx, ecx
mov dword [rsp + 0x40], 0x30
mov qword [r11 - 0x30], rcx
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rcx
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x200
xor r9d, r9d
mov qword [r11 - 0x28], rcx
mov edx, 0x1fffff
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], rcx
mov qword [r11 + 8], rcx
lea rcx, [r11 + 8]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x78
ret
Function at 0x140002ee4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov r10, rcx
xor r9d, r9d
test rcx, rcx
jne 0x140002f0e
xor eax, eax
jmp 0x140002fcd
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], r9
movsxd rax, dword [rcx + 0x3c]
test r8b, r8b
je 0x140002f2a
add rcx, 0x88
jmp 0x140002f2e
add rcx, 0x78
add rcx, rax
mov ecx, dword [rcx]
add rcx, r10
mov esi, dword [rcx + 0x1c]
add rsi, r10
mov r8d, dword [rcx + 0x20]
add r8, r10
mov qword [rsp + 8], r8
mov edx, dword [rcx + 0x24]
add rdx, r10
mov qword [rsp + 0x10], rdx
test r14d, 0xffff0000
jne 0x140002f65
movzx eax, r14w
sub eax, dword [rcx + 0x10]
jmp 0x140002f9e
mov ecx, dword [rcx + 0x18]
mov dword [rsp], ecx
mov eax, ecx
dec ecx
mov dword [rsp], ecx
test eax, eax
je 0x140002fc0
mov eax, dword [r8]
add rax, r10
mov rdi, r14
sub rdi, rax
movzx r11d, byte [rax]
movzx ebx, byte [rax + rdi]
sub r11d, ebx
jne 0x140002f96
inc rax
test ebx, ebx
jne 0x140002f82
test r11d, r11d
jne 0x140002fac
movzx eax, word [rdx]
mov r9d, dword [rsi + rax*4]
add r9, r10
mov qword [rsp + 0x18], r9
jmp 0x140002fc0
add r8, 4
mov qword [rsp + 8], r8
add rdx, 2
mov qword [rsp + 0x10], rdx
jmp 0x140002f6b
jmp 0x140002fca
mov rax, r9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140003990
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140003a29
mov rcx, qword [rsp + 0x20]
mov ebx, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140006e40
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], sil
jne 0x140003a00
lea r8d, [rcx + 1]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.140005efc
lea rcx, [rsp + 0x30]
call fcn.1400017e0
test al, al
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140006bc0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003d98
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140007870]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov rax, cr8
test al, al
je 0x140003dfe
mov eax, 0xc0000001
jmp 0x140003efd
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140003efb
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
mov qword [rbp + 0x3b], rax
mov qword [rbp + 0x43], rax
mov dword [rbp + 0x4b], eax
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140003ef1
mov eax, dword [rbp + 0x3f]
mov cl, 1
mov edx, eax
mov dword [0x14000a728], eax
call fcn.140004560
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x14000a728]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x14000a720], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140003ef1
mov rcx, qword [0x14000a720]
call fcn.1400045b0
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140006bc0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
Function at 0x140003f1c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r8d, edx
mov rbp, rcx
cmp word [rcx], ax
je 0x140003f4d
or eax, 0xffffffff
jmp 0x140004064
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x140003f45
mov eax, 0x78
mov ecx, 0x20b
cmp word [rsi + 0x18], cx
mov rcx, rsi
lea edx, [rax + 0x10]
cmove eax, edx
mov r12d, dword [rax + rsi]
mov edx, r12d
mov eax, dword [rax + rsi + 4]
mov dword [rsp + 0x78], eax
call fcn.14000407c
or edi, 0xffffffff
cmp eax, edi
je 0x140004062
mov ebx, eax
mov rcx, rsi
add rbx, rbp
mov eax, dword [rbx + 0x18]
mov edx, dword [rbx + 0x1c]
mov dword [rsp + 0x60], eax
call fcn.14000407c
mov edx, dword [rbx + 0x24]
mov rcx, rsi
mov r15d, eax
call fcn.14000407c
mov edx, dword [rbx + 0x20]
mov rcx, rsi
mov r14d, eax
call fcn.14000407c
cmp r15d, edi
je 0x140004062
cmp r14d, edi
je 0x140004062
cmp eax, edi
je 0x140004062
lea rbx, [r14 + rbp]
mov r14d, eax
lea r13, [r15 + rbp]
add r14, rbp
xor r15d, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x140004062
mov edx, dword [r14]
mov rcx, rsi
call fcn.14000407c
cmp eax, edi
je 0x140004044
mov ecx, eax
movzx eax, word [rbx]
add rcx, rbp
mov edx, dword [r13 + rax*4]
cmp edx, r12d
jb 0x140004023
mov eax, dword [rsp + 0x78]
add eax, r12d
cmp edx, eax
jb 0x140004044
mov r10, qword [rsp + 0x70]
sub r10, rcx
movzx eax, byte [rcx]
movzx r9d, byte [rcx + r10]
sub eax, r9d
jne 0x140004040
inc rcx
test r9d, r9d
jne 0x14000402b
test eax, eax
je 0x140004058
inc r15d
add r14, 4
add rbx, 2
cmp r15d, dword [rsp + 0x60]
jae 0x140004062
jmp 0x140003ff7
mov rcx, rsi
call fcn.14000407c
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000407c
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
test r11d, r11d
je 0x1400040b0
mov ecx, dword [r9 + 0xc]
cmp ecx, edx
ja 0x1400040a4
add ecx, dword [r9 + 8]
cmp ecx, edx
ja 0x1400040b4
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x140004094
or eax, 0xffffffff
ret
mov ecx, dword [r9 + 0x14]
or eax, 0xffffffff
sub ecx, dword [r9 + 0xc]
add edx, ecx
cmp edx, r8d
cmovb eax, edx
ret