joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f200
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000f280
Capabilities:
Parse pe header

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

Function at 0x14000f340
Capabilities:
Parse pe header

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

Function at 0x140010120
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, [0x1400d7320]
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140010150
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140010170
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x1400d7360]
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400101a0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14001c770
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140100c40], 1
je 0x14001c810
lea rdi, [0x140100c40]
mov rcx, rdi
call fcn.14001c0e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001b9c0
mov esi, dword [0x140100c40]
test esi, esi
jne 0x14001c7e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ce318], eax
cmp eax, 0xffffffff
je 0x1400cd526
mov dword [0x140100c40], 1
mov rcx, rbp
call fcn.14001bc90
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001c3d0
cmp esi, 1
je 0x14001c7cc
mov ecx, 2
call qword [fcn.14001a010]
mov r9d, esi
mov r8, rdi
lea rdx, [0x1400d7b2f]
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001c7cc
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2
Function at 0x14001c820
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001c500
mov rbx, rax
test rax, rax
je 0x14001c91c
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001bfb0
cmp eax, 1
je 0x14001c928
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400cd52c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400ce318]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400cd52c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001c340
nop
nop

Function at 0x14001c930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001c820
Function at 0x14001d110
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1400d8980]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001d270
cmp eax, 1
je 0x14001d175
call fcn.14001c0e0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14001b9c0
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001d198
cmp ebp, 1
jne 0x14001d238
mov rcx, r13
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001d2bb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001c4d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001c770
mov ecx, dword [0x1400ce318]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001d2a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call rbp
test rax, rax
je 0x14001d290
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call rbp
test rax, rax
je 0x14001d280
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
jmp 0x14001d175
mov ecx, 2
call qword [fcn.14001a010]
mov r9d, ebp
mov r8, rbx
lea rdx, [0x1400d7b2f]
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
jmp 0x14001d175
mov eax, 0x16
jmp 0x14001d177
call fcn.14001c820
test rax, rax
jne 0x14001d20e
jmp 0x1400cd55e
call fcn.14001c820
test rax, rax
jne 0x14001d1eb
jmp 0x1400cd54f
call fcn.14001c820
test rax, rax
jne 0x14001d1c6
jmp 0x1400cd545
call fcn.140010170
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001d550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d5c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001bfc0
cmp esi, dword [rbx + 0x48]
jae 0x14001d5a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001d5a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001c020
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001c820
mov rbx, rax
jmp 0x14001d57d
Function at 0x14001d5e0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d6d8
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001bfc0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001d6a3
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001d6e5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001d6e5
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001c020
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001c820
mov rbx, rax
jmp 0x14001d61a
mov rcx, r13
call fcn.14001c020
mov eax, 0xc
jmp 0x14001d6c1

Function at 0x14001d780
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d7a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001c820
test rax, rax
jne 0x14001d79a
add rsp, 0x28
ret

Function at 0x14001d810
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d838
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001c820
test rax, rax
jne 0x14001d82a
jmp 0x14001d82e

Function at 0x14001d950
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140100c48]
test eax, eax
jne 0x14001d968
xor eax, eax
add rsp, 0x28
ret
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d998
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001d95e
test byte [rax + 0x40], 3
je 0x14001d95e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001d960
call fcn.14001c820
test rax, rax
je 0x14001d95e
jmp 0x14001d97e

Function at 0x14001d9b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d9f0
test ebx, ebx
jle 0x14001d9e0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001c820
test rax, rax
jne 0x14001d9cd
add rsp, 0x20
pop rbx
ret
Function at 0x14001daf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001db68
test byte [rbx + 0x40], 0xc
jne 0x14001db1f
mov eax, dword [0x140100c48]
test eax, eax
jne 0x14001db30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001b9c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001db53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001db53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001db7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001bc90
call fcn.14001c820
mov rbx, rax
test rax, rax
jne 0x14001db0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001db9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001bc90
call fcn.14001da00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001dc18
call fcn.14001b680
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dc60
test rsi, rsi
je 0x14001dc2e
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dc50
mov edx, edi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dc70
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dc06
call fcn.14001c820
mov rbx, rax
jmp 0x14001dbec
call fcn.14001c820
jmp 0x14001dc2e
Function at 0x14001dbb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001db68
test byte [rbx + 0x40], 0xc
jne 0x14001db1f
mov eax, dword [0x140100c48]
test eax, eax
jne 0x14001db30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001b9c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001db53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001db53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001db7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001bc90
call fcn.14001c820
mov rbx, rax
test rax, rax
jne 0x14001db0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001db9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001bc90
call fcn.14001da00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001dc18
call fcn.14001b680
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dc60
test rsi, rsi
je 0x14001dc2e
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dc50
mov edx, edi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dc70
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dc06
call fcn.14001c820
mov rbx, rax
jmp 0x14001dbec
call fcn.14001c820
jmp 0x14001dc2e

Function at 0x14001dc80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001c770
mov ecx, dword [0x1400ce318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dcf0
test esi, esi
je 0x14001dcd0
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dd00
mov edx, esi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c820
mov rbx, rax
jmp 0x14001dca1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dcba
Function at 0x140090570
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140090380
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x1400905c0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140090593
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c1b20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c1b30]
mov dword [rax], 1
mov rax, qword [0x1400c1b40]
mov dword [rax], 1
mov rax, qword [0x1400c1b10]
mov dword [rax], 1
mov rax, qword [0x1400c19b0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400c1b00]
mov dword [0x1400e9020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c1ac0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c1aa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c0e00]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000b990
Capabilities:
Parse pe header

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

Function at 0x14000b9c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000ba0c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x14000ba03
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000ba0e
add rax, 0x28
cmp rax, r9
jne 0x14000b9f0
xor eax, eax
ret

Function at 0x14000ba10
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000baa0
mov rdx, qword [0x1400c19b0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000ba8e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000ba8e
cmp word [rax + 0x18], 0x20b
jne 0x14000ba8e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000baa0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000ba79
add r12, 0x28
cmp r12, rsi
je 0x14000baa0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000ba70
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x1400c19b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bad0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bad8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bad0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000bb25
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000bb1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bad0
add rax, 0x28
cmp rax, r9
jne 0x14000bb08
xor eax, eax
ret

Function at 0x14000bb30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c19b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bb50
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000bb58
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000bb50
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x14000bb70
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c19b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000bb90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000bb98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000bb90
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000bbd8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000bbcf
test rcx, rcx
je 0x14000bb90
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000bbc0
xor eax, eax
ret

Function at 0x14000bbe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c19b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bc00
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bc08
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x1400c19b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bc40
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bc48
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000bc40
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000bc40
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000bc84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bc98
add rax, 0x28
cmp r9, rax
jne 0x14000bc70
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x1400c19b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000bcd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000bce0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bcd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000bcd2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000bcd2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000bd2d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000bd40
add rdx, 0x28
cmp r10, rdx
jne 0x14000bd18
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000bd4f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000bd5f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000bd36
test ecx, ecx
jg 0x14000bd48
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret