joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140245400
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140260550
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14024b230]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14024afd0
cmp qword [rbp + 0xfe8], 0
jne 0x1402455d7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1402455a3
cmp r12, 0x1000
ja 0x1402455f9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140245577
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140245520
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14024557d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140245560
jbe 0x1402454d0
jmp 0x1402455e5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140245485
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140239600
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140239600
jmp 0x1402455a3
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1402620f0
jmp 0x14024560d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140262070
ud2
Function at 0x140248680
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14026d7b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1402486c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14024872a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140248761
test eax, eax
js 0x14024873b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140248754
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140241910
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140239c20
mov ecx, 7
int 0x29
ud2
Function at 0x14024afd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmp ecx, eax
cmovb r8, r9
mov dword [rsp + 0x44], 0
Function at 0x14024fb90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88

Function at 0x140250b00
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140250b38
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140250b50
nop
add rsp, 0x38
ret

Function at 0x140250b50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140250b93
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140240070]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140261a70
ud2

Function at 0x140251200
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14028d201]
mov ecx, 0x10
mov edx, 8
call fcn.1401c8560
test rax, rax
je 0x1402512df
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140251390]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1402512d1
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402512a8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1401c8570
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1401c8570
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140261980
ud2
Function at 0x14025f380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14025f3fa
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 0x14025f3f0
cmp r11, r10
ja 0x14025f493
cmp r10, rdx
ja 0x14025f4a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14025f3f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14025f3d0
jmp 0x14025f467
ja 0x14025f3fa
mov r11, r10
cmp rax, r8
jne 0x14025f3a2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14025f46b
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 0x14025f440
mov r8, r10
sub ecx, r9d
jns 0x14025f45e
jmp 0x14025f46d
cmp r10, rdx
je 0x14025f479
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14025f46d
xor al, 1
cmp r8, rdx
jne 0x14025f420
jmp 0x14025f46d
xor eax, eax
jmp 0x14025f46d
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__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140261b20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1402620f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140262070
ud2

Function at 0x140260a98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140260ae2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140260ae2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140260ae2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140260ae2
cmp dword [rcx + 0x84], 0xe
jbe 0x140260ae2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140260ae4
xor al, al
add rsp, 0x28
ret
Function at 0x140072374
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.140037140
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.140073808
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.140073808
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x14007240e
test dil, dil
je 0x140072407
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140025d94
test eax, eax
je 0x140072400
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x1400724b2
xor al, al
jmp 0x1400724b2
lea rcx, [rbp + 0xff80]
call fcn.140073d18
test al, al
je 0x140072407
lea rcx, [rbp - 0x80]
call fcn.140073d18
test al, al
je 0x1400724cb
test dil, dil
je 0x140072407
lea rdx, [0x1400d04b8]
lea rcx, [rbp + 0xff80]
call fcn.1400252fc
lea rcx, [rbp + 0xff80]
call fcn.140025138
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140025138
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140009a5c
lea rcx, [rsp + 0x58]
call fcn.1400727e0
lea rcx, [rsp + 0x58]
test al, al
sete bl
call fcn.140006c8c
test bl, bl
jne 0x140072407
lea rcx, [rbp - 0x80]
call fcn.140073d18
test al, al
jmp 0x140072432
Function at 0x140072908
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edi, edi
mov r14b, dil
call fcn.140009030
lea rcx, [rsp + 0x70]
call fcn.140009030
lea rcx, [rsp + 0x50]
call fcn.140009030
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140023c1c
mov rcx, qword [rsp + 0x30]
call fcn.140073d18
test al, al
je 0x14007297c
lea rdx, [0x1400d04b8]
lea rcx, [rsp + 0x30]
call fcn.1400098c0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.1400239cc
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140072a1f
cmp sil, 1
jne 0x140072a1f
test byte [rbp - 0x70], 0x10
jne 0x1400729fe
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r14b, sil
call fcn.140009cf0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140009600
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.1400098c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x140072a14
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400729b3
mov sil, dil
jmp 0x1400729b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140072a2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.140006c8c
lea rcx, [rsp + 0x70]
call fcn.140006c8c
lea rcx, [rsp + 0x30]
call fcn.140006c8c
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x2fc4c57a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c61a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c623a
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c621e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6212
cmp qword [rbp - 0x10], 0
je 0x2fc4c6212
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c61d8
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c623b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6340
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6368
mov eax, 0
jmp 0x2fc4c63b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6391
mov eax, 0
jmp 0x2fc4c63b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c63b1
mov eax, 0
jmp 0x2fc4c63b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c63bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c643a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6431
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6431
mov rax, qword [rbp - 8]
jmp 0x2fc4c644f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6404
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14005bbc0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14005bbd0]
mov dword [rax], 1
mov rax, qword [0x14005bbe0]
mov dword [rax], 1
mov rax, qword [0x14005bb60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14005bbb0]
mov dword [0x140063020], 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 [0x14005bc90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14005bc70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14005bb10]
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
lea rcx, [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 0x140003c4a
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, str._usr_lib_nim_lib_system_iterators.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, str._usr_lib_nim_lib_system_iterators.nim
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140003d99
mov qword [rbp - 0x40], 0x333
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x140003cfb
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140003d0f
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, str._usr_lib_nim_lib_system_iterators.nim
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140003d73
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140003d8c
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140003cc9
nop
mov qword [rbp - 0x40], 0x339
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rcx, [0x14004e49e]
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140005c5d
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140005c8d
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x140005c92
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000e1f8
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002dc84
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea rax, [0x140052930]
mov qword [rbp - 0x28], rax
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], 0
mov word [rbp - 0x10], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.nimFrame_21
mov qword [rbp - 0x20], 0x85
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax], 0
mov qword [rbp - 0x20], 0x86
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0
mov qword [rbp - 0x20], 0x91
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x6a09e667
mov qword [rbp - 0x20], 0x92
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0xbb67ae85
mov qword [rbp - 0x20], 0x93
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0x3c6ef372
mov qword [rbp - 0x20], 0x94
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0xa54ff53a
mov qword [rbp - 0x20], 0x95
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0x510e527f
mov qword [rbp - 0x20], 0x96
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], 0x9b05688c
mov qword [rbp - 0x20], 0x97
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1f83d9ab
mov qword [rbp - 0x20], 0x98
lea rax, [0x140052938]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x24], 0x5be0cd19
call sym.popFrame_21
nop
add rsp, 0x50
pop rbp
ret