joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400de4e0
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x1400de5d4
xor edx, edx
mov dword [rsi + 0x328], 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov edi, eax
test eax, eax
js 0x1400de5c9
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
test eax, eax
jne 0x1400de5bf
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x1400de59d
inc eax
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400de592
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, dword [rsp + 0x34]
jne 0x1400de592
movsxd rdx, dword [rsp + 0x34]
mov rcx, rsi
mov byte [rdx + rbx], 0
mov rdx, rbx
call fcn.1400de5f4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400de5bf
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x34]
lea rdx, str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.140001c80
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x1400de5d4
mov rdx, rbx
mov rcx, rsi
call fcn.1400de5f4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f3170
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400df830
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dword [rcx + 0x2cc], 1
xor esi, esi
cmp dword [rcx + 0xa4], 1
mov rbx, rcx
mov eax, dword [rcx + 0x2cc]
cmove eax, esi
mov dword [rcx + 0x2cc], eax
lea rcx, str.HWLOC_GROUPING
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400df889
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x1400df889
mov dword [rbx + 0x2cc], esi
cmp dword [rbx + 0x2cc], esi
je 0x1400df94b
mov qword [rbx + 0x2e8], 0x3dcccccd
lea rcx, str.HWLOC_GROUPING_ACCURACY
mov dword [rbx + 0x2d8], esi
mov dword [rbx + 0x2dc], 0x3c23d70a
mov dword [rbx + 0x2e0], 0x3ca3d70a
mov dword [rbx + 0x2e4], 0x3d4ccccd
mov dword [rbx + 0x2d4], 5
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
jne 0x1400df8ef
mov dword [rbx + 0x2d4], 1
jmp 0x1400df924
lea rdx, [0x14010f210]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400df924
mov rcx, rdi
mov dword [rbx + 0x2d4], 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rbx + 0x2d8], xmm1
lea rcx, str.HWLOC_GROUPING_VERBOSE
mov dword [rbx + 0x2d0], esi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400df94b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0x2d0], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e0444
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x14012a4d0]
mov edx, 1
mov eax, dword [rsp + 0x40]
cmp ecx, edx
jbe 0x1400e048f
mov rax, qword [0x1401356d0]
test rax, rax
je 0x1400e048a
sub cx, dx
call rax
movzx ecx, ax
mov eax, dword [0x14012a4d0]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
jmp 0x1400e048f
mov eax, ecx
shl eax, 6
add rsp, 0x58
ret

Function at 0x1400e0e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]
Function at 0x1400e10ac
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400e11f6
lea rdx, str.GetActiveProcessorGroupCount
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetActiveProcessorCount
mov rcx, rbx
mov qword [0x1401356c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLogicalProcessorInformation
mov rcx, rbx
mov qword [0x1401356d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumber
mov rcx, rbx
mov qword [0x1401356e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, rbx
mov qword [0x1401356d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1401356e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1401356f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNode
mov rcx, rbx
mov qword [0x140135700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNodeEx
mov rcx, rbx
mov qword [0x140135708], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLogicalProcessorInformationEx
mov rcx, rbx
mov qword [0x140135710], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.K32QueryWorkingSetEx
mov rcx, rbx
mov qword [0x1401356f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualAllocExNuma
mov rcx, rbx
mov qword [0x140135728], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualFreeEx
mov rcx, rbx
mov qword [0x140135718], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140135720], rax
mov rax, qword [0x1401356c0]
test rax, rax
je 0x1400e120d
call rax
movzx eax, ax
mov dword [0x14012a4d0], eax
cmp qword [0x140135728], 0
jne 0x1400e1240
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400e1240
lea rdx, str.QueryWorkingSetEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140135728], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1400e441c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, rdx
mov r13, r8
lea rdx, [0x140110218]
mov rbx, rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
lea rdi, str._dev_stdin
lea rdx, [0x14011022c]
cmovne rdi, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x1400e454d
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov esi, 0x1000
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1400e44a9
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x1400e44a9
mov eax, dword [rsp + 0x34]
inc eax
movsxd rsi, eax
lea rcx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400e4544
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, rax
mov byte [rax + rdi], 0
cmp rax, rsi
jne 0x1400e4522
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r15, rax
test rax, rax
je 0x1400e453b
mov rbx, rsi
lea rcx, [rax + r14]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov byte [rdi + r14], 0
cmp rax, rbx
je 0x1400e44df
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [r14 + 1]
mov qword [r12], rdi
mov qword [r13], rax
xor eax, eax
jmp 0x1400e4550
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f3170
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400eddb4
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x40
lea rdx, [0x140110740]
mov rbx, rcx
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0xd0], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a900]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a910]
mov dword [rax], 1
mov rax, qword [0x14000a920]
mov dword [rax], 1
mov rax, qword [0x14000a8a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a8f0]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a9d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a9b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a850]
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 0x1400018a0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.LIFUTILSREGRESSIONTEST
call sym.getenv
test rax, rax
je 0x1400018d0
mov eax, dword [0x14000a130]
mov word [rbx + 0x18], 0
mov dword [rbx + 0x14], eax
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call qword [sym.imp.msvcrt.dll__localtime64]
mov rdx, rax
movsxd rax, dword [rax + 0x14]
mov rcx, rax
imul rax, rax, 0x51eb851f
mov r8d, ecx
sar r8d, 0x1f
sar rax, 0x25
sub eax, r8d
imul r8d, eax, 0x64
mov eax, ecx
sub eax, r8d
movsxd rcx, eax
mov r8d, eax
imul rcx, rcx, 0x66666667
sar r8d, 0x1f
sar rcx, 0x22
sub ecx, r8d
mov r8d, ecx
lea ecx, [rcx + rcx*4]
add ecx, ecx
shl r8d, 4
sub eax, ecx
add eax, r8d
mov byte [rbx + 0x14], al
mov eax, dword [rdx + 0x10]
lea r8d, [rax + 1]
movsxd rax, r8d
mov ecx, r8d
imul rax, rax, 0x66666667
sar ecx, 0x1f
sar rax, 0x22
sub eax, ecx
movsxd rcx, eax
mov r9d, eax
imul rcx, rcx, 0x66666667
sar r9d, 0x1f
sar rcx, 0x22
sub ecx, r9d
lea r9d, [rcx + rcx*4]
mov ecx, eax
lea eax, [rax + rax*4]
add r9d, r9d
add eax, eax
sub ecx, r9d
sub r8d, eax
shl ecx, 4
add r8d, ecx
mov byte [rbx + 0x15], r8b
movsxd rax, dword [rdx + 0xc]
mov r8, rax
imul rax, rax, 0x66666667
mov ecx, r8d
sar rax, 0x22
sar ecx, 0x1f
sub eax, ecx
movsxd rcx, eax
mov r9d, eax
imul rcx, rcx, 0x66666667
sar r9d, 0x1f
sar rcx, 0x22
sub ecx, r9d
lea r9d, [rcx + rcx*4]
mov ecx, eax
add r9d, r9d
sub ecx, r9d
lea r9d, [rax + rax*4]
mov eax, r8d
add r9d, r9d
shl ecx, 4
sub eax, r9d
add eax, ecx
mov byte [rbx + 0x16], al
movsxd rax, dword [rdx + 8]
mov r8, rax
imul rax, rax, 0x66666667
mov ecx, r8d
sar ecx, 0x1f
sar rax, 0x22
sub eax, ecx
movsxd rcx, eax
mov r9d, eax
imul rcx, rcx, 0x66666667
sar r9d, 0x1f
sar rcx, 0x22
sub ecx, r9d
lea r9d, [rcx + rcx*4]
mov ecx, eax
add r9d, r9d
sub ecx, r9d
lea r9d, [rax + rax*4]
mov eax, r8d
add r9d, r9d
shl ecx, 4
sub eax, r9d
add eax, ecx
mov byte [rbx + 0x17], al
movsxd rax, dword [rdx + 4]
mov r8, rax
imul rax, rax, 0x66666667
mov ecx, r8d
sar ecx, 0x1f
sar rax, 0x22
sub eax, ecx
movsxd rcx, eax
mov r9d, eax
imul rcx, rcx, 0x66666667
sar rcx, 0x22
sar r9d, 0x1f
sub ecx, r9d
lea r9d, [rcx + rcx*4]
mov ecx, eax
add r9d, r9d
sub ecx, r9d
lea r9d, [rax + rax*4]
mov eax, r8d
add r9d, r9d
shl ecx, 4
sub eax, r9d
add eax, ecx
mov byte [rbx + 0x18], al
movsxd rax, dword [rdx]
mov rcx, rax
imul rax, rax, 0x66666667
mov edx, ecx
sar edx, 0x1f
sar rax, 0x22
sub eax, edx
movsxd rdx, eax
mov r8d, eax
imul rdx, rdx, 0x66666667
sar r8d, 0x1f
sar rdx, 0x22
sub edx, r8d
lea r8d, [rdx + rdx*4]
mov edx, eax
add r8d, r8d
sub edx, r8d
lea r8d, [rax + rax*4]
mov eax, ecx
add r8d, r8d
shl edx, 4
sub eax, r8d
add eax, edx
mov byte [rbx + 0x19], al
add rsp, 0x30
pop rbx
ret
Function at 0x140002330
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14008d1c4]
mov rbx, rcx
test esi, esi
jle 0x1400024d0
mov rax, qword [0x14008d1c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400023eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002475
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400023d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400024f2
mov rax, qword [0x14008d1c8]
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 [0x14008d1c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000246e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002480
add dword [0x14008d1c4], 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 [0x14008d1c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000246e
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 0x1400023f8
mov rax, qword [0x14008d1c8]
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 0x140002a60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14008d220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14008d200]
test rbx, rbx
je 0x140002abc
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 0x140002ab3
test rsi, rsi
je 0x140002ab3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a98
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 0x140002cd0
Capabilities:
Parse pe header

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

Function at 0x140002d00
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 0x140002d4d
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 0x140002d44
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002d4f
add rax, 0x28
cmp rax, r9
jne 0x140002d30
xor eax, eax
ret

Function at 0x140002d50
Capabilities:
Parse pe header

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

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

Function at 0x140002e70
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000a8a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ed0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ed8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ed0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002f20
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002f17
test rcx, rcx
je 0x140002ed0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002f08
xor eax, eax
ret

Function at 0x140002f30
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a8a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002f90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002f98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f90
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002f90
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 0x140002fe4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ff0
add rdx, 0x28
cmp r9, rdx
jne 0x140002fd0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a8a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003022
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003030
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003022
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003022
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003022
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 0x140003085
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003098
add rdx, 0x28
cmp rdx, r10
jne 0x140003070
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400030a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400030b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000308e
test ecx, ecx
jg 0x1400030a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140008780
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r14d, r14d
mov rsi, rdx
mov ebx, ecx
call dbg.__main
mov r12, qword [dbg.__acrt_iob_func]
xor ecx, ecx
call r12
mov rbp, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call rbp
mov edx, 0x8000
mov rdi, qword [sym.imp.msvcrt.dll__setmode]
mov ecx, eax
call rdi
mov ecx, 1
call r12
mov rcx, rax
call rbp
mov edx, 0x8000
mov ebp, 1
mov ecx, eax
call rdi
mov r13, qword [0x14000aa10]
lea rdi, [0x14000a03f]
mov dword [r13], 1
jmp 0x140008807
cmp eax, 0x6f
cmove r14d, ebp
mov r8, rdi
mov rdx, rsi
mov ecx, ebx
call sym.getopt
cmp eax, 0xffffffff
je 0x140008823
cmp eax, 0x3f
jne 0x140008800
call sym.usage
sub ebx, 1
cmp ebx, dword [r13]
je 0x140008845
mov ecx, 2
call r12
lea rdx, str.out71_:_Must_give_the_file_type_n
mov rcx, rax
call sym.fprintf
jmp 0x14000881e
movsxd rbx, ebx
mov rcx, qword [rsi + rbx*8]
call sym.get_filetype
mov edi, eax
cmp eax, 0xffffffff
je 0x1400088d1
call sym.read_file
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov r8d, edi
mov dword [rsp + 0x20], eax
lea rsi, [rsp + 0x30]
lea rdx, str.PCFILE
mov ebx, eax
mov rcx, rsi
call sym.create_entry
mov ecx, 1
call r12
mov r8d, 0x20
mov edx, 1
mov rcx, rsi
mov r9, rax
call sym.fwrite
mov ecx, 1
call r12
lea r8d, [rbx + 0xff]
lea rcx, [0x14000d040]
mov edx, 1
mov r9, rax
and r8d, 0xffffff00
call sym.fwrite
xor ecx, ecx
call sym.exit
movsxd rax, dword [r13]
mov ecx, 2
mov rbx, qword [rsi + rax*8]
call r12
lea rdx, str.out71_:_Unknown_file_type_:__s_n
mov rcx, rax
mov r8, rbx
call sym.fprintf
call sym.usage
nop
nop
nop
nop
nop
nop
nop
nop