Function at 0x1400016d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
xor ebx, ebx
xor esi, esi
mov qword [rsp + 0x170], rcx
mov ecx, 0x4c
mov qword [rsp + 0x90], rbx
mov rbx, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rbx
mov ecx, 0x4d
mov dword [rsp + 0x70], eax
call rbx
mov qword [rsp + 0x9a], rsi
mov ecx, 0xa
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x9a]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0xa0], rsi
lea rsi, [rsp + 0xf4]
rep stosd dword [rdi], eax
mov qword [rsp + 0x68], rsi
mov rdi, rsi
mov ecx, 0xb
rep stosd dword [rdi], eax
lea rsi, [rsp + 0xa8]
mov ecx, 8
mov rdi, rsi
rep stosd dword [rdi], eax
lea rcx, str.Gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001970
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateCompatibleDC
mov rcx, rax
call rbx
mov r13, rax
test rax, rax
je 0x140001970
mov rcx, qword [rsp + 0x50]
lea rdx, str.CreateDIBSection
call rbx
mov r12, rax
test rax, rax
je 0x140001970
mov rcx, qword [rsp + 0x50]
lea rdx, str.BitBlt
call rbx
mov rbp, rax
test rax, rax
je 0x140001970
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x140001970
mov edx, 7
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetCurrentObject]
mov rdi, rax
test rax, rax
je 0x140001970
mov r8, rsi
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [rsp + 0xac]
mov rcx, rdi
mov r15d, dword [rsp + 0xb0]
mov r14, qword [sym.imp.GDI32.dll_DeleteObject]
mov dword [rsp + 0x58], eax
call r14
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xd4], r15d
mov ecx, 0xa
mov dword [rsp + 0xcc], 0x28
mov rdi, qword [rsp + 0x68]
mov dword [rsp + 0xd0], eax
imul eax, eax, 0x18
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0xd8], 0x180001
rep movsd dword [rdi], dword [rsi]
mov ecx, 8
mov word [rsp + 0x9a], 0x4d42
mov dword [rsp + 0xa4], 0x36
add eax, 0x1f
and eax, 0xffffffe0
cdq
idiv ecx
mov rcx, rbx
imul eax, r15d
mov esi, eax
call r13
xor r10d, r10d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r10
mov r13, rax
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
mov dword [rsp + 0x28], r9d
lea r9, [rsp + 0x90]
call r12
mov rcx, r13
mov rdx, rax
mov r12, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [rsp + 0x74]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0x58]
mov rcx, r13
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
call rbp
xor r11d, r11d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], r11
mov rcx, qword [rsp + 0x170]
mov edx, 0xc0000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, qword [sym.imp.GDI32.dll_DeleteDC]
cmp rax, 0xffffffffffffffff
mov rbp, rax
jne 0x140001977
mov rcx, r13
call r15
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r12
call r14
xor eax, eax
jmp 0x140001a1d
lea r9, [rsp + 0x8c]
xor eax, eax
xor edx, edx
mov rcx, rbp
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdx
mov r8d, 0xe
mov qword [rsp + 0x58], r9
mov rdx, qword [rsp + 0x78]
mov dword [rsp + 0x8c], eax
call rdi
xor ecx, ecx
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r8d, 0x28
mov rcx, rbp
call rdi
xor r8d, r8d
mov r9, qword [rsp + 0x58]
mov rcx, rbp
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], r8
mov r8d, esi
call rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call r15
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r12
call r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret