joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bf0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x140001d72
test byte [r8 + 0x5e], 0x40
jne 0x140001c1d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001d72
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001c56
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001c6d
add rdx, 0x28
cmp rdx, r9
jb 0x140001c44
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140001d68
cmp rbx, r15
jae 0x140001d68
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140001d63
add eax, 0xfffffff8
shr eax, 1
je 0x140001d54
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140001ce2
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140001cee
cmp ax, 0xa
jne 0x140001d46
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140001d3b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140001d22
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140001d2d
add rax, 0x28
cmp rax, r10
jb 0x140001d10
jmp 0x140001d3b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140001d3e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140001cc0
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001ca4
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x140001d80
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x38
movzx eax, word [r9 + 0x14]
lea r10, [r9 + 0x18]
mov r11d, dword [r9 + 0x90]
add r10, rax
movzx eax, word [r9 + 6]
mov rbp, r9
mov r13, r8
mov edi, edx
mov rsi, rcx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x140001de3
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x140001dda
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x140001e6e
add r10, 0x28
cmp r10, r8
jb 0x140001dc2
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r11d, r11d
je 0x140001e4b
cmp dword [rbp + 0x94], 0
je 0x140001e4b
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x78], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001e4b
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001e42
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001e80
add rdx, 0x28
cmp rdx, r9
jb 0x140001e30
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
add rsp, 0x38
pop r13
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r13
jmp 0x140001de5
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x140001e4b
mov r8, r15
mov edx, edi
mov rcx, rsi
call fcn.1400013f0
mov r12, rax
test rax, rax
je 0x140001fb9
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001ee2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001ed9
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001f07
add rdx, 0x28
cmp rdx, r9
jb 0x140001ec7
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x140001f9e
jns 0x140001f16
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140001f62
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x140001ee5
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140001f4d
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140001f44
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x140001fab
add rax, 0x28
cmp rax, r8
jb 0x140001f32
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x140001ef1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x60]
mov edi, dword [rsp + 0x68]
add rbx, 0x14
jmp 0x140001e0b
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140001f4f
jmp 0x140001e50
Function at 0x1400b64d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b651e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b651e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b651e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b651e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b651e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b6520
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001e850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001e860]
mov dword [rax], 1
mov rax, qword [0x14001e870]
mov dword [rax], 1
mov rax, qword [0x14001e800]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001e840]
mov dword [0x14002200c], 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 [0x14001e960]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001e940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001e7b0]
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 0x140001472
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_char__unsigned_long_long__char_const__::_
cmp dword [rbp + 0x10], 0
jne 0x1400014de
lea rax, str.cmd.exe__n_0lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 1
jne 0x1400014f8
lea rax, str.cmd.exe__c_1lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 2
jne 0x140001512
lea rax, str.cmd.exe__c_2lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 3
jne 0x140001529
lea rax, str.cmd.exe__c_3lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 4
jne 0x140001540
lea rax, str.cmd.exe__c_4lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 5
jne 0x140001557
lea rax, str.cmd.exe__c_5lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 6
jne 0x14000156e
lea rax, str.cmd.exe__c_6lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 7
jne 0x140001585
lea rax, str.cmd.exe__c_7lol
mov rcx, rax
call sym.system
jmp 0x14000159a
cmp dword [rbp + 0x10], 8
jne 0x14000159a
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 0x140001614
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 [0x14001e0cc]
comiss xmm0, dword [rbp + 0xc4]
jbe 0x14000167c
mov ecx, 0
call sym.die_int_
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 0x1400016e9
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
setne al
test al, al
jne 0x1400016e2
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 0x140001771
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
setne al
test al, al
jne 0x14000176a
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 0x1400017fa
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
setne al
test al, al
jne 0x1400017f3
cmp dword [rbp + 0xcc], 9
jg 0x140001832
mov ecx, 1
call sym.die_int_
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetCursorPos]
call rax
test eax, eax
setne al
test al, al
je 0x14000189b
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 0x14000188f
mov edx, dword [rbp - 0x60]
mov eax, dword [rbp - 0x58]
sub edx, eax
cmp edx, 0x64
jg 0x14000188f
mov edx, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub edx, eax
cmp edx, 0x64
jg 0x14000188f
mov edx, dword [rbp - 0x5c]
mov eax, dword [rbp - 0x54]
sub edx, eax
cmp edx, 0xffffff9c
jge 0x1400018a5
mov ecx, 2
call sym.die_int_
jmp 0x1400018a5
mov ecx, 3
call sym.die_int_
nop
add rsp, 0x150
pop rbp
ret
Function at 0x140001e30
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 0x140001ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400220a4]
mov rbx, rcx
test esi, esi
jle 0x140001fd0
mov rax, qword [0x1400220a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001eeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ed0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ff2
mov rax, qword [0x1400220a8]
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 [0x1400220a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001f6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001f80
add dword [0x1400220a4], 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 [0x1400220a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f6e
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 0x140001ef8
mov rax, qword [0x1400220a8]
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 0x140002580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140022100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400220e0]
test rbx, rbx
je 0x1400025dc
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 0x1400025d3
test eax, eax
jne 0x1400025d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025b8
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 0x1400027f0
Capabilities:
Parse pe header

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

Function at 0x140002820
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 0x14000286d
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 0x140002864
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000286f
add rax, 0x28
cmp rax, r9
jne 0x140002850
xor eax, eax
ret

Function at 0x140002870
Capabilities:
Parse pe header

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

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

Function at 0x140002990
Capabilities:
Parse pe header

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

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

Function at 0x140002a50
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14001e800]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002b42
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b50
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b42
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002b42
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002b42
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 0x140002ba5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002bb8
add rdx, 0x28
cmp r10, rdx
jne 0x140002b90
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002bc7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002bd7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bae
test ecx, ecx
jg 0x140002bc0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002c30
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 0x140002de0
cmp byte [rbx], 0
je 0x140002da8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002df0
test al, 0x10
je 0x140002da8
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 0x140002e18
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140002d70
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 0x140002d18
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140002d18
cmp cl, 0x2f
jne 0x140002dc8
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 0x140002e00
test eax, eax
je 0x140002cf9
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x140002cf9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140002cf9
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 0x140002d18
call sym._errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140002db5
call sym._errno
xor edx, edx
mov dword [rax], 2
jmp 0x140002db5
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 0x140002cf9
call sym._errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140002db5