joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a5244
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402a73e0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14029d688]
test eax, eax
je 0x1401a528f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14029d688]
test eax, eax
jne 0x1401a5298
call fcn.140023358
test eax, eax
je 0x1401a52b4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140295120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401a52bc
xor eax, eax
jmp 0x1401a5319
test rbx, rbx
jne 0x1401a52dc
lea rcx, str.PrintDlgW
call fcn.14003bfc4
mov rbx, rax
test rax, rax
je 0x1401a52e7
mov qword [0x1402a73e0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401a52fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401a52fe
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401a5317
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1401a5d85
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1401a5d85
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a5d85
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1401a5d69
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1401a5d63
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1401a5d6b
add rdx, 0x28
jmp 0x1401a5d48
xor edx, edx
test rdx, rdx
jne 0x1401a5d74
xor al, al
jmp 0x1401a5d8b
test dword [rdx + 0x24], 0x80000000
je 0x1401a5d81
xor al, al
jmp 0x1401a5d8b
mov al, 1
jmp 0x1401a5d8b
xor al, al
jmp 0x1401a5d8b
add rsp, 0x18
ret
Function at 0x1401a82e8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140296908]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x1401a8472
cmp byte [rcx + 0x72], r15b
je 0x1401a8472
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1401a6554
movzx edx, di
mov rcx, r12
call rbx
cmp di, ax
jne 0x1401a835f
xor al, al
jmp 0x1401a8474
mov edx, SafeArrayGetDim
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], r15b
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.1401a6554
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x1401a83e3
sub ecx, 1
jne 0x1401a8457
jmp 0x1401a83e8
mov byte [r12 + 0x72], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x1401a8433
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1401aea6c
cmp rbx, rax
jne 0x1401a845f
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x72], r15b
je 0x1401a845c
test rbx, rbx
jne 0x1401a838e
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140005cc4
jmp 0x1401a8386
cmp ecx, 2
jne 0x1401a845f
mov r15b, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14000593c
mov al, r15b
jmp 0x1401a8474
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401a55b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401c2158
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401c1f2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c1f2c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c1f2c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c1f2c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c1f2c
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c1f2c
cmp dword [rcx + 0xf8], esi
je 0x1401c1f2c
mov ecx, r14d
call fcn.1401c2074
mov ecx, 2
call fcn.1401c3c50
nop
cmp byte [0x1402a8610], 0
jne 0x1401c1ff6
mov r15d, 1
mov eax, r15d
xchg dword [0x1402a8604], eax
test ebx, ebx
jne 0x1401c1f9f
mov rdi, qword [0x140296908]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402a8608]
cmp rcx, rax
je 0x1401c1f96
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000412c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402a8620]
jmp 0x1401c1fab
cmp ebx, r15d
jne 0x1401c1fb1
lea rcx, [0x1402a8638]
call fcn.1401c39c0
nop
test ebx, ebx
jne 0x1401c1fc8
lea rdx, [0x1401e4ac8]
lea rcx, [0x1401e4aa8]
call fcn.1401c1dec
lea rdx, [0x1401e4ad8]
lea rcx, [0x1401e4ad0]
call fcn.1401c1dec
movzx eax, byte [0x1402a8610]
test esi, esi
cmove eax, r15d
mov byte [0x1402a8610], al
jmp 0x1401c1ff6
mov ecx, 2
call fcn.1401c3ca4
test esi, esi
jne 0x1401c200d
mov ecx, r14d
call fcn.1401c2028
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401c1ebc
Function at 0x1401c58a0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401c555c
call fcn.1401adad4
mov dword [rax], 0x16
call fcn.1401ad984
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c5544
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401c5544
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401c558e
lock or dword [rax + 0x14], 0x10
jmp 0x1401c5544
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401c55ab
mov rcx, qword [rbp + 0x10]
call fcn.1401c5ef8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401c0940
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401c9ea8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401c5602
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401c5544
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401c566e
mov rcx, qword [rbp + 0x10]
call fcn.1401c0940
cmp eax, 0xffffffff
je 0x1401c5655
mov rcx, qword [rbp + 0x10]
call fcn.1401c0940
cmp eax, 0xfffffffe
je 0x1401c5655
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401c0940
movsxd rdi, eax
lea rsi, [0x1402a8860]
mov rcx, rbx
sar rdi, 6
call fcn.1401c0940
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401c565c
lea rax, [0x140296d70]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c566e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401c56a4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401c56a0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401c56a0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401c5547
jmp 0x1401c5514
Function at 0x1401c58a8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401c570e
call fcn.1401adad4
mov dword [rax], 0x16
call fcn.1401ad984
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c56f0
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401c56f0
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1401c5740
lock or dword [rax + 0x14], 0x10
jmp 0x1401c56f0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401c575d
mov rcx, qword [rbp + 0x20]
call fcn.1401c5ef8
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1401c5772
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1401c5778
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401c0940
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401c9ea8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1401c57cb
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1401c56f0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401c5837
mov rcx, qword [rbp + 0x20]
call fcn.1401c0940
cmp eax, 0xffffffff
je 0x1401c581e
mov rcx, qword [rbp + 0x20]
call fcn.1401c0940
cmp eax, 0xfffffffe
je 0x1401c581e
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401c0940
movsxd rdi, eax
lea r15, [0x1402a8860]
mov rcx, rbx
sar rdi, 6
call fcn.1401c0940
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1401c5825
lea rax, [0x140296d70]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c5837
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1401c586d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401c5869
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401c5869
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401c588b
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401c5896
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1401c56f5
jmp 0x1401c56bc
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005410]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005420]
mov dword [rax], 1
mov rax, qword [0x140005430]
mov dword [rax], 1
mov rax, qword [0x1400053a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005400]
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 [0x1400054e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400054c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005380]
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 [0x140005460]
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 [0x140005470]
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 [0x1400053d0]
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 [0x140005450]
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 [0x1400053e0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call sym.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 [0x140005470]
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 [0x140005490]
mov rcx, qword [0x140005480]
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 [0x1400054b0]
mov rcx, qword [0x1400054a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140002240
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 0x1400022b0
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 0x1400023e0
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400022fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002385
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400022e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002402
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 0x1400023e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000237e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002390
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 0x14000237e
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 0x140002308
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 0x140002990
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 0x1400029ec
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 0x1400029e3
test eax, eax
jne 0x1400029e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029c8
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 0x140002c00
Capabilities:
Parse pe header

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

Function at 0x140002c30
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 0x140002c7d
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 0x140002c74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002c7f
add rax, 0x28
cmp rax, r9
jne 0x140002c60
xor eax, eax
ret

Function at 0x140002c80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002d10
mov rdx, qword [0x1400053a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002cfe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cfe
cmp word [rax + 0x18], 0x20b
jne 0x140002cfe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002d10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002ce9
add rbx, 0x28
cmp rbx, rdi
je 0x140002d10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002ce0
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 0x140002d20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002da0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400053a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002e00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002e08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002e50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e47
test rcx, rcx
je 0x140002e00
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002e38
xor eax, eax
ret

Function at 0x140002e60
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400053a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ec0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ec8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ec0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002ec0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002f14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002f20
add rdx, 0x28
cmp rdx, r9
jne 0x140002f00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400053a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002f52
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002fb5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002fc8
add rdx, 0x28
cmp r10, rdx
jne 0x140002fa0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002fd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002fe7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002fbe
test ecx, ecx
jg 0x140002fd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret