joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8df860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9005e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8df9e8
mov rax, qword [0x6d9005e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8df8ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8df935
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8df890
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8dfa1d
mov rax, qword [0x6d9005e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9005e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8dfa00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8df92e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8df990
add dword [0x6d9005e4], 1
cmp edi, 8
jae 0x6d8df963
test dil, 4
jne 0x6d8df9d4
test edi, edi
je 0x6d8df958
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8df9ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8df958
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8df97c
jmp 0x6d8df958
add rsi, qword [0x6d9005e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8df92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8df958
xor esi, esi
jmp 0x6d8df8b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8df958
mov rax, qword [0x6d9005e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8e0170
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9008c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9008a0]
test rbx, rbx
je 0x6d8e01c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8e01bb
test rsi, rsi
je 0x6d8e01bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8e01a0
lea rcx, [0x6d9008c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8e0400
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8e0410
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8e0420
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8e0461
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8e0458
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8e0463
add rax, 0x28
cmp rax, r9
jne 0x6d8e0444
xor eax, eax
ret

Function at 0x6d8e0500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8fd1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8e056d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e056d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8e056d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8e0564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8e056f
add rax, 0x28
cmp rax, r9
jne 0x6d8e0550
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8e0670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8fd1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8e0690
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e0688
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8e06ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8e06e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8e06f4
add rax, 0x28
cmp rax, r9
jne 0x6d8e06d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8e0710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8fd1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8e077e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e077e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8e077e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8e077e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8e0775
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8e0785
add rcx, 0x28
cmp rcx, rax
jne 0x6d8e0760
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8e0798
jmp 0x6d8e077e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8e07a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8e077e
test r9d, r9d
jg 0x6d8e0790
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8e0b10
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 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 sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140153850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140153860]
mov dword [rax], 1
mov rax, qword [0x140153870]
mov dword [rax], 1
mov rax, qword [0x140153800]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140153840]
mov dword [0x14015700c], 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 [0x140153960]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140153940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401537b0]
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 0x1400014bc
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
movabs rax, 0x206578652e646d63
movabs rdx, 0x204c4f4c20632f
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov dword [rbp - 0x10], 0
mov eax, dword [rbp + 0x10]
mov dword [rbp - 4], eax
mov edx, dword [rbp - 4]
lea rax, [rbp - 0x20]
mov r9d, edx
lea r8, section..rdata
mov edx, 1
mov rcx, rax
call sym.snprintf
cmp dword [rbp + 0x10], 0
jne 0x140001528
lea rax, str.cmd.exe__n_0lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 1
jne 0x140001542
lea rax, str.cmd.exe__c_1lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 2
jne 0x14000155c
lea rax, str.cmd.exe__c_2lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 3
jne 0x140001573
lea rax, str.cmd.exe__c_3lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 4
jne 0x14000158a
lea rax, str.cmd.exe__c_4lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 5
jne 0x1400015a1
lea rax, str.cmd.exe__c_5lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 6
jne 0x1400015b8
lea rax, str.cmd.exe__c_6lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 7
jne 0x1400015cf
lea rax, str.cmd.exe__c_7lol
mov rcx, rax
call sym.system
jmp 0x1400015e4
cmp dword [rbp + 0x10], 8
jne 0x1400015e4
lea rax, str.cmd.exe__c_8lol
mov rcx, rax
call sym.system
mov eax, dword [rbp + 0x10]
mov ecx, eax
call sym.exit
nop
Function at 0x14000165e
Capabilities:
Check for unmoving mouse cursor
Query environment variable

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0xc8], eax
mov eax, dword [rbp + 0xc8]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff88888889
shr rdx, 0x20
add edx, eax
sar edx, 5
sar eax, 0x1f
sub edx, eax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
movss dword [rbp + 0xc4], xmm0
movss xmm0, dword [0x1401530cc]
comiss xmm0, dword [rbp + 0xc4]
jbe 0x1400016c6
mov ecx, 0
call sym.die
mov dword [rbp + 0xcc], 0
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x50]
add rax, rdx
movabs rcx, 0x706f746b7365445c
mov qword [rax], rcx
mov word [rax + 8], 0x5c
lea rax, [rbp + 0x50]
mov rcx, rax
call dbg.opendir
mov qword [rbp + 0xb8], rax
jmp 0x140001733
add dword [rbp + 0xcc], 1
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call dbg.readdir
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x14000172c
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x50]
add rax, rdx
movabs rcx, 0x6e656d75636f445c
mov qword [rax], rcx
mov dword [rax + 8], 0x5c7374
mov rax, rbp
mov rcx, rax
call dbg.opendir
mov qword [rbp + 0xa8], rax
jmp 0x1400017b6
add dword [rbp + 0xcc], 1
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call dbg.readdir
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x1400017af
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x50]
add rax, rdx
movabs rcx, 0x616f6c6e776f445c
mov qword [rax], rcx
mov dword [rax + 8], 0x5c7364
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.opendir
mov qword [rbp + 0xa0], rax
jmp 0x14000183a
add dword [rbp + 0xcc], 1
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call dbg.readdir
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x140001833
cmp dword [rbp + 0xcc], 9
jg 0x14000186d
mov ecx, 1
call sym.die
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetCursorPos]
call rax
test eax, eax
je 0x1400018d1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetCursorPos]
call rax
mov edx, dword [rbp - 0x60]
mov eax, dword [rbp - 0x58]
sub edx, eax
cmp edx, 0xffffff9c
jl 0x1400018c5
mov edx, dword [rbp - 0x60]
mov eax, dword [rbp - 0x58]
sub edx, eax
cmp edx, 0x64
jg 0x1400018c5
mov edx, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub edx, eax
cmp edx, 0x64
jg 0x1400018c5
mov edx, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub edx, eax
cmp edx, 0xffffff9c
jge 0x1400018db
mov ecx, 2
call sym.die
jmp 0x1400018db
mov ecx, 3
call sym.die
nop
add rsp, 0x150
pop rbp
ret
Function at 0x140001e60
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 0x140001ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401570a4]
mov rbx, rcx
test esi, esi
jle 0x140002000
mov rax, qword [0x1401570a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001fa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002022
mov rax, qword [0x1401570a8]
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 [0x1401570a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002007
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001f9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001fb0
add dword [0x1401570a4], 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 [0x1401570a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f9e
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 0x140001f28
mov rax, qword [0x1401570a8]
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 0x1400025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140157100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401570e0]
test rbx, rbx
je 0x14000260c
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 0x140002603
test eax, eax
jne 0x140002603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025e8
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 0x140002820
Capabilities:
Parse pe header

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

Function at 0x140002850
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 0x14000289d
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 0x140002894
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000289f
add rax, 0x28
cmp rax, r9
jne 0x140002880
xor eax, eax
ret

Function at 0x1400028a0
Capabilities:
Parse pe header

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

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

Function at 0x1400029c0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140153800]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002a20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002a28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002a20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002a70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002a67
test rcx, rcx
je 0x140002a20
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002a58
xor eax, eax
ret

Function at 0x140002a80
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140153800]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002b72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002b72
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002b72
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 0x140002bd5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002be8
add rdx, 0x28
cmp r10, rdx
jne 0x140002bc0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002bf7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002c07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bde
test ecx, ecx
jg 0x140002bf0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
mov dword [rax], 0
test rbx, rbx
je 0x140002e10
cmp byte [rbx], 0
je 0x140002dd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002e20
test al, 0x10
je 0x140002dd8
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sym._fullpath
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sym.malloc
mov rdx, rax
test rax, rax
je 0x140002e48
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140002da0
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140002d48
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140002d48
cmp cl, 0x2f
jne 0x140002df8
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140002e30
test eax, eax
je 0x140002d29
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x140002d29
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140002d29
call sym._errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140002d48
call sym._errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140002de5
call sym._errno
xor edx, edx
mov dword [rax], 2
jmp 0x140002de5
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x140002d29
call sym._errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140002de5