joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004922c
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor eax, eax
lea r13, [0x1401182a0]
xor r9d, r9d
mov r12, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
mov rbx, rdx
rep stosd dword [rdi], eax
mov ecx, 0x1ff
mov rdi, r13
mov qword [rsp + 0x68], r9
rep stosb byte [rdi], al
mov rcx, rdx
mov qword [rsp + 0x70], r9
lea r14, [rsp + 0x7c]
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0x1ff
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x140049329
cmp byte [rbx + rbp], 0x5c
je 0x1400492a6
dec rbp
jmp 0x140049292
cmp rbp, 0x103
ja 0x1400493e9
mov eax, 0x104
inc rcx
mov rdi, r14
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r12
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r14
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400493a2
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x1400493c8
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r12
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140049359
xor ecx, ecx
mov qword [rsp + 0x68], rcx
jmp 0x1400493c8
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, str.Akeo_ConsultingRufus
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14004931c
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r13
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400493d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400493e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400493fb
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14004903b
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x140049427
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, esi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_SetLastError]
Function at 0x14004c049
Capabilities:
Encode data using xor
Hash data using crc32b
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rcx
mov ebx, edx
test rcx, rcx
jne 0x14004c070
mov edx, 4
mov ecx, 0x100
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14004c103
test ebx, ebx
je 0x14004c0bb
mov r9d, 8
mov r8d, 1
mov edx, 0x80000000
lea ecx, [rdx + rdx]
sar edx, 0x1f
and edx, 0x4c11db7
xor edx, ecx
mov ecx, r8d
lea r10, [rax + rcx*4]
xor ecx, ecx
cmp ecx, r8d
jae 0x14004c0b1
mov r11d, dword [rax + rcx*4]
xor r11d, edx
mov dword [r10 + rcx*4], r11d
inc rcx
jmp 0x14004c09c
add r8d, r8d
dec r9d
jne 0x14004c085
jmp 0x14004c103
xor edx, edx
mov r9d, 8
mov r8d, pe_nt_image_headers64
mov dword [rax], edx
mov edx, 1
mov ecx, edx
shr ecx, 1
and edx, 1
je 0x14004c0de
mov edx, 0xedb88320
xor edx, ecx
xor ecx, ecx
mov ebx, dword [rax + rcx*4]
lea r11d, [rcx + r8]
lea ecx, [r11 + r8]
xor ebx, edx
mov dword [rax + r11*4], ebx
cmp ecx, 0xff
jbe 0x14004c0e2
shr r8d, 1
dec r9d
jne 0x14004c0d0
add rsp, 0x20
pop rbx
ret

Function at 0x14004c12e
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004c146
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004c157
test rdx, rdx
jne 0x14004c15f
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
or eax, 0xffffffff
jmp 0x14004c22e
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x14004c179
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x14004c157
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x14004c19b
cmp dword [rax], 0
je 0x14004c19b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004c157
mov rax, qword [0x1400b4750]
cmp dword [rax], ecx
jne 0x14004c1e8
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004c1cb
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004c201
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x14004c1fb
call rax
jmp 0x14004c201
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004c22e
mov rdx, qword [0x1400b4730]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b47b0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004c22e
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x14004ce60
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004ce78
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004ce89
test rdx, rdx
jne 0x14004ce91
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
or eax, 0xffffffff
jmp 0x14004cf60
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x14004ceab
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x14004ce89
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x14004cecd
cmp dword [rax], 0
je 0x14004cecd
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004ce89
mov rax, qword [0x1400b4750]
cmp dword [rax], ecx
jne 0x14004cf1a
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004cefd
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004cf33
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x14004cf2d
call rax
jmp 0x14004cf33
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004cf60
mov rdx, qword [0x1400b4730]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b47b0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004cf60
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x14004e480
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004e498
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004e4a9
test rdx, rdx
jne 0x14004e4b1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
or eax, 0xffffffff
jmp 0x14004e580
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x14004e4cb
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x14004e4a9
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x14004e4ed
cmp dword [rax], 0
je 0x14004e4ed
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004e4a9
mov rax, qword [0x1400b4750]
cmp dword [rax], ecx
jne 0x14004e53a
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004e51d
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004e553
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x14004e54d
call rax
jmp 0x14004e553
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004e580
mov rdx, qword [0x1400b4730]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b47b0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004e580
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x14004eb60
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004eb78
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004eb89
test rdx, rdx
jne 0x14004eb91
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
or eax, 0xffffffff
jmp 0x14004ec60
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x14004ebab
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x14004eb89
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x14004ebcd
cmp dword [rax], 0
je 0x14004ebcd
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004eb89
mov rax, qword [0x1400b4750]
cmp dword [rax], ecx
jne 0x14004ec1a
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004ebfd
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004ec33
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x14004ec2d
call rax
jmp 0x14004ec33
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004ec60
mov rdx, qword [0x1400b4730]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b47b0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004ec60
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x1400518f0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x140051908
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x140051919
test rdx, rdx
jne 0x140051921
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
or eax, 0xffffffff
jmp 0x1400519f0
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x14005193b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x140051919
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x14005195d
cmp dword [rax], 0
je 0x14005195d
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x140051919
mov rax, qword [0x1400b4750]
cmp dword [rax], ecx
jne 0x1400519aa
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14005198d
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x1400519c3
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x1400519bd
call rax
jmp 0x1400519c3
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x1400519f0
mov rdx, qword [0x1400b4730]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b47b0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400519f0
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x140052380
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x28
test ecx, ecx
jns 0x14005239b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x140052486
test rdx, rdx
jne 0x1400523b1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x140052486
mov rax, qword [0x1400b4200]
cmp dword [rax], r8d
jae 0x1400523ce
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x140052486
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x1400523f3
cmp dword [rax], 0
je 0x1400523f3
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x140052486
mov rax, qword [0x1400b4750]
cmp ecx, dword [rax]
jne 0x14005243d
mov r9, qword [0x1400b4770]
mov rax, qword [0x1400b4760]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x140052423
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b4740]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
jmp 0x140052459
mov rax, qword [0x1400b47c0]
mov rax, qword [rax]
test rax, rax
je 0x140052450
call rax
jmp 0x140052456
call qword [sym.imp.msvcrt.dll__read]
mov r8d, eax
test r8d, r8d
jle 0x140052486
mov rax, qword [0x1400b4730]
movsxd rcx, r8d
add rcx, qword [rax]
mov qword [rax], rcx
mov rax, qword [0x1400b47b0]
mov rax, qword [rax]
test rax, rax
je 0x140052486
add rsp, 0x28
pop rsi
pop rdi
jmp rax
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x140052792
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp byte [rcx], 0
mov ebp, edx
je 0x1400527a8
xor eax, eax
jmp 0x1400528dc
mov ecx, dword [rcx + 0x10]
test ecx, ecx
jns 0x1400527c0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x1400528b0
mov rax, qword [0x1400b4200]
cmp dword [rax], 1
ja 0x1400527dd
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
jmp 0x1400528b0
mov rax, qword [0x1400b4790]
mov rax, qword [rax]
test rax, rax
je 0x140052802
cmp dword [rax], 0
je 0x140052802
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x1400528b0
mov rax, qword [0x1400b4750]
lea rdx, [rsp + 0x2e]
cmp ecx, dword [rax]
jne 0x140052858
mov r9, qword [0x1400b4770]
mov rcx, qword [0x1400b4760]
mov ebx, 2
mov rax, qword [r9]
mov rcx, qword [rcx]
lea r8, [rax + 2]
cmp rcx, r8
jae 0x140052838
mov ebx, ecx
sub ebx, eax
mov rcx, qword [0x1400b4740]
mov r8d, ebx
mov rdi, rdx
mov rsi, qword [rcx]
mov rcx, r8
add rsi, rax
add rax, r8
rep movsb byte [rdi], byte [rsi]
mov qword [r9], rax
jmp 0x140052879
mov rax, qword [0x1400b47c0]
mov r8d, 2
mov rax, qword [rax]
test rax, rax
je 0x140052871
call rax
jmp 0x140052877
call qword [sym.imp.msvcrt.dll__read]
mov ebx, eax
test ebx, ebx
jle 0x1400528b0
mov rax, qword [0x1400b4730]
movsxd rcx, ebx
add rcx, qword [rax]
mov qword [rax], rcx
mov rax, qword [0x1400b47b0]
mov rax, qword [rax]
test rax, rax
je 0x14005289e
call rax
cmp ebx, 2
jne 0x1400528b0
movzx eax, word [rsp + 0x2e]
cmp eax, ebp
je 0x1400527a1
mov rax, qword [0x1400b47a0]
lea rcx, str._nError:_invalid_magic
mov rax, qword [rax]
test rax, rax
je 0x1400528ca
call rax
jmp 0x1400528d9
call sub.msvcrt.dll_printf
mov ecx, 0xa
call sub.msvcrt.dll_putchar
or eax, 0xffffffff
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400534c0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
lea eax, [rdx - 1]
mov edi, edx
xor edx, edx
mov ebp, r8d
mov r12d, r9d
div dword [rcx + 0x28]
mov esi, eax
cmp dword [rcx], edi
jae 0x14005350d
mov r9d, edi
mov r8d, 0x80d44900
lea rdx, str.ext2fs_inode_alloc_stats2
lea rcx, str._s:___08X___Illegal_inode_number:__lu_
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400380b9
mov rcx, qword [rbx + 0x48]
mov edx, edi
test r8d, r8d
jle 0x14005351f
call fcn.14005b1f0
jmp 0x140053524
call fcn.14005b27a
mov edx, esi
mov rcx, rbx
call fcn.140054c12
mov edx, esi
mov rcx, rbx
sub eax, ebp
mov r8d, eax
call fcn.140054c4b
test r12d, r12d
je 0x14005355b
mov edx, esi
mov rcx, rbx
call fcn.140054c7f
mov edx, esi
mov rcx, rbx
lea r8d, [rbp + rax]
call fcn.140054cb8
mov r8d, 1
mov edx, esi
mov rcx, rbx
call fcn.140054dcc
mov rax, qword [rbx + 0x20]
test dword [rax + 0x64], 0x410
je 0x1400535bb
mov edx, esi
mov rcx, rbx
mov r12d, dword [rax + 0x28]
call fcn.140054cec
mov ecx, eax
mov rax, qword [rbx + 0x20]
mov r8d, dword [rax + 0x28]
mov edx, r8d
imul edx, esi
lea eax, [r12 + rdx + 1]
sub eax, ecx
cmp edi, eax
jb 0x1400535b1
add r8d, edx
mov rcx, rbx
mov edx, esi
sub r8d, edi
call fcn.140054d25
mov edx, esi
mov rcx, rbx
call fcn.140057229
mov rax, qword [rbx + 0x20]
sub dword [rax + 0x10], ebp
or dword [rbx + 0x10], 0x16
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400535d9
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
call fcn.140054700
mov rcx, qword [rbx + 0x20]
mov ebp, eax
call fcn.1400547aa
cmp rsi, rax
jb 0x140053623
mov r9d, esi
mov r8d, 0x80d44900
lea rdx, str.ext2fs_block_alloc_stats
lea rcx, str._s:___08X___Illegal_block_number:__lu_
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400380b9
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
test edi, edi
jle 0x140053635
call fcn.14005b1f0
jmp 0x14005363a
call fcn.14005b27a
mov edx, ebp
mov rcx, rbx
call fcn.140054ba5
mov edx, ebp
mov rcx, rbx
sub eax, edi
mov r8d, eax
call fcn.140054bde
mov r8d, 2
mov edx, ebp
mov rcx, rbx
call fcn.140054dcc
mov edx, ebp
mov rcx, rbx
call fcn.140057229
mov edx, edi
mov ecx, dword [rbx + 0xb8]
neg edx
movsxd rdx, edx
shl rdx, cl
mov rcx, qword [rbx + 0x20]
call fcn.1400548cb
mov rax, qword [rbx + 0x100]
or dword [rbx + 0x10], 0x26
test rax, rax
je 0x1400536aa
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14005a270
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x20]
add edx, dword [rcx + 0x30]
test rax, rax
mov r9d, r8d
lea r8d, [rdx - 0x7f2bb700]
lea rdx, [0x1400a8ee0]
je 0x14005a2a8
mov qword [rsp + 0x20], rax
lea rcx, [0x1400a8ee7]
call fcn.1400380b9
nop
add rsp, 0x38
ret
lea rcx, [0x1400a8f00]
add rsp, 0x38
jmp fcn.1400380b9

Function at 0x14005ac8c
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, edx
mov edi, r8d
cmp edx, dword [rcx + 0x10]
jb 0x14005acb3
mov edx, dword [rcx + 0x14]
cmp edx, esi
jb 0x14005acb3
lea eax, [rsi + r8 - 1]
xor ebp, ebp
cmp edx, eax
jae 0x14005accb
mov r8, qword [rbx + 0x20]
mov edx, esi
mov ecx, 0x7f2bb72d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400651d0
cmp ebp, edi
jge 0x14005ace3
mov rdx, qword [rbx + 0x28]
mov ecx, esi
sub ecx, dword [rbx + 0x10]
add ecx, ebp
inc ebp
call fcn.14005cb60
jmp 0x14005accb
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14005acec
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, edx
mov edi, r8d
cmp edx, dword [rcx + 0x10]
jb 0x14005ad13
mov edx, dword [rcx + 0x14]
cmp edx, esi
jb 0x14005ad13
lea eax, [rsi + r8 - 1]
xor ebp, ebp
cmp edx, eax
jae 0x14005ad2b
mov r8, qword [rbx + 0x20]
mov edx, esi
mov ecx, 0x7f2bb72e
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400651d0
cmp ebp, edi
jge 0x14005ad43
mov rdx, qword [rbx + 0x28]
mov ecx, esi
sub ecx, dword [rbx + 0x10]
add ecx, ebp
inc ebp
call fcn.14005cb77
jmp 0x14005ad2b
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14005ad50
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x40]
add edx, dword [rcx + 0x50]
test rax, rax
mov r9, r8
lea r8d, [rdx - 0x7f2bb700]
lea rdx, str.ext2fs
je 0x14005ad88
mov qword [rsp + 0x20], rax
lea rcx, str._s:___08X____llu_for__s_
call fcn.1400380b9
nop
add rsp, 0x38
ret
lea rcx, str._s:___08X____llu_
add rsp, 0x38
jmp fcn.1400380b9
Function at 0x14005b643
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
mov rsi, rdx
add rdi, rdx
test rcx, rcx
je 0x14005b711
mov eax, dword [rcx]
sub eax, 0x7f2bb708
cmp eax, 2
ja 0x14005b69d
mov eax, 0xffffffff
cmp rax, rdx
jb 0x14005b67e
lea rdx, [rdi - 1]
cmp rax, rdx
jae 0x14005b696
or r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.14005a270
mov edx, esi
call fcn.14005ac8c
mov eax, dword [rbx]
sub eax, 0x7f2bb76d
cmp eax, 2
ja 0x14005b711
mov ecx, dword [rbx + 0x38]
shr rsi, cl
mov rdx, rsi
mov r10d, esi
cmp rsi, qword [rbx + 0x20]
jb 0x14005b6e4
mov r9, qword [rbx + 0x28]
cmp r9, rsi
jb 0x14005b6e4
mov eax, 1
shl rax, cl
lea r8, [rdi + rax - 1]
shr r8, cl
sub r8d, esi
mov eax, r8d
lea rax, [rsi + rax - 1]
cmp r9, rax
jae 0x14005b6fc
mov r8, qword [rbx + 0x40]
mov edx, r10d
mov ecx, 0x7f2bb72d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.1400651d0
mov rax, qword [rbx + 0x10]
mov rcx, rbx
mov rax, qword [rax + 0x40]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14005b719
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
mov rsi, rdx
add rdi, rdx
test rcx, rcx
je 0x14005b7e7
mov eax, dword [rcx]
sub eax, 0x7f2bb708
cmp eax, 2
ja 0x14005b773
mov eax, 0xffffffff
cmp rax, rdx
jb 0x14005b754
lea rdx, [rdi - 1]
cmp rax, rdx
jae 0x14005b76c
or r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.14005a270
mov edx, esi
call fcn.14005acec
mov eax, dword [rbx]
sub eax, 0x7f2bb76d
cmp eax, 2
ja 0x14005b7e7
mov ecx, dword [rbx + 0x38]
shr rsi, cl
mov rdx, rsi
mov r10d, esi
cmp rsi, qword [rbx + 0x20]
jb 0x14005b7ba
mov r9, qword [rbx + 0x28]
cmp r9, rsi
jb 0x14005b7ba
mov eax, 1
shl rax, cl
lea r8, [rdi + rax - 1]
shr r8, cl
sub r8d, esi
mov eax, r8d
lea rax, [rsi + rax - 1]
cmp r9, rax
jae 0x14005b7d2
mov r8, qword [rbx + 0x40]
mov edx, r10d
mov ecx, 0x7f2bb72e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.1400651d0
mov rax, qword [rbx + 0x10]
mov rcx, rbx
mov rax, qword [rax + 0x48]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14005b7ef
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
test rcx, rcx
mov r9, rdx
lea rdx, str.ext2fs
je 0x14005b828
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x14005b828
mov qword [rsp + 0x20], rax
mov r8d, 0xa
lea rcx, str._s:___08X___called__s_with_64_bit_bitmap_for__s_
call fcn.1400380b9
nop
add rsp, 0x38
ret
mov r8d, 0xa
lea rcx, str._s:___08X___called__s_with_64_bit_bitmap_
add rsp, 0x38
jmp fcn.1400380b9
Function at 0x1400620ff
Capabilities:
Get file size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
xor eax, eax
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x5c]
mov ebx, edx
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5b]
mov rsi, r8
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdx
mov edx, 1
call fcn.140061b2d
test al, al
jne 0x14006215f
mov eax, dword [rsp + 0x5c]
jmp 0x1400622b7
cmp qword [rsp + 0x68], 0
jne 0x14006229b
cmp qword [0x140118770], 0
mov rbp, qword [rsp + 0x70]
jne 0x14006219d
lea rcx, str.NtDll
call fcn.140061270
lea rdx, str.NtDeviceIoControlFile
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140118770], rax
mov r10, qword [0x140118770]
test r10, r10
je 0x14006229b
xor r12d, r12d
mov ecx, 0x24
lea r13, [rsp + 0x78]
xor r9d, r9d
lea rdx, [rsp + 0xb0]
mov eax, r12d
xor r8d, r8d
mov rdi, rdx
rep stosd dword [rdi], eax
mov qword [rsp + 0x40], rdx
mov rcx, rbp
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x48], 0x90
mov dword [rsp + 0x38], 0x90
mov dword [rsp + 0x28], 0x70048
mov qword [rsp + 0x20], r13
call r10
test eax, eax
js 0x140062210
mov rax, qword [rsp + 0xc0]
jmp 0x140062296
cmp eax, 0xc0000010
jne 0x140062272
mov ecx, 0xa
mov eax, r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x88]
mov rdi, rdx
rep stosd dword [rdi], eax
mov qword [rsp + 0x40], rdx
mov rcx, rbp
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x28
mov dword [rsp + 0x28], 0x700a0
mov qword [rsp + 0x20], r13
call qword [0x140118770]
test eax, eax
js 0x14006229b
mov rax, qword [rsp + 0xa0]
jmp 0x140062296
cmp eax, 0xc000000d
jne 0x14006229b
lea rdx, [rsp + 0x88]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14006229b
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x70]
call fcn.140061c6e
mov rax, qword [rsp + 0x68]
movsxd rcx, ebx
xor edx, edx
div rcx
mov qword [rsi], rax
xor eax, eax
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret