Function at 0x140011159
Capabilities:
Write file on windows

Disassembly:
jmp 0x140011dd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
lea rcx, [0x1400240f6]
call fcn.1400113e8
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x124], 0x40
mov rcx, qword [rbp + 0x220]
call fcn.140011078
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax], 0x4550
je 0x140011e64
lea rcx, [0x14001b040]
call fcn.1400111b3
jmp 0x1400120eb
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140011e84
lea rcx, [0x14001b058]
call fcn.1400111b3
jmp 0x1400120eb
lea rcx, [0x14001b074]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x28]
lea rcx, [0x14001b078]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x30]
lea rcx, [0x14001b098]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x50]
lea rcx, [0x14001b0b8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x2c]
lea rcx, [0x14001b0d8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x38]
lea rcx, [0x14001b0f8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x3c]
lea rcx, [0x14001b118]
call fcn.1400111b3
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x5c]
mov edx, eax
lea rcx, [0x14001b138]
call fcn.1400111b3
mov rax, qword [rbp + 8]
movzx eax, word [rax + 6]
mov edx, eax
lea rcx, [0x14001b158]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 8]
lea rcx, [0x14001b178]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x54]
lea rcx, [0x14001b198]
call fcn.1400111b3
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x16]
mov edx, eax
lea rcx, [0x14001b1b8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x58]
lea rcx, [0x14001b1d8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x14]
mov edx, eax
lea rcx, [0x14001b1f8]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x84]
lea rcx, str.RVA
call fcn.1400111b3
lea rcx, [0x14001b074]
call fcn.1400111b3
mov rcx, qword [rbp + 0x220]
call fcn.1400113c0
mov dword [rbp + 0xe4], eax
lea rcx, str.PatchCheckSum_do__n
call fcn.1400111b3
lea r9, [rbp + 0xa4]
lea r8, [rbp + 0x84]
mov edx, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.imagehlp.dll_CheckSumMappedFile]
mov edx, dword [rbp + 0xa4]
lea rcx, [0x14001b250]
call fcn.1400111b3
mov edx, dword [rbp + 0x84]
lea rcx, [0x14001b278]
call fcn.1400111b3
mov rax, qword [rbp + 8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax + 0x58], ecx
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x58]
lea rcx, [0x14001b2a0]
call fcn.1400111b3
lea rcx, str.WritrFile_do__n
call fcn.1400111b3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.Patch.exe
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
jne 0x140012092
lea rcx, str.WriteFile_Faild__n
call fcn.1400111b3
jmp 0x1400120eb
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x104]
mov r8d, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400120d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WriteFile_Faild___Error_code:0x_x_n
call fcn.1400111b3
lea rcx, str.WriteFile_Success__n
call fcn.1400111b3
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x14001af60]
call fcn.14001137f
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret