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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ecx, ecx
mov r15, rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r13d, 1
mov edi, eax
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, edi
mov rcx, rsi
mov r8d, eax
mov ebx, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r15
mov r14, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov r9d, edi
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.GDI32.dll_BitBlt]
lea r8, [rbp - 0x29]
mov rcx, r14
lea edx, [r13 + 0x1f]
call qword [sym.imp.GDI32.dll_GetObjectA]
lea rdx, [0x140004504]
lea rcx, str.screenShot.png
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x14000134e
lea rcx, str.Failed_to_create_file__n
call fcn.140001040
jmp 0x140001450
mov eax, 0x4d42
mov dword [rbp - 3], r12d
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
movzx eax, word [rbp - 0x17]
mov r9, rdi
imul eax, dword [rbp - 0x21]
mov r8, r13
mov dword [rbp + 1], 0x36
imul eax, dword [rbp - 0x25]
cdq
and edx, 7
add eax, edx
mov edx, recv
sar eax, 3
add eax, 0x36
mov dword [rbp - 7], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rbp - 0x25]
lea rcx, [rbp + 7]
mov dword [rbp + 0xb], eax
mov r9, rdi
mov eax, dword [rbp - 0x21]
mov r8, r13
neg eax
mov dword [rbp + 7], 0x28
mov dword [rbp + 0xf], eax
mov edx, 0x28
movzx eax, word [rbp - 0x17]
mov word [rbp + 0x15], ax
mov word [rbp + 0x13], r13w
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
movzx eax, word [rbp - 0x17]
imul eax, dword [rbp - 0x21]
imul eax, dword [rbp - 0x25]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov rcx, r14
movzx eax, word [rbp - 0x17]
mov r8, rbx
imul eax, dword [rbp - 0x21]
imul eax, dword [rbp - 0x25]
cdq
and edx, 7
add edx, eax
sar edx, 3
call qword [sym.imp.GDI32.dll_GetBitmapBits]
movzx eax, word [rbp - 0x17]
mov r9, rdi
imul eax, dword [rbp - 0x21]
mov r8, r13
mov rcx, rbx
imul eax, dword [rbp - 0x25]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rdx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002980
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret