joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009e30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140009e52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140009ecc
mov rdi, r14
mov rcx, rbx
call fcn.14000d5f0
test rax, rax
jle 0x140009ea4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400489f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140009ebc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140009ec4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140009e66
sub r14, rdi
jmp 0x140009faf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140009ee3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009ee5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009f17
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400489f0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140009fac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140009f52
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140009f8d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14005eb10
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140009fac
cmp rbp, rax
ja 0x140009f60
test rbp, rbp
je 0x140009fac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14005eb10
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140014b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140014b74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140014b60
ret
Function at 0x140022d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, qword [0x14005ce08]
mov eax, 0xffffffff
test edx, edx
je 0x140022e34
mov r9d, edx
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
xor eax, ecx
mov ecx, eax
and cl, 1
neg cl
sbb edx, edx
shr eax, 1
and edx, 0xedb88320
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
sub r9, 1
jne 0x140022d90
not eax
ret
Function at 0x1400295a8
Capabilities:
Parse pe header

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

Function at 0x14002cfa8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002ce13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ce13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ce13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ce13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ce13
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ce13
cmp dword [rcx + 0xf8], 0
je 0x14002ce13
mov ecx, ebx
call fcn.14002cec4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002cca0
nop
cmp dword [rbp + 0x20], 0
je 0x14002ce61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002ce6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002cda4
Function at 0x14003d8c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003d947
mov rsi, rbx
cmp word [rax], bp
je 0x14003d906
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003d8f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003d8ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003b148
mov rdi, rax
test rax, rax
je 0x14003d934
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002ad30
mov rbp, rdi
xor ecx, ecx
call fcn.140039518
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400414bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400414d2
mov al, 1
jmp 0x140041532
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400414e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140041530
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003e064
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041530
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140041530
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140041530
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140041532
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140043cf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043d18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043d18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401139b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401139c0]
mov dword [rax], 1
mov rax, qword [0x1401139d0]
mov dword [rax], 1
mov rax, qword [0x1401139a0]
mov dword [rax], 1
mov rax, qword [0x140113840]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140113990]
mov dword [0x140142020], 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 [0x140113940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140113920]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140112c40]
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
mov rcx, qword [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 0x1400038bc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
setne al
test al, al
je 0x140003952
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rax, [rbp - 0xa]
mov rcx, rax
call fcn.140079680
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0xa]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0xa]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x1400039ba
lea rax, [rbp - 9]
mov rcx, rax
call fcn.140079680
lea rax, [rbp - 9]
mov r8, rax
lea rax, str.ERROR:_Unable_to_open_clipboard._Please_try_again.
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 9]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x1400039ba
mov rax, qword [rbp + 0x20]
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x1400045a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140004610
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1401420f4]
mov r12, rcx
test ebx, ebx
jle 0x140004740
mov rax, qword [0x1401420f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000465b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x1400046e5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140004640
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140004762
mov rax, qword [0x1401420f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401420f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004747
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400046f0
add dword [0x1401420f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1401420f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046de
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 ebx, ebx
jmp 0x140004668
mov rax, qword [0x1401420f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004c30
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140142160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140142140]
test rbx, rbx
je 0x140004c8c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140004c83
test r12, r12
je 0x140004c83
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004c68
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140004ec0
Capabilities:
Parse pe header

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

Function at 0x140004ef0
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 0x140004f35
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140004f2c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140004f37
add rax, 0x28
cmp rax, r9
jne 0x140004f18
xor eax, eax
ret

Function at 0x140004f40
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140004fd0
mov rdx, qword [0x140113840]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140004fbe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140004fbe
cmp word [rax + 0x18], 0x20b
jne 0x140004fbe
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140004fd0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140004fa9
add r12, 0x28
cmp r12, rsi
je 0x140004fd0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140004fa0
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 0x140004fe0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140113840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005000
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005008
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005000
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140005055
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 0x14000504c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005000
add rax, 0x28
cmp rax, r9
jne 0x140005038
xor eax, eax
ret

Function at 0x140005060
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140113840]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400050c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400050c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400050c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140005108
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400050ff
test rcx, rcx
je 0x1400050c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400050f0
xor eax, eax
ret

Function at 0x140005110
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140113840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005170
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005178
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005170
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140005170
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400051bc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400051d0
add rdx, 0x28
cmp rdx, r9
jne 0x1400051a8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140113840]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140005202
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140005210
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005202
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140005202
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140005202
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 0x14000525d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140005270
add rdx, 0x28
cmp r10, rdx
jne 0x140005248
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000527f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000528f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140005266
test ecx, ecx
jg 0x140005278
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140006c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rbx
sub rsp, 0x238
mov r12, rcx
call sym._errno
mov dword [rax], 0
test r12, r12
je 0x140006db0
cmp word [r12], 0
je 0x140006d98
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006dc0
test al, 0x10
je 0x140006d98
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, r13
lea r15, [0x140112500]
lea rbx, [0x140112504]
call sym._wfullpath
mov rcx, r13
call sym.wcslen
mov rcx, r15
mov r12, rax
call sym.wcslen
mov rcx, rbx
add r12, rax
call sym.wcslen
lea rcx, [r12 + rax + 0x229]
add rcx, rcx
call sym.malloc
mov r12, rax
test rax, rax
je 0x140006dd3
lea r14, [rax + 0x44c]
mov rdx, r13
mov rcx, r14
call sym.wcscpy
cmp word [r12 + 0x44c], 0
jne 0x140006d58
mov rdx, rbx
mov rcx, r14
call sym.wcscat
lea rdx, [r12 + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [r12 + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x448], 0
mov qword [r12 + 0x230], 0
rep stosq qword [rdi], rax
mov rax, r12
add rsp, 0x238
pop rbx
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x2f
je 0x140006cfa
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x5c
je 0x140006cfa
mov rdx, r15
mov rcx, r14
call sym.wcscat
jmp 0x140006cfa
call sym._errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x140006d3e
call sym._errno
mov dword [rax], 0xe
jmp 0x140006d3e
call sym._errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x140006d3e
call sym._errno
mov dword [rax], 0xc
jmp 0x140006d3e
Function at 0x140007390
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r14d, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x140007448
test rdx, rdx
js 0x140007448
call sym._get_osfhandle
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400075f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1400075f0
mov ecx, r14d
call sym._telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140007448
lea rdx, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400075f0
cmp rbx, qword [rsp + 0x68]
ja 0x1400074a0
xor r9d, r9d
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x74]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140007460
cmp dword [rsp + 0x70], 0xffffffff
je 0x140007460
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
je 0x1400075b8
mov ecx, 0x16
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x140007485
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140007448
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, r14d
call sym._lseeki64
cmp rax, 0xffffffffffffffff
je 0x140007448
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140007448
mov edx, 2
mov ecx, 0x33
call sym.calloc
mov edx, 2
mov ecx, 0x106
mov r12, rax
call sym.calloc
mov r15, rax
test r12, r12
je 0x1400075f0
test rax, rax
je 0x1400075f0
mov edx, 0x32
mov rcx, r12
lea rbp, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rsi, rax
jmp 0x14000752a
mov r8d, 0x32
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x1400075d0
mov dword [rsp + 0x38], 0
mov r9, rbp
mov rdx, r15
mov r8d, 0x105
mov qword [rsp + 0x30], 0
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x140007510
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r15
call sym.free
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r12
mov esi, eax
call sym.free
test esi, esi
je 0x1400075b8
mov rax, rbx
sub rax, qword [rsp + 0x68]
cmp rax, qword [rsp + 0x60]
jbe 0x140007413
nop dword [rax]
mov ecx, 0x1b
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x140007485
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
xor r12d, r12d
call sym.free
jmp 0x140007574
mov ecx, 9
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x140007485