joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d004c
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 0x2fc4d00ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d00c1
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 0x2fc4d00c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d00df
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 0x2fc4d0094
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc350
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4dd430
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4dcd52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4dcdea
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4dcdce
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 0x2fc4dcdc2
cmp qword [rbp - 0x10], 0
je 0x2fc4dcdc2
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 0x2fc4dcd88
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dcdeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dcef0
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 0x2fc4dcf18
mov eax, 0
jmp 0x2fc4dcf66
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 0x2fc4dcf41
mov eax, 0
jmp 0x2fc4dcf66
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 0x2fc4dcf61
mov eax, 0
jmp 0x2fc4dcf66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dcf6c
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 0x2fc4dcfea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dcfe1
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 0x2fc4dcfe1
mov rax, qword [rbp - 8]
jmp 0x2fc4dcfff
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 0x2fc4dcfb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4015b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov edx, dword [0x0047704c]
mov ebx, dword [0x00477050]
mov eax, dword [0x0047705c]
mov esi, ecx
sub ebx, edx
test eax, eax
jle 0x4016e0
cmp ebx, ecx
jae 0x401642
add dword [0x00477048], edx
test ebx, ebx
jne 0x401660
mov r8, qword [0x00477068]
lea edx, [rbx + rsi]
mov dword [0x0047704c], 0
mov dword [0x00477050], ebx
cmp rdx, r8
ja 0x401680
mov rax, qword [0x00477070]
mov r9, qword [0x00477040]
sub r8d, ebx
lea rcx, [rax + rbx*4]
shl r8d, 2
mov edx, 1
call sub.msvcrt.dll_fread
shr rax, 2
add eax, dword [0x00477050]
cmp esi, eax
mov dword [0x00477050], eax
ja 0x4016c3
mov edx, dword [0x0047704c]
mov rax, qword [0x00477070]
mov ecx, edx
lea rax, [rax + rcx*4]
lea ecx, [rsi + rdx]
mov dword [0x0047704c], ecx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [0x00477070]
lea r8d, [rbx*4]
lea rdx, [rcx + rdx*4]
call sub.msvcrt.dll_memmove
jmp 0x4015e2
test r8, r8
mov eax, 0x400
mov rcx, qword [0x00477070]
cmove r8, rax
add rdx, r8
lea rax, [rdx + rdx]
shl rdx, 3
mov qword [0x00477068], rax
call fcn.00443c50
mov r8, qword [0x00477068]
mov qword [0x00477070], rax
mov ebx, dword [0x00477050]
jmp 0x401608
sub esi, eax
mov dword [0x00477050], 0
add dword [0x00477054], esi
xor eax, eax
jmp 0x401658
xor eax, eax
jmp 0x401658

Function at 0x4017c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.00401780
test eax, eax
je 0x4017e0
mov ecx, eax
add rsp, 0x28
jmp fcn.004015b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402b70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.COLUMNS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x402ba0
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
jle 0x402ba0
add rsp, 0x28
ret
mov eax, 0x7fffffff
add rsp, 0x28
ret
Function at 0x403910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
test rcx, rcx
mov rsi, rcx
mov rbx, rdx
je 0x403a2d
test rdx, rdx
je 0x403a45
mov edx, 0x22
call fcn.0040a170
movzx eax, byte [rbx]
test al, al
je 0x4039aa
mov rbp, qword [0x0046ce60]
lea r12, str._o_o_o
lea rdi, [0x0045d23f]
jmp 0x403986
cmp al, 0x22
je 0x4039f0
cmp al, 0x5c
jne 0x4039d2
lea rdx, [0x0045d236]
mov rcx, rsi
call fcn.0040a6b0
add rbx, 1
movzx eax, byte [rbx]
test al, al
je 0x4039aa
cmp al, 0xa
je 0x4039c1
jg 0x403960
cmp al, 9
jne 0x4039d2
lea rdx, [0x0045d239]
add rbx, 1
mov rcx, rsi
call fcn.0040a6b0
movzx eax, byte [rbx]
test al, al
jne 0x403986
mov edx, 0x22
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.0040a170
lea rdx, [0x0045d23c]
mov rcx, rsi
call fcn.0040a6b0
jmp 0x40397b
movzx ecx, al
movsx edx, al
test byte [rbp + rcx*2], 0x10
je 0x403a00
mov rcx, rsi
call fcn.0040a170
jmp 0x40397b
mov rdx, rdi
mov rcx, rsi
call fcn.0040a6b0
jmp 0x40397b
mov r9d, eax
mov r8d, eax
and eax, 7
shr r9b, 3
shr r8b, 6
mov dword [rsp + 0x20], eax
and r9d, 7
and r8d, 3
mov rdx, r12
mov rcx, rsi
call fcn.0040bd60
jmp 0x40397b
lea r8, str.print_escaped_string
lea rcx, [0x0045d190]
mov edx, 0x2de
call fcn.00459e70
lea r8, str.print_escaped_string
lea rcx, [0x0045d190]
mov edx, 0x2df
call fcn.00459e70
nop
nop
Function at 0x4049e0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0x100]
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov rsi, rdx
lea rbx, [rsp + 0x40]
mov r8d, ecx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cf00]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 2
call fcn.00403ff0
lea r8, str.fatal_error
lea rcx, [0x0045d190]
mov edx, 0x595
call fcn.00459e70
nop
nop dword [rax]
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cef0]
mov rcx, rbx
mov r8d, dword [rax]
mov rax, qword [0x0046cf00]
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 0xd
call fcn.00403ff0
lea r8, str.internal_error_no_backtrace
lea rcx, [0x0045d190]
mov edx, 0x5b4
call fcn.00459e70
nop
nop dword [rax + rax]
sub rsp, 0x58
test rcx, rcx
je 0x404b2f
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], 6
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.004045f0
add rsp, 0x58
ret
lea r8, str.warning_n
lea rcx, [0x0045d190]
mov edx, 0x4df
call fcn.00459e70
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x404a60
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0x100]
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov rsi, rdx
lea rbx, [rsp + 0x40]
mov r8d, ecx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cf00]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 2
call fcn.00403ff0
lea r8, str.fatal_error
lea rcx, [0x0045d190]
mov edx, 0x595
call fcn.00459e70
nop
nop dword [rax]
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cef0]
mov rcx, rbx
mov r8d, dword [rax]
mov rax, qword [0x0046cf00]
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 0xd
call fcn.00403ff0
lea r8, str.internal_error_no_backtrace
lea rcx, [0x0045d190]
mov edx, 0x5b4
call fcn.00459e70
nop
nop dword [rax + rax]
sub rsp, 0x58
test rcx, rcx
je 0x404b2f
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], 6
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.004045f0
add rsp, 0x58
ret
lea r8, str.warning_n
lea rcx, [0x0045d190]
mov edx, 0x4df
call fcn.00459e70
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x404af0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0x100]
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov rsi, rdx
lea rbx, [rsp + 0x40]
mov r8d, ecx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cf00]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 2
call fcn.00403ff0
lea r8, str.fatal_error
lea rcx, [0x0045d190]
mov edx, 0x595
call fcn.00459e70
nop
nop dword [rax]
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x0046cef0]
mov rcx, rbx
mov r8d, dword [rax]
mov rax, qword [0x0046cf00]
mov rdx, qword [rax]
call fcn.00428d20
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 0xd
call fcn.00403ff0
lea r8, str.internal_error_no_backtrace
lea rcx, [0x0045d190]
mov edx, 0x5b4
call fcn.00459e70
nop
nop dword [rax + rax]
sub rsp, 0x58
test rcx, rcx
je 0x404b2f
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], 6
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.004045f0
add rsp, 0x58
ret
lea r8, str.warning_n
lea rcx, [0x0045d190]
mov edx, 0x4df
call fcn.00459e70
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x404b50
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, str.GCC_COLORS
call sub.msvcrt.dll_getenv
test rax, rax
mov rbp, rax
je 0x404cca
movzx edi, byte [rax]
xor eax, eax
test dil, dil
je 0x404ccf
lea rsi, [rbp + 1]
xor r13d, r13d
xor r14d, r14d
xor r12d, r12d
jmp 0x404bc7
test dil, dil
je 0x404bd1
cmp dil, 0x3d
je 0x404c97
test r12, r12
je 0x404bc0
cmp dil, 0x3b
je 0x404bc0
sub edi, 0x30
cmp dil, 9
ja 0x404cca
nop word [rax + rax]
movzx edi, byte [rsi]
add rsi, 1
cmp dil, 0x3a
lea rax, [rsi - 1]
jne 0x404b93
test r12, r12
je 0x404caf
mov rcx, qword [0x0045b020]
sub rax, r12
mov r13, rax
test rcx, rcx
je 0x404cde
lea rbx, [0x0045b020]
jmp 0x404c0c
add rbx, 0x18
mov rcx, qword [rbx]
test rcx, rcx
je 0x404c24
movzx eax, byte [rbx + 0x10]
cmp rax, r14
jne 0x404c00
mov r8, r14
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x404c00
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x404c76
test r12, r12
je 0x404c76
cmp byte [rbx + 0x11], 0
jne 0x404c90
lea rcx, [r13 + 7]
call fcn.00443bd0
mov rdi, rax
mov eax, 0x5b1b
mov r8, r13
lea rcx, [rdi + 2]
mov word [rdi], ax
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rax, [rdi + r13 + 2]
mov qword [rbx + 8], rdi
mov byte [rbx + 0x11], 1
mov dword [rax], 0x4b5b1b6d
mov byte [rax + 4], 0
movzx edi, byte [rsi - 1]
test dil, dil
je 0x404cca
mov rbp, rsi
xor r12d, r12d
jmp 0x404bc0
call sub.msvcrt.dll_free
jmp 0x404c38
cmp rbp, rax
je 0x404cca
test r12, r12
jne 0x404cca
sub rax, rbp
mov r12, rsi
mov r14, rax
jmp 0x404bc0
mov rcx, qword [0x0045b020]
sub rax, rbp
mov r14, rax
test rcx, rcx
jne 0x404bf0
test dil, dil
jne 0x404c7b
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rbx, [0x0045b020]
jmp 0x404c24

Function at 0x408de0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
je 0x408e60
mov rbx, r8
lea r14, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, 0xffffffff
mov r15d, 0xffffffff
jmp 0x408e4f
mov r8d, ebx
mov dword [rsp + 0x3c], ebx
mov rdx, rsi
mov qword [rsp + 0x20], 0
mov r9, r14
sub rdx, rbx
mov rcx, rdi
add rdx, rbp
call r13
test eax, eax
je 0x408e60
mov eax, dword [rsp + 0x3c]
sub rbx, rax
je 0x408e60
cmp rbx, r12
jbe 0x408e20
mov dword [rsp + 0x3c], r15d
mov r8d, r15d
jmp 0x408e27
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x40ce40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 0x28]
mov rbx, rcx
test rax, rax
je 0x40ce70
cmp rax, qword [rcx + 0x20]
je 0x40ce70
sub rax, 1
cmp qword [rcx + 0x30], rax
jae 0x40ce70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_feof
test eax, eax
jne 0x40ce62
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40ce62
mov rsi, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
cmp rsi, rdx
je 0x40ced0
mov rax, qword [rbx + 0x18]
mov r9, qword [rbx + 0x10]
sub rsi, rdx
lea rcx, [rax + rdx]
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40ce62
add qword [rbx + 0x28], rsi
test rsi, rsi
setne al
jmp 0x40ce64
lea rax, [rsi + rsi]
test rsi, rsi
mov rcx, qword [rbx + 0x18]
mov esi, 0x1000
cmovne rsi, rax
mov rdx, rsi
call fcn.00443c50
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x28]
jmp 0x40ce9b
Function at 0x41eb90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movzx eax, byte [rdx + 0x8d]
mov r12, rcx
mov r15, rdx
mov r13d, r8d
test al, al
jne 0x41ecf3
movzx ebp, byte [rdx + 0x8b]
test bpl, bpl
jne 0x41ecf3
mov edx, dword [rdx + 0x84]
test edx, edx
jne 0x41ecf3
cmp dword [r15 + 0x80], 0xffffffff
je 0x41ed20
movzx eax, word [r15 + 0x4e]
and ax, 0xf000
cmp ax, 0x3000
je 0x41ed4c
cmp ax, 0x8000
je 0x41ed04
xor r14d, r14d
mov ecx, 0x2010
mov esi, 0x2000
call fcn.00443bd0
xor ebx, ebx
mov rdi, rax
nop dword [rax + rax]
mov ecx, dword [r15 + 0x80]
lea rdx, [rdi + rbx]
mov r8d, esi
sub r8d, ebx
call sub.msvcrt.dll__read
cdqe
cmp rax, 0
jle 0x41ec63
add rbx, rax
cmp rsi, rbx
jne 0x41ec20
test r14b, r14b
jne 0x41ed80
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 0x10]
call fcn.00443c50
mov rdi, rax
jmp 0x41ec20
jne 0x41ed88
cmp rsi, rbx
je 0x41ec90
test r14b, r14b
je 0x41ec90
mov rax, qword [r15 + 8]
lea r9, str._s_is_shorter_than_expected
mov r8d, r13d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.00419d10
lea rax, [r15 + 0x60]
mov rdx, qword [r12 + 0x470]
lea r9, [rsi + 0x10]
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rcx, r12
mov qword [rsp + 0x30], rax
lea rax, [r15 + 0x30]
mov qword [rsp + 0x28], rax
call fcn.00415b20
mov byte [r15 + 0x8d], 1
mov qword [r15 + 0x28], rax
mov ecx, dword [r15 + 0x80]
mov byte [r15 + 0x8b], bpl
call sub.msvcrt.dll__close
movzx eax, byte [r15 + 0x8b]
mov dword [r15 + 0x80], 0xffffffff
xor eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [r15 + 0x60]
mov r14d, 1
lea rcx, [rsi + 0x10]
jmp 0x41ec0e
mov rcx, r15
call fcn.0041e640
test al, al
jne 0x41ebe4
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov rcx, r12
mov byte [rsp + 0x4f], al
call fcn.0041e750
movzx eax, byte [rsp + 0x4f]
jmp 0x41ecf3
mov rax, qword [r15 + 8]
lea r9, str._s_is_a_block_device
mov r8d, r13d
mov edx, 3
mov rcx, r12
mov ebp, 1
mov qword [rsp + 0x20], rax
call fcn.00419d10
jmp 0x41ecca
mov rbx, rsi
jmp 0x41ec90
mov r8, qword [r15 + 8]
mov r9d, r13d
mov edx, 3
mov rcx, r12
mov ebp, 1
call fcn.00419df0
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x41ecca
Function at 0x422ec0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
movzx eax, byte [rcx + 4]
mov rdi, rcx
mov rsi, rdx
mov rcx, rax
shl rax, 4
mov rdx, rax
lea rax, [0x00466120]
add rax, rdx
mov edx, dword [rax]
cmp edx, 1
je 0x422f20
jb 0x422f90
cmp edx, 2
jne 0x422f10
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rdi + 8]
mov edx, dword [rax + 8]
mov rbp, qword [rax]
test edx, edx
je 0x422f10
xor ebx, ebx
lea r12, [rsp + 0x26]
jmp 0x422f73
mov rcx, r12
call fcn.00421c30
mov r9, rsi
mov r8d, 0xa
mov edx, 1
mov rcx, r12
lea rbx, [rbx + rax - 1]
call sub.msvcrt.dll_fwrite
mov rax, qword [rdi + 8]
add rbx, 1
mov edx, dword [rax + 8]
cmp rdx, rbx
jbe 0x422f10
lea rdx, [rbp + rbx]
test byte [rdx], 0x80
jne 0x422f40
mov rax, qword [rax]
mov rdx, rsi
movzx ecx, byte [rax + rbx]
call sub.msvcrt.dll_fputc
jmp 0x422f63
movzx edx, word [rdi + 6]
test dl, 2
jne 0x422fc3
and edx, 0x10
jne 0x422f20
mov rbx, qword [rax + 8]
movzx ecx, byte [rbx]
add rbx, 1
mov rdx, rsi
call sub.msvcrt.dll_putc
movzx ecx, byte [rbx]
test ecx, ecx
jne 0x422fa5
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
sub ecx, 0x25
lea rax, [0x00466680]
movsxd rcx, ecx
mov rbx, qword [rax + rcx*8]
jmp 0x422fa2
Function at 0x42dc80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea eax, [r8 - 1]
mov r12, rdx
mov edx, dword [rcx + 8]
mov r13d, r8d
mov rbp, rcx
cmp eax, 0x20
mov eax, 0x22
cmovbe r13d, eax
test edx, edx
je 0x42ddfd
mov rax, qword [rcx]
xor ebx, ebx
mov rsi, qword [rax]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov edi, eax
nop word cs:[rax + rax]
mov rdx, r12
mov rcx, rsi
add ebx, 1
call sub.msvcrt.dll_fputs
cmp dword [rbp + 8], ebx
jbe 0x42dd50
mov rax, qword [rbp]
mov r14d, ebx
mov rsi, qword [rax + r14*8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
add edi, eax
test ebx, ebx
mov r15, rax
je 0x42dcd0
test r13d, r13d
je 0x42dd31
cmp r13d, edi
jae 0x42dd31
lea rcx, str.__n
mov r9, r12
mov r8d, 4
mov edx, 1
lea edi, [r15 + 1]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp]
mov rsi, qword [rax + r14*8]
jmp 0x42dcd0
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
mov rax, qword [rbp]
mov rsi, qword [rax + r14*8]
jmp 0x42dcd0
add edi, 1
mov rdx, r12
mov ecx, 0x3a
call sub.msvcrt.dll_putc
mov eax, dword [rbp + 0x18]
test r13d, r13d
setne r14b
xor ebx, ebx
test eax, eax
jne 0x42ddad
jmp 0x42dde0
test r14b, r14b
je 0x42ddc6
lea rcx, str.__n
lea edi, [r15 + 1]
mov r9, r12
mov r8d, 4
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 0x10]
mov rdx, r12
add ebx, 1
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_fputs
cmp dword [rbp + 0x18], ebx
jbe 0x42dde0
mov rax, qword [rbp + 0x10]
mov esi, ebx
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_strlen
add edi, eax
mov r15, rax
cmp r13d, edi
jb 0x42dd72
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
jmp 0x42dd95
mov rdx, r12
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_putc
mov edi, 1
jmp 0x42dd53
Function at 0x431c00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov ebp, edx
mov rdi, rcx
mov rdx, r8
mov ecx, ebp
xor r8d, r8d
mov rbx, r9
call fcn.00450050
test rax, rax
js 0x431cb0
mov r9, qword [rsp + 0x78]
mov rcx, rdi
mov r8, r12
mov rdx, rbx
xor edi, edi
call fcn.00430680
test rax, rax
mov qword [rsi + 8], rax
je 0x431c73
mov qword [rsi], rax
mov qword [rsi + 0x10], rbx
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
call sub.msvcrt.dll__read
test eax, eax
js 0x431ce0
cdqe
mov edi, 1
cmp rbx, rax
ja 0x431c80
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
lea rdx, str.file_too_short
mov rcx, qword [rsp + 0x78]
call r12
mov rcx, qword [rsi + 8]
xor edi, edi
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rax]
lea rdx, str.lseek
xor edi, edi
call r12
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rax]
lea rdx, str.read
call r12
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll_free
jmp 0x431c73
Function at 0x440c20
Capabilities:
Hash data with md5

Disassembly:
push rsi
push rbx
sub rsp, 0xc8
lea rbx, [rsp + 0x20]
mov rsi, r8
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov r8, rbx
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call fcn.00440970
mov rdx, rsi
mov rcx, rbx
call fcn.004408b0
add rsp, 0xc8
pop rbx
pop rsi
ret

Function at 0x440c90
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push r13
push r12
mov eax, 0x1118
push rbp
push rdi
push rsi
push rbx
call fcn.0044f030
sub rsp, rax
mov ebp, 0x1000
lea rsi, [rsp + 0xc0]
lea r12, [rsp + 0x20]
mov rdi, rcx
mov r13, rdx
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
xor ebx, ebx
jmp 0x440d05
test rax, rax
je 0x440d28
lea rcx, [rsi + rbx]
mov r8, rbp
mov r9, rdi
sub r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
add rbx, rax
cmp rbx, 0xfff
jbe 0x440d00
test rax, rax
je 0x440d40
mov r8, r12
mov edx, 0x1000
mov rcx, rsi
call fcn.00440030
jmp 0x440cf5
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
mov edi, eax
jne 0x440d75
test rbx, rbx
lea rbp, [rsp + 0x20]
jne 0x440d7c
mov rdx, r13
mov rcx, rbp
call fcn.004408b0
mov eax, edi
add rsp, 0x1118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 1
jmp 0x440d63
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.00440970
jmp 0x440d58