Function at 0x180023840
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, r8
mov r14, rdx
mov qword [rsp + 0x60], rdx
mov qword [rbp - 0x78], r8
xor ebx, ebx
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x180023a82
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x50], rax
mov rcx, r13
call fcn.18000af90
mov esi, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
imul esi, eax
mov rcx, r13
call fcn.18000af90
mov edi, eax
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
imul edi, eax
mov r8d, edi
mov edx, esi
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov qword [rsp + 0x60], rax
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edi
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [rbx + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov r15, rax
test rax, rax
je 0x180023986
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [r15], rax
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, r12
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [r15 + 0x10], eax
mov rax, qword [rsp + 0x70]
mov qword [r15 + 8], rax
jmp 0x180023989
mov r15, rbx
mov qword [rbp - 0x80], rbx
lea r8, [rbp - 0x80]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x78], ebx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x180023a3d
mov ecx, eax
call fcn.1801bfe80
mov rsi, rax
test rax, rax
je 0x180023a3d
mov r8, rax
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov edi, ebx
mov r9d, dword [rsp + 0x70]
test r9d, r9d
je 0x180023a30
lea r10, str.image_jpeg
mov eax, edi
imul r8, rax, 0x68
mov rdx, qword [r8 + rsi + 0x40]
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x180023a29
add rax, 2
cmp rax, 0xb
je 0x180023ad6
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
je 0x180023a03
inc edi
cmp edi, r9d
jb 0x1800239f1
mov rcx, rsi
call fcn.1801b2680
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test r15, r15
je 0x180023a59
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x1801ff6b9]
mov rcx, r14
call fcn.180005800
nop
mov rcx, r13
call fcn.180004420
mov rax, r14
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18017ae80
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [r8 + rsi]
movups xmmword [rbp - 0x10], xmm0
mov rcx, rsi
call fcn.1801b2680
cmp edi, 0xffffffff
je 0x180023a38
xor r9d, r9d
lea r8, [rbp - 0x10]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [r15 + 8]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x180023b0d
mov dword [r15 + 0x10], eax
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp]
call qword [rax + 0x60]
mov eax, dword [rbp + 0x10]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov r12d, eax
movdqu xmmword [rbp - 0x68], xmm0
mov rsi, rbx
mov qword [rbp - 0x58], rbx
test eax, eax
je 0x180023b65
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.180042be0
mov r8d, r12d
xor edx, edx
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.1801db010
lea rax, [rdi + r12]
mov qword [rbp - 0x60], rax
mov rsi, qword [rbp - 0x58]
jmp 0x180023b69
mov rdi, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea r9, [rbp - 0x50]
mov r8d, dword [rsp + 0x70]
mov rdx, rdi
call qword [rax + 0x18]
mov r9, r12
mov r8, rdi
lea rdx, [rbp - 0x30]
call fcn.180024250
nop
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x180210d40]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
lea rcx, [rbp - 0x30]
call fcn.180004420
nop
test rdi, rdi
je 0x180023aa4
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x180023c3f
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180023c4f
mov rdx, rsi
mov rcx, rdi
call fcn.18017b2e0
jmp 0x180023aa4
call fcn.1801b2a94
int3