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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, r13d
mov edx, ebx
mov rcx, rdi
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r14
mov r12, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor esi, esi
mov dword [rsp + 0x38], esi
mov r9d, ebx
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x50], rax
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x6c], ebx
mov eax, r13d
neg eax
shl ebx, 5
mov dword [rsp + 0x70], eax
mov edi, esi
mov dword [rsp + 0x68], 0x28
mov qword [rsp + 0x74], 0x200001
lea eax, [rbx + 0x1f]
mov qword [rsp + 0x7c], rsi
cdq
mov qword [rsp + 0x84], rsi
and edx, 0x1f
mov dword [rsp + 0x8c], esi
mov ebx, esi
lea r15d, [rdx + rax]
sar r15d, 5
imul r15d, r13d
shl r15d, 2
mov ebp, r15d
test r15d, r15d
je 0x1400025ea
cmp rbp, 0x1000
jb 0x1400025ce
lea rcx, [r15 + 0x27]
cmp rcx, rbp
jbe 0x14000276f
call fcn.1400081d0
test rax, rax
je 0x140002768
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400025d9
mov rcx, rbp
call fcn.1400081d0
mov rbx, rax
mov r8, rbp
lea rdi, [rbx + r15]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r12
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
mov qword [rsp + 0x30], rsi
lea rcx, str.C:WindowsTemp_screenshot.bmp
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14000264c
mov esi, eax
jmp 0x140002701
lea eax, [r15 + 0x36]
mov dword [rsp + 0x9a], 0x36
mov dword [rsp + 0x92], eax
lea r9, [rsp + 0x60]
mov eax, 0x4d42
mov dword [rsp + 0x60], esi
mov r8d, 0xe
mov word [rsp + 0x90], ax
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, 0x28
lea rdx, [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, r15d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
test rbx, rbx
je 0x140002735
sub rdi, rbx
cmp rdi, 0x1000
jb 0x14000272a
mov rcx, qword [rbx - 8]
add rdi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140002768
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000851c
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400081b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001660
int3