joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c30f8]
test ecx, ecx
je 0x140060b16
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140060a32
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140060b10
mov ecx, dword [0x1400c30f8]
test ecx, ecx
je 0x140060b38
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060b55
mov rdi, rax
test rax, rax
jne 0x140060abc
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f4aa8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060b74
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c30f8]
test ecx, ecx
je 0x140060b61
dec ecx
mov rdx, rdi
call fcn.1400c10dc
test rsi, rsi
je 0x140060ad6
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140060ad8
mov rax, qword [rsi + 8]
jmp 0x140060ad8
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140060b10
test rcx, rcx
je 0x140060b10
lock dec qword [rcx]
jne 0x140060b10
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140060b57
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140060a24
jmp 0x140060a32
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060a51
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x140060ab4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140060ba0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c3118]
test ecx, ecx
je 0x140060bd3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140060bec
mov rcx, rax
cmp qword [rax + 8], 0
je 0x140060bec
add rcx, 0x10
jmp 0x140060ce9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140060bc0
mov ecx, dword [0x1400c3118]
test ecx, ecx
je 0x140060cca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060ce7
mov rdi, rax
test rax, rax
jne 0x140060c62
mov rax, qword [0x1400f4aa8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060d06
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400c3118]
test ecx, ecx
je 0x140060cf3
dec ecx
mov rdx, rdi
call fcn.1400c10dc
test rsi, rsi
je 0x140060c7f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x140060cb4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140060caf
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140060cb4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x140060ce9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060c0b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x140060c5a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400a7d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a7dca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400a7dc0
cmp r11, r10
ja 0x1400a7e63
cmp r10, rdx
ja 0x1400a7e77
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a7dc2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a7da0
jmp 0x1400a7e37
ja 0x1400a7dca
mov r11, r10
cmp rax, r8
jne 0x1400a7d72
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a7e3b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400a7e10
mov r8, r10
sub ecx, r9d
jns 0x1400a7e2e
jmp 0x1400a7e3d
cmp r10, rdx
je 0x1400a7e49
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a7e3d
xor al, 1
cmp r8, rdx
jne 0x1400a7df0
jmp 0x1400a7e3d
xor eax, eax
jmp 0x1400a7e3d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, [0x1400e78b8]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1400e78d0]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1400e78d0]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400c1eb0
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 0x1400c1f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401062b4]
mov rbx, rcx
test esi, esi
jle 0x1400c2050
mov rax, qword [0x1401062b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400c1f6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400c1ff5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400c1f50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400c2072
mov rax, qword [0x1401062b8]
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 [0x1401062b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400c2057
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400c1fee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400c2000
add dword [0x1401062b4], 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 [0x1401062b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c1fee
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 0x1400c1f78
mov rax, qword [0x1401062b8]
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 0x1400c25e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140106320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140106300]
test rbx, rbx
je 0x1400c263c
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 0x1400c2633
test rsi, rsi
je 0x1400c2633
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c2618
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 0x1400c2850
Capabilities:
Parse pe header

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

Function at 0x1400c2880
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 0x1400c28cd
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 0x1400c28c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400c28cf
add rax, 0x28
cmp rax, r9
jne 0x1400c28b0
xor eax, eax
ret

Function at 0x1400c28d0
Capabilities:
Parse pe header

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

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

Function at 0x1400c29f0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400f49f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400c2a50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400c2a58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400c2a50
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400c2aa0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400c2a97
test rcx, rcx
je 0x1400c2a50
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400c2a88
xor eax, eax
ret

Function at 0x1400c2ab0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400f49f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400c2ba2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400c2bb0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c2ba2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400c2ba2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400c2ba2
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 0x1400c2c05
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400c2c18
add rdx, 0x28
cmp rdx, r10
jne 0x1400c2bf0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400c2c27
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400c2c37
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400c2c0e
test ecx, ecx
jg 0x1400c2c20
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400b3560
Capabilities:
Parse pe header

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

Function at 0x1400c5924
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 0x1400c571b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c571b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c571b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c571b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c571b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c571b
cmp dword [rcx + 0xf8], 0
je 0x1400c571b
mov ecx, ebx
call fcn.1400c582c
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.1400c5480
nop
cmp dword [rbp + 0x20], 0
je 0x1400c5769
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c5774
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c56ac
Function at 0x1400f4360
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, 0x30
movsxd r15, ecx
lea r9, [0x1401b7510]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400f43b7
cmp word [rdx], r13w
jne 0x1400f43b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f43bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f44e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f4502
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f43f5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f441c
cmp r9, r8
jae 0x1400f442c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400f43d6
jmp 0x1400f44e1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f44d6
cmp dword [rsp + 0x80], esi
je 0x1400f44d6
lea r8, [0x1401b7510]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f44ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f447e
mov word [rbx], r13w
jmp 0x1400f44de
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400f448b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f44de
cmp word [rsp + 0x70], r13w
jne 0x1400f44bb
cmp rbx, r14
je 0x1400f4478
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14010569c
cmp word [rsp + 0x70], r13w
je 0x1400f44e1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401b7510]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f44db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f44e1
Function at 0x1400f656c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f6582
mov al, 1
jmp 0x1400f65e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f6593
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f65e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400fdef8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f65e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f65e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f65e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f65e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400fbbb0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400fbbe0
xor eax, eax
jmp 0x1400fbca3
mov rbp, rbx
cmp word [rax], si
je 0x1400fbc05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400fbbec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400fbbe8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400fba30
movsxd r14, eax
test eax, eax
jne 0x1400fbc43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400fbbd9
mov rcx, r14
call fcn.1400f84d0
mov rdi, rax
test rax, rax
jne 0x1400fbc5c
xor ecx, ecx
call fcn.1400f3594
jmp 0x1400fbc38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400fba30
test eax, eax
jne 0x1400fbc8d
mov rcx, rdi
call fcn.1400f3594
jmp 0x1400fbc97
xor ecx, ecx
call fcn.1400f3594
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14010c7dc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14010569c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010569c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010c92c
cmp rax, 0xffffffffffffffff
je 0x14010c92c
xor edi, edi
test rbp, rbp
jle 0x14010c8d7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400f8530
mov rbx, rax
test rax, rax
jne 0x14010c864
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010c8cd
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c97cc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400f5ed8
cmp eax, 0xffffffff
je 0x14010c8ad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010c874
mov edx, r15d
mov ecx, r14d
call fcn.1400c97cc
jmp 0x14010c8cd
cmp byte [rsi + 0x38], dil
je 0x14010c8c4
cmp dword [rsi + 0x34], 5
jne 0x14010c8c4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14010c8cd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400f3594
jmp 0x14010c940
jns 0x14010c940
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010569c
cmp rax, 0xffffffffffffffff
jne 0x14010c8f8
cmp byte [rsi + 0x30], dil
je 0x14010c940
mov edi, dword [rsi + 0x2c]
jmp 0x14010c940
mov ecx, r14d
call fcn.1400fdef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010c940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14010c940
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010c939
mov eax, dword [rsi + 0x2c]
jmp 0x14010c93e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010569c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401107c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401107e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401107e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret