joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003c580
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18003c5cf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18004ed10]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003c60d
cmp rsi, r14
jb 0x18003c605
cmp rsi, r15
jae 0x18003c605
cmp qword [rsi + 8], 0
jne 0x18003c7d7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003c5f0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18003c6a2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003c699
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003c699
cmp dword [rsp + 0x40], 0x10000
je 0x18003c71b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003c699
sub rbx, rbp
cmp rbx, r14
jae 0x18003c660
test rsi, rsi
jne 0x18003c780
cmp rdi, r15
ja 0x18003c7bf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003c7bf
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003c7bf
cmp dword [rsp + 0x40], 0x10000
je 0x18003c751
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003c6d2
jmp 0x18003c7bf
test rbx, rbx
je 0x18003c699
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003c780
cmp rbx, r14
jae 0x18003c640
jmp 0x18003c6a2
test rdi, rdi
je 0x18003c7bf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003c780
cmp rdi, r15
jbe 0x18003c6b0
jmp 0x18003c7bf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18003c790
mov rax, qword [0x18004ed10]
mov qword [rsi], rax
mov qword [0x18004ed10], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003eb90
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18003d160
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003d28b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003d282
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003d264
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003d264
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003d264
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003d222
mov rcx, qword [0x18004eaf8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003d282
jmp 0x18003d257
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003d257
mov rcx, qword [0x18004eaf8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003d282
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003d1d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18003d2e3
cmp dword [rbx + 0xc], esi
jbe 0x18003d2e3
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003d2dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18003cfb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18003d2a0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003eb90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18003d310
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18004ed00]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003d383
mov eax, 0xa
jmp 0x18003d416
test esi, esi
je 0x18003d3a5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003d3c8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003d3c8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003d3c1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003d3c8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003eb90
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18003d440
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18004ed0c]
mov ebx, edi
test ecx, ecx
je 0x18003d57b
mov rax, qword [0x18004ed00]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003d498
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003d470
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003d57b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18003d160
mov r8d, dword [0x18004ed0c]
cmp ebx, r8d
jae 0x18003d508
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18004ed00]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18003d501
mov edx, esi
mov ecx, ebx
call fcn.18003d310
mov edi, eax
test eax, eax
jne 0x18003d508
mov r8d, dword [0x18004ed0c]
inc ebx
cmp ebx, r8d
jb 0x18003d4d0
cmp qword [rsp + 0x20], 0
je 0x18003d57b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003d567
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003d558
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18003d530
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18004eaf8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003d8f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18004eaf0], ebp
je 0x18003d947
cmp rbx, 0x20
jae 0x18003d930
xor ecx, ecx
jmp 0x18003d932
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004eaf0], ebp
jne 0x18003d926
cmp qword [0x18004eaf8], r15
je 0x18003da41
test rdi, rdi
jne 0x18003d967
mov ecx, esi
call fcn.18003d440
mov ebp, eax
jmp 0x18003da46
mov ecx, dword [0x18004ed0c]
mov ebx, r15d
test ecx, ecx
je 0x18003d98f
mov r8, qword [0x18004ed00]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18003d999
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003d980
mov ebp, 4
jmp 0x18003da46
cmp ebx, 0xffffffff
je 0x18003d98f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003da38
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003d160
mov edx, esi
mov ecx, ebx
call fcn.18003d310
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18003da46
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003da22
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003da18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18003d9f0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18004eaf8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003da46
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18003da46
mov ebp, 2
xchg dword [0x18004eaf0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140011113
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140011f20
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250a7]
call fcn.1400113e8
mov dword [rbp + 4], 0xffffffff
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtCreateFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f948], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtDeviceIoControlFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f940], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtCreateIoCompletion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f938], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtSetIoCompletion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f930], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f928], rax
cmp qword [0x14001f930], 0
je 0x140012028
cmp qword [0x14001f938], 0
je 0x140012028
cmp qword [0x14001f948], 0
je 0x140012028
cmp qword [0x14001f940], 0
je 0x140012028
cmp qword [0x14001f928], 0
jne 0x140012033
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x14001203a
mov dword [rbp + 4], 0
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011145
Capabilities:
Write file on windows

Disassembly:
jmp 0x140013090
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x230
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x14001f038]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x14002516e]
call fcn.1400113e8
mov dword [rbp + 4], 0xffffffff
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x48], 0
mov rax, qword [0x14001f010]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x78], 1
mov dword [rbp + 0x80], 0
mov dword [rbp + 0x84], 0
lea rax, [rbp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x228]
mov rdx, qword [rbp + 0x220]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013171
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x1400132cf
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400131a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x1400132cf
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x218]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x228]
mov dword [rax + 0x28], ecx
mov eax, 0xc02
mov rcx, qword [rbp + 0x28]
mov word [rcx], ax
mov rax, qword [rbp + 0x28]
mov dword [rax + 4], 0x80
mov rax, qword [rbp + 0x28]
mov byte [rax + 0x2c], 1
mov rax, qword [rbp + 0x28]
mov dword [rax + 8], 1
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x210]
mov rdx, qword [rbp + 0x28]
mov qword [rcx + rax], rdx
lea rax, [rbp + 0x1d0]
lea rcx, [rbp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x1a0]
lea rcx, [rbp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rbp + 0x228]
lea r8, [rbp + 0x1d0]
lea rdx, [rbp + 0x1a0]
mov rcx, qword [0x14001f1a0]
call fcn.1400112ee
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140013277
jmp 0x1400132cf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001f1a0]
call fcn.14001123f
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140013296
jmp 0x1400132cf
lea rdx, [rbp + 0xa8]
mov rcx, qword [0x14001f1a0]
call fcn.14001123a
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400132b4
jmp 0x1400132cf
cmp dword [rbp + 0xb0], 0
je 0x1400132c8
mov eax, dword [rbp + 0xb0]
mov dword [rbp + 4], eax
jmp 0x1400132cf
mov dword [rbp + 4], 0
cmp qword [rbp + 0x28], 0
je 0x1400132eb
mov r8d, 0x8000
mov edx, 0x80
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001c720]
call fcn.140011366
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140014850
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015ba0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015bc0
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015bd3
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015bfd
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015c11
xor al, al
jmp 0x140015c41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015c23
xor al, al
jmp 0x140015c41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015c3f
xor al, al
jmp 0x140015c41
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113bb
Capabilities:
Create pipe

Disassembly:
jmp 0x140012da0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14001f038]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14002516e]
call fcn.1400113e8
mov dword [rbp + 4], 0xffffffff
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rbp + 0x28], 0
mov dword [rbp + 0x2c], 0
lea rax, [0x14001f1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
mov r8d, 0x10000
mov rdx, qword [rbp + 0x28]
mov ecx, 0x12c
call fcn.140011339
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140012e42
jmp 0x140012fc3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x14001f1a0]
mov r8, qword [rcx]
mov edx, eax
mov rcx, qword [rbp + 0x120]
call fcn.14001107d
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140012e6e
jmp 0x140012fc3
mov rax, qword [rbp + 0x120]
mov rax, qword [rax]
mov qword [0x14001f1a8], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 3
lea rcx, str..pipeioring_in
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [section..data], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 3
lea rcx, str..pipeioring_out
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [0x14001f008], rax
cmp qword [section..data], 0xffffffffffffffff
je 0x140012f19
cmp qword [0x14001f008], 0xffffffffffffffff
jne 0x140012f27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140012fc3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..pipeioring_in
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14001f010], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..pipeioring_out
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14001f018], rax
cmp qword [0x14001f010], 0xffffffffffffffff
je 0x140012fb1
cmp qword [0x14001f018], 0xffffffffffffffff
jne 0x140012fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140012fc3
mov dword [rbp + 4], 0
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001c2c0]
call fcn.140011366
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x6d7d7b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d7ce8
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d7bac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d7c35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d7b90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d7d1d
mov rax, qword [0x6d7f85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d7d00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d7c2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d7c90
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d7c63
test dil, 4
jne 0x6d7d7cd4
test edi, edi
je 0x6d7d7c58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d7cef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d7c58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d7c7c
jmp 0x6d7d7c58
add rsi, qword [0x6d7f85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d7c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d7c58
xor esi, esi
jmp 0x6d7d7bb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d7c58
mov rax, qword [0x6d7f85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d8470
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f88a0]
test rbx, rbx
je 0x6d7d84c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d84bb
test rsi, rsi
je 0x6d7d84bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d84a0
lea rcx, [0x6d7f88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]