joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a898
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14003a8c8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14003a94a
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14003a916
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14003a91e
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003a8bd
mov qword [rsp + 8], 0xe3
jmp 0x14003a962
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14003a9e9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14003a9b3
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14003a9bb
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003a955
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003aa3d
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14003aa45
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x14003aa8c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14003aaad
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14003ab31
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14003aafc
mov dword [rsp + 4], 0x9908b0df
jmp 0x14003ab04
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003aaa0
add rsp, 0x18
ret
Function at 0x14003e15c
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140039868]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x140039d20]
mov qword [rsp + 0x78], rax
lea rax, [0x1400479a8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x14003e214
lea rdx, str._n_n_notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c830
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, [0x1400479c0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140052980], rax
mov edx, 5
mov rcx, qword [0x140052980]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x140047998]
mov rcx, qword [0x140052980]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x140052980]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140052980]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x140040138
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040182
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040182
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040182
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040182
cmp dword [rcx + 0x84], 0xe
jbe 0x140040182
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140040184
xor al, al
add rsp, 0x28
ret
Function at 0x1400010d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x140004010], r14
mov dword [rbp + 0x28], r14d
je 0x14000110e
test rcx, rcx
je 0x14000122c
mov eax, dword [0x140004018]
mov dword [rcx], eax
jmp 0x14000122c
xorps xmm0, xmm0
lea r8, [0x140002570]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x14000113a
add rax, rdx
sub rcx, 1
jne 0x140001129
jmp 0x140001154
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140001235
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x140001235
mov edx, eax
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1400021c0
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140001219
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x140001219
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x1400011e3
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x1400011f3
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x140001219
jmp 0x1400011d0
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140004010], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140004018], eax
test rdi, rdi
je 0x140001219
mov dword [rdi], eax
test rbx, rbx
je 0x14000122c
mov edx, 0x454e4f45
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140004010]
jmp 0x140001237
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140001250
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
test r15, r15
jne 0x140001290
mov eax, 0xc000000d
jmp 0x140001328
xor ecx, ecx
call fcn.1400010d0
mov rbx, rax
test rax, rax
je 0x140001323
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x1400012bb
mov eax, 0xc000007b
jmp 0x140001328
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x140001323
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140001346
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x1400012d6
mov eax, 0xc0000225
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xa0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xa0], 0
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001020
test eax, eax
js 0x140001328
mov ecx, dword [rsp + 0xa0]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x140001328

Function at 0x140001920
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400019e7
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x1400019e7
mov r8d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r8d, r8d
je 0x1400019d2
mov r11d, ecx
lea rdx, [rdi + 0x30]
imul rax, r11, 0x128
mov r10, rsi
add rdx, rax
sub r10, rdx
movzx eax, byte [rdx]
movzx r9d, byte [rdx + r10]
sub eax, r9d
jne 0x1400019b9
inc rdx
test r9d, r9d
jne 0x1400019a4
test eax, eax
je 0x1400019c6
inc ecx
cmp ecx, r8d
jb 0x14000198d
jmp 0x1400019d2
imul rax, r11, 0x128
mov rbx, qword [rax + rdi + 0x18]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x1400019e7
mov rax, rbx
jmp 0x1400019e9
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001b20
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov edi, r9d
lea rcx, [0x140002680]
mov rsi, r8
mov rbp, rdx
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140001b78
lea rcx, [0x1400026a0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001bb5
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rbp
mov rcx, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140001bd0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140001c04
xor eax, eax
jmp 0x140001c41
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140001c60
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
and qword [rsp + 0x30], 0
mov rbx, rdx
lea rdx, [rsp + 0x30]
mov edi, r8d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001ca1
xor eax, eax
jmp 0x140001cf5
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002090
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140001d20
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [rsp + 0x20], 0
mov rbx, rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001da7
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov r9d, 0x8000
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edx, eax
lea rcx, [0x1400026b0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002090
add rsp, 0x70
pop rbx
ret

Function at 0x140001dc0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov ebp, r9d
lea rcx, [0x1400026d0]
mov rsi, r8
mov rdi, rdx
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001e24
lea rcx, [0x1400026a0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001e83
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x38]
mov r9d, ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov edx, eax
lea rcx, [0x1400026f0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002090
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001eb0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x140002710]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140001ef3
lea rcx, [0x1400026a0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001f46
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], 0
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edx, eax
lea rcx, [0x140002730]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x140001f60
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140001f94
xor eax, eax
jmp 0x140001fd1
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140001ff0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140002024
xor eax, eax
jmp 0x140002061
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x2fc4d90c0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4da1a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9ac2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d9b5a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9b3e
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 0x2fc4d9b32
cmp qword [rbp - 0x10], 0
je 0x2fc4d9b32
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 0x2fc4d9af8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9b5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9c60
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 0x2fc4d9c88
mov eax, 0
jmp 0x2fc4d9cd6
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 0x2fc4d9cb1
mov eax, 0
jmp 0x2fc4d9cd6
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 0x2fc4d9cd1
mov eax, 0
jmp 0x2fc4d9cd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9cdc
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 0x2fc4d9d5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9d51
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 0x2fc4d9d51
mov rax, qword [rbp - 8]
jmp 0x2fc4d9d6f
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 0x2fc4d9d24
mov eax, 0
add rsp, 0x20
pop rbp
ret