joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003660
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov eax, 0x5a4d
mov rdi, rcx
mov esi, r14d
cmp word [rcx], ax
je 0x18000368a
mov ebx, r14d
jmp 0x18000369b
movsxd rbx, dword [rcx + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
cmovne rbx, r14
mov ebp, dword [rbx + 0x50]
lea rcx, [rsp + 0x20]
call fcn.180003560
mov r10, qword [rsp + 0x28]
mov r9d, r14d
mov r11, qword [rsp + 0x20]
sub r10, r11
sar r10, 2
sub rbp, r10
je 0x1800036ff
mov rbx, r14
mov eax, r14d
test r10, r10
je 0x1800036f0
mov rcx, r14
nop
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x1800036e7
cmp r8d, 0xffffffff
jne 0x1800036f4
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x1800036d0
lea rsi, [rbx + rdi]
inc r9d
mov ebx, r9d
cmp rbx, rbp
jb 0x1800036c4
test r11, r11
je 0x180003739
mov rdx, qword [rsp + 0x30]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180003731
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000374f
mov rcx, r11
call fcn.18001c738
mov rbx, qword [rsp + 0x60]
mov rax, rsi
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call fcn.180023988
int3
Function at 0x180018f70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180018fb0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800551b0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180018fee
cmp rsi, r14
jb 0x180018fe6
cmp rsi, r15
jae 0x180018fe6
cmp qword [rsi + 8], 0
jne 0x1800191b7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180018fd1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180019082
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180019079
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180019079
cmp dword [rsp + 0x70], 0x10000
je 0x1800190fb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180019079
sub rbx, rbp
cmp rbx, r14
jae 0x180019040
test rsi, rsi
jne 0x180019160
cmp rdi, r15
ja 0x18001919f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
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 0x18001919f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001919f
cmp dword [rsp + 0x70], 0x10000
je 0x180019131
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800190b2
jmp 0x18001919f
test rbx, rbx
je 0x180019079
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 0x180019160
cmp rbx, r14
jae 0x180019020
jmp 0x180019082
test rdi, rdi
je 0x18001919f
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 0x180019160
cmp rdi, r15
jbe 0x180019090
jmp 0x18001919f
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 0x180019170
mov rax, qword [0x1800551b0]
mov qword [rsi], rax
mov qword [0x1800551b0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180019bc0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18004c1c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180019d0f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180019d06
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x180019cbc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180019cbc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180019cbc
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180019c7d
mov rcx, qword [0x18004fa50]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180019ce5
lea rbx, [rdi + 0xc]
jmp 0x180019cb1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x180019cb1
mov rcx, qword [0x18004fa50]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180019ce5
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180019c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180019d01
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x180019d01
mov rcx, qword [0x18004fa50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18001c5f0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180019d30
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.180019bc0
test eax, eax
jne 0x180019d77
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x180019dee
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x180019dd6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180019dca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180019a10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180019d90
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180019e10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov eax, ecx
imul rbx, rax, 0x38
add rbx, qword [0x1800551a0]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
mov r8, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jne 0x180019e8a
mov eax, 0xa
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
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 0x180019ea6
mov rax, qword [rbx]
mov word [rax], 0xf9eb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x48]
mov r8, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180019f00
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov eax, dword [0x1800551ac]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18001a098
mov rcx, qword [0x1800551a0]
add rcx, 0x20
test byte [rcx], 2
je 0x180019f3c
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180019f24
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18001a098
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.180019bc0
test eax, eax
jne 0x180019f69
mov eax, 9
add rsp, 0x38
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r12d, dword [rsp + 0x2c]
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x20]
test r15, r15
je 0x180019fea
test r12d, r12d
je 0x180019fea
mov qword [rsp + 0x68], r14
mov rsi, r15
mov r14d, r12d
nop dword [rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180019fdb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, 0xffffffff
mov r8d, 1
mov rcx, rbp
call fcn.180019a10
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub r14, 1
jne 0x180019fa0
mov r14, qword [rsp + 0x68]
mov edx, dword [0x1800551ac]
cmp ebx, edx
jae 0x18001a02d
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800551a0]
test byte [rcx + rax + 0x20], 2
jne 0x18001a027
mov ecx, ebx
call fcn.180019e10
mov edi, eax
test eax, eax
jne 0x18001a02d
mov edx, dword [0x1800551ac]
inc ebx
cmp ebx, edx
jb 0x18001a000
test r15, r15
je 0x18001a084
test r12d, r12d
je 0x18001a072
mov rsi, r15
mov rbp, r12
nop dword [rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001a068
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x18001a040
mov rcx, qword [0x18004fa50]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x18001a3b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x18004fa4c], esi
je 0x18001a401
nop
cmp rbx, 0x20
jae 0x18001a3ea
xor ecx, ecx
jmp 0x18001a3ec
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004fa4c], esi
jne 0x18001a3e0
cmp qword [0x18004fa50], r15
je 0x18001a4f4
test rdi, rdi
jne 0x18001a41f
call fcn.180019f00
mov esi, eax
jmp 0x18001a4f9
mov ecx, dword [0x1800551ac]
mov ebx, r15d
test ecx, ecx
je 0x18001a445
mov r8, qword [0x1800551a0]
mov rax, r8
cmp rdi, qword [rax]
je 0x18001a44f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001a436
mov esi, 4
jmp 0x18001a4f9
cmp ebx, 0xffffffff
je 0x18001a445
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18001a4ed
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180019d30
mov esi, eax
test eax, eax
jne 0x18001a4f9
mov ecx, ebx
call fcn.180019e10
mov esi, eax
cmp qword [rsp + 0x20], r15
je 0x18001a4f9
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001a4d7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop
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 0x18001a4c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18001a4a0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18004fa50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001a4f9
mov esi, 5
jmp 0x18001a4f9
mov esi, 2
xchg dword [0x18004fa4c], r15d
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18002a0f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002a10a
mov al, 1
jmp 0x18002a16a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002a11b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18002a168
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002da34
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002a168
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002a168
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002a168
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18002a16a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002bc70
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 0x18002bca0
xor eax, eax
jmp 0x18002bd63
mov rbp, rbx
cmp word [rax], si
je 0x18002bcc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002bcac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002bca8
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.18002bb90
movsxd r14, eax
test eax, eax
jne 0x18002bd03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002bc99
mov rcx, r14
call fcn.1800289bc
mov rdi, rax
test rax, rax
jne 0x18002bd1c
xor ecx, ecx
call fcn.180027e30
jmp 0x18002bcf8
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.18002bb90
test eax, eax
jne 0x18002bd4d
mov rcx, rdi
call fcn.180027e30
jmp 0x18002bd57
xor ecx, ecx
call fcn.180027e30
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 0x1800326a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800326c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800326c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140013008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140013008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140013008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140013008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x18000f330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
test edx, edx
je 0x18000f4ca
cmp edx, 1
jne 0x18000f4af
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x18000f2d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [rbx + 0x38]
call fcn.18003ff60
mov rsi, rax
mov qword [rsp + 0x58], rax
movabs rdx, 0x142378188
mov rdx, qword [rdx]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov byte [rax + 0x28], 1
mov qword [rax + 0x30], rbx
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsi + 0x30], rdx
cmp qword [rsi + 8], rax
jne 0x18000f3d7
mov rax, qword [rdx + 0xd0]
mov qword [rsi + 8], rax
mov qword [0x18007ab60], rsi
cmp byte [rsi + 0x29], bl
jne 0x18000f404
mov ecx, 8
call fcn.18003ff60
mov qword [rsp + 0x58], rax
mov rsi, qword [0x18007ab60]
mov qword [rax], rsi
mov qword [rsi + 0x10], rax
mov byte [rsi + 0x29], 1
mov ecx, 0x20
call fcn.18003ff60
mov r14, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax + 0xf0]
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
mov qword [r14], rcx
mov rax, qword [rcx]
cmp qword [rax], 0
je 0x18000f451
nop dword [rax]
inc rbx
mov qword [r14 + 0x18], rbx
mov rax, qword [rcx]
cmp qword [rax + rbx*8], 0
jne 0x18000f440
lea rdi, [rbx*8]
mov qword [r14 + 0x10], rax
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180040314
mov qword [r14 + 8], rax
mov r8, rdi
mov rdx, qword [r14 + 0x10]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rcx], rax
mov qword [rsi + 0x20], r14
cmp qword [r14 + 0x18], 4
jb 0x18000f4af
mov rax, qword [r14 + 8]
lea rcx, [0x18000eee0]
mov qword [rax + 0x20], rcx
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
call fcn.180010f50
call fcn.18000eeb0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x180010f90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18007a040]
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 0x180010fdf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18007ae00]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001101d
cmp rsi, r14
jb 0x180011015
cmp rsi, r15
jae 0x180011015
cmp qword [rsi + 8], 0
jne 0x1800111e7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180011000
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 0x1800110b2
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 0x1800110a9
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 0x1800110a9
cmp dword [rsp + 0x40], 0x10000
je 0x18001112b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800110a9
sub rbx, rbp
cmp rbx, r14
jae 0x180011070
test rsi, rsi
jne 0x180011190
cmp rdi, r15
ja 0x1800111cf
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 0x1800111cf
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800111cf
cmp dword [rsp + 0x40], 0x10000
je 0x180011161
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 0x1800110e2
jmp 0x1800111cf
test rbx, rbx
je 0x1800110a9
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 0x180011190
cmp rbx, r14
jae 0x180011050
jmp 0x1800110b2
test rdi, rdi
je 0x1800111cf
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 0x180011190
cmp rdi, r15
jbe 0x1800110c0
jmp 0x1800111cf
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 0x1800111a0
mov rax, qword [0x18007ae00]
mov qword [rsi], rax
mov qword [0x18007ae00], 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.18003ff40
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret