Function at 0x140002d66
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetDC]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_CreateCompatibleDC]
call rax
mov qword [rbp - 0x10], rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 0x14], eax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 0x18], eax
mov ecx, dword [rbp - 0x18]
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 8]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call rax
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SelectObject]
call rax
mov qword [rbp - 0x28], rax
mov ecx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rdx
mov edx, dword [rbp - 0x18]
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_BitBlt]
call rax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SelectObject]
call rax
mov word [rbp - 0x56], 0x4d42
mov dword [rbp - 0x4c], 0x36
mov dword [rbp - 0x80], 0x28
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x78], eax
mov word [rbp - 0x74], 1
mov word [rbp - 0x72], 0x18
mov dword [rbp - 0x70], 0
mov dword [rbp - 0x6c], 0
mov dword [rbp - 0x68], 0
mov dword [rbp - 0x64], 0
mov dword [rbp - 0x60], 0
mov dword [rbp - 0x5c], 0
movzx eax, word [rbp - 0x72]
movzx eax, ax
imul eax, dword [rbp - 0x14]
add eax, 0x1f
lea edx, [rax + 0x1f]
test eax, eax
cmovs eax, edx
sar eax, 5
imul eax, dword [rbp - 0x18]
shl eax, 2
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov rdx, rax
mov ecx, 0x42
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x40], rax
mov r8d, dword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_GetDIBits]
call rax
lea rax, [0x14000f787]
mov rdx, rax
lea rax, str.screenshot.bmp
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x140002fb3
mov rdx, qword [rbp - 0x48]
lea rax, [rbp - 0x56]
mov r9, rdx
mov r8d, 1
mov edx, 0xe
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x48]
lea rax, [rbp - 0x80]
mov r9, rdx
mov r8d, 1
mov edx, 0x28
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov edx, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x40]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteDC]
call rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_ReleaseDC]
call rax
nop
add rsp, 0xd0
pop rbp
ret