Function at 0x4159f0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0xc8], edx
mov dword [rbp + 0xd0], r8d
mov rcx, qword [rbp + 0xc0]
call fcn.00409bc0
nop
mov byte [rbp + 0xaf], 0
mov ecx, 0x42c
call fcn.00404cb0
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x415d95
mov rax, qword [rbp + 0x80]
mov dword [rax], 0x28
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xc8]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xd0]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0x80]
mov word [rax + 0xc], 1
mov rax, qword [rbp + 0x80]
mov word [rax + 0xe], 8
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xc8]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, 0x1f
shr ecx, 3
and ecx, 0xfffffffc
imul ecx, dword [rbp + 0xd0]
mov dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x18], 0
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x1c], 0
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x20], pe_nt_image_headers64
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x24], 0
lea rcx, [0x00439540]
mov rax, qword [rbp + 0x80]
lea rdx, [rax + 0x28]
mov r8d, 0x400
call fcn.00405020
call sub.user32.dll_GetDesktopWindow
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp + 0x58]
call sub.user32.dll_GetDC
mov qword [rbp + 0x90], rax
mov rcx, qword [rbp + 0x90]
call sub.gdi32.dll_CreateCompatibleDC
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x80]
xor r8, r8
lea r9, [rbp + 0x98]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.gdi32.dll_CreateDIBSection
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xa0], 0
je 0x415b87
cmp qword [rbp + 0x98], 0
jne 0x415b98
mov rcx, qword [rbp + 0x80]
call fcn.00404ce0
jmp 0x415d95
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0xa0]
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x88]
xor edx, edx
xor r8, r8
mov r9d, dword [rbp + 0xc8]
mov eax, dword [rbp + 0xd0]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
test eax, eax
jne 0x415bfb
mov byte [rbp + 0x57], 1
jmp 0x415bff
mov byte [rbp + 0x57], 0
mov rcx, qword [rbp + 0xc0]
call fcn.0040ae00
mov rcx, rax
mov edx, 0x40000000
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x415d55
mov dword [rbp + 0x64], 0
cmp byte [rbp + 0x57], 0
je 0x415c8d
lea rcx, [0x004319f8]
call fcn.0040a260
mov rcx, qword [rbp + 0x68]
mov rdx, rax
mov r8d, 0x3a
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov byte [rbp + 0xaf], 0
jmp 0x415d4c
mov dword [rbp + 0x64], 0
lea rcx, [rbp + 0x72]
mov edx, 0xe
xor r8, r8
call fcn.00405ca0
mov word [rbp + 0x72], 0x4d42
mov dword [rbp + 0x7c], 0x436
mov eax, dword [rbp + 0xc8]
imul eax, dword [rbp + 0xd0]
add eax, 0x436
mov dword [rbp + 0x74], eax
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x72]
mov r8d, 0xe
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x80]
mov r8d, 0x428
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x98]
mov r8d, dword [rbp + 0xc8]
add r8d, r8d
add r8d, r8d
add r8d, r8d
add r8d, 0x1f
shr r8d, 3
and r8d, 0xfffffffc
imul r8d, dword [rbp + 0xd0]
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
cmp byte [rbp + 0x57], 0
jne 0x415d62
mov byte [rbp + 0xaf], 1
mov rcx, qword [rbp + 0x80]
call fcn.00404ce0
mov rcx, qword [rbp + 0x88]
call sub.gdi32.dll_DeleteDC
xor ecx, ecx
mov rdx, qword [rbp + 0x90]
call sub.user32.dll_ReleaseDC
mov rcx, qword [rbp + 0xa0]
call sub.gdi32.dll_DeleteObject
nop
lea rcx, [rbp + 0xc0]
call fcn.004099f0
movzx rax, byte [rbp + 0xaf]
lea rsp, [rbp + 0xb0]
pop rbp
ret