Function at 0x140027090
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push r12
push r14
push r15
sub rsp, 0x48
mov r15, rcx
mov r12d, r9d
mov ecx, 0xfffffff5
mov r14, r8
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 3
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, str._NTFS_Scanner__Detecting_replaced_files_on_the_entire_NTFS_drive..._n
call fcn.140022110
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea r8, [0x140034edc]
lea rdx, str.replaced_files.txt
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x140027116
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov qword [rsp + 0x30], r13
xor r13d, r13d
test ebx, ebx
jle 0x1400272d8
mov eax, dword [rsp + 0x78]
nop dword [rax]
xor ebp, ebp
test r12d, r12d
jle 0x14002728d
nop dword [rax + rax]
mov r9, qword [r14]
mov r11, qword [r15]
lea r8, [r9 + 0x400]
lea rbx, [r11 + 0x400]
mov rax, rbx
sub r8, rbx
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140027183
inc rax
test ecx, ecx
jne 0x140027170
test edx, edx
jne 0x140027272
mov rax, r11
sub r9, r11
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1400271a4
inc rax
test ecx, ecx
jne 0x140027191
test edx, edx
jne 0x140027272
xor r10d, r10d
test edi, edi
jle 0x14002720f
movsxd rcx, r10d
mov r9, rbx
shl rcx, 0xb
add rcx, rsi
lea rax, [rcx + 0x400]
sub r9, rax
nop word [rax + rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x1400271e5
inc rax
test edx, edx
jne 0x1400271d0
test r8d, r8d
jne 0x140027207
mov r8, r11
sub r8, rcx
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140027203
inc rcx
test eax, eax
jne 0x1400271f0
test edx, edx
je 0x140027272
inc r10d
cmp r10d, edi
jl 0x1400271b3
movsxd rbx, edi
mov rcx, rsi
shl rbx, 0xb
lea rdx, [rbx + 0x800]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14002730c
mov r8, qword [r15]
add rbx, rax
mov rcx, rbx
mov r9, 0xffffffffffffffff
mov edx, 0x400
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov r8, qword [r15]
lea rcx, [rbx + 0x400]
add r8, 0x400
mov edx, 0x400
mov r9, 0xffffffffffffffff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
inc edi
inc ebp
add r14, 8
cmp ebp, r12d
jl 0x140027150
mov eax, dword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
inc r13d
add r15, 8
mov rbx, rsi
cmp r13d, eax
jl 0x140027140
test edi, edi
jle 0x1400272d8
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x20]
lea r8, [rbx + 0x400]
mov r9, rbx
lea rdx, str._s___s_n
call fcn.140026bd0
add rbx, 0x800
sub rdi, 1
jne 0x1400272b0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x30]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3