Function at 0x4024a0
Capabilities:
Check http status code
Connect to http server
Create http request
Create process on windows
Open clipboard
Read data from internet
Receive data
Send data
Send http request
Write clipboard data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4232cb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6d0
mov eax, dword [0x43304c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x548], edx
mov edi, ecx
mov dword [ebp - 0x544], 0
mov word [ebp - 0x53c], 0xa0d
mov byte [ebp - 0x53a], 0
mov dword [ebp - 0x5e8], 0x42fb58
mov dword [ebp - 0x590], 0
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x568], 0
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0x598]
mov dword [ebp - 0x544], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x59c], 0x48
call fcn.00405680
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x5e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x5ec], eax
lea ecx, [ebp - 0x5e4]
call fcn.004055b0
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5a8], 4
mov dword [ebp - 4], 3
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x50c], 0xf
mov byte [ebp - 0x520], 0
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 4
call fcn.00401d20
mov esi, eax
lea eax, [ebp - 0x520]
cmp eax, esi
je 0x402688
mov edx, dword [ebp - 0x50c]
cmp edx, 0x10
jb 0x402645
mov ecx, dword [ebp - 0x520]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40263b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fe2
push edx
push ecx
call fcn.004084dc
add esp, 8
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x50c], 0xf
mov byte [ebp - 0x520], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x520], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x510], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x4f4]
cmp edx, 0x10
jb 0x4026c2
mov ecx, dword [ebp - 0x508]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4026b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fe2
push edx
push ecx
call fcn.004084dc
add esp, 8
mov edx, 0x42f7dc
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, str.____BOUNDARYBOUNDARY____
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, str.content_disposition:_form_data__name_id_
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
cmp dword [ebp - 0x50c], 0x10
lea edx, [ebp - 0x520]
push dword [ebp - 0x510]
cmovae edx, dword [ebp - 0x520]
lea ecx, [ebp - 0x5e8]
call fcn.00405fd0
add esp, 4
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, 0x42f7dc
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, str.____BOUNDARYBOUNDARY____
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, str.content_disposition:_form_data__name_imagedata___filename_gyazo_
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
push ecx
lea ecx, [ebp - 0x6e0]
call fcn.004047e0
push ecx
push 0x21
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6d0]
push dword [ebp - 0x548]
call fcn.00405210
test eax, eax
lea ecx, [ebp - 0x6e0]
mov eax, dword [ebp - 0x6e0]
mov eax, dword [eax + 4]
je 0x402809
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x40281d
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00407080
mov eax, dword [ebp - 0x6e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x6d4], 6
je 0x40288c
push 0x10
push 0x42f5ec
push str.PNG_open_failed
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x6d0]
call fcn.00405140
test eax, eax
jne 0x402885
mov eax, dword [ebp - 0x6e0]
lea ecx, [ebp - 0x6e0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407080
xor esi, esi
jmp 0x402e7a
lea eax, [ebp - 0x6d0]
push eax
lea ecx, [ebp - 0x5e8]
call fcn.004036a0
lea ecx, [ebp - 0x6d0]
call fcn.00405140
test eax, eax
jne 0x4028d8
mov eax, dword [ebp - 0x6e0]
lea ecx, [ebp - 0x6e0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407080
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, 0x42f7dc
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, str.____BOUNDARYBOUNDARY____
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov edx, 0x42f7dc
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
lea edx, [ebp - 0x53c]
lea ecx, [ebp - 0x5e8]
call fcn.004057e0
mov byte [ebp - 4], 6
xorps xmm0, xmm0
mov edx, dword [ebp - 0x5a8]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 0xf
mov byte [ebp - 0x538], 0
mov dword [ebp - 0x544], 9
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
cmp al, 2
je 0x40299f
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax]
test ecx, ecx
je 0x40299f
mov eax, dword [ebp - 0x5d4]
cmp ecx, dword [ebp - 0x5ac]
cmovb ecx, dword [ebp - 0x5ac]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4029cc
test dl, 4
jne 0x4029c6
mov eax, dword [ebp - 0x5c8]
mov esi, dword [eax]
test esi, esi
je 0x4029c6
mov eax, dword [ebp - 0x5d8]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5b8]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x4029cc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4029dd
push ecx
push edx
lea ecx, [ebp - 0x538]
call fcn.004070f0
push 0
push 0
push 0
push 0
push 0x42f5ec
mov dword [ebp - 4], 7
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
jne 0x402a0c
push 0x10
push 0x42f5ec
push str.Cannot_configure_wininet
jmp 0x402e18
push 0
push 0
push 3
push 0
push 0
push 0x50
push str.droptracker.io
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0
push 0x84000000
push 0
push 0
push 0
push str._gyazo.php
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push 0xa0000000
push 0x1a
mov esi, eax
push str.User_Agent:_Gyazowin_1.0_r_n
push esi
mov dword [ebp - 0x54c], esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x402a72
push 0x10
push 0x42f5ec
push str.Cannot_set_user_agent
jmp 0x402e18
cmp dword [ebp - 0x524], 0x10
lea eax, [ebp - 0x538]
push dword [ebp - 0x528]
cmovae eax, dword [ebp - 0x538]
push eax
push str.Content_type:_multipart_form_data__boundary____BOUNDARYBOUNDARY____
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.Content_type:_multipart_form_data__boundary____BOUNDARYBOUNDARY____
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x402e0c
push 0
lea eax, [ebp - 0x550]
mov dword [ebp - 0x550], 8
push eax
lea eax, [ebp - 0x24]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x24]
push eax
call fcn.0040d87d
add esp, 4
cmp eax, 0xc8
je 0x402af1
push 0x10
push 0x42f5ec
push str.Failed_to_upload__unexpected_result_code__under_maintainance__
jmp 0x402e18
push 0xc8
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x544], 0x64
push 0
push eax
call fcn.00409d00
add esp, 0xc
lea eax, [ebp - 0xf0]
push str.X_Gyazo_Id
push 0x64
push eax
call fcn.0040fdab
add esp, 0xc
lea eax, [ebp - 0x544]
push 0
push eax
lea eax, [ebp - 0xf0]
push eax
push 0xffff
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x402b64
cmp dword [ebp - 0x544], 0
je 0x402b64
lea ecx, [ebp - 0xf0]
call fcn.00402110
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0xf
mov byte [ebp - 0x508], 0
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 8
push eax
push 0x400
lea eax, [ebp - 0x4f0]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402c4c
nop
mov edi, dword [ebp - 0x548]
test edi, edi
je 0x402c4c
mov edx, dword [ebp - 0x4f4]
mov eax, edx
mov ecx, dword [ebp - 0x4f8]
sub eax, ecx
push edi
cmp edi, eax
ja 0x402c0a
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x4f8], eax
lea esi, [ebp - 0x508]
cmovae esi, dword [ebp - 0x508]
lea eax, [ebp - 0x4f0]
add esi, ecx
push eax
push esi
call fcn.00409780
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x54c]
jmp 0x402c2a
lea eax, [ebp - 0x4f0]
mov byte [ebp - 0x540], 0
push eax
push dword [ebp - 0x540]
lea ecx, [ebp - 0x508]
push edi
call fcn.00407430
lea eax, [ebp - 0x548]
push eax
push 0x400
lea eax, [ebp - 0x4f0]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402bb0
mov ecx, dword [ebp - 0x4f8]
mov edx, dword [ebp - 0x4f4]
cmp ecx, edx
jae 0x402c7d
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x4f8], eax
lea eax, [ebp - 0x508]
cmovae eax, dword [ebp - 0x508]
mov word [eax + ecx], 0
jmp 0x402c98
push 0
mov byte [ebp - 0x540], 0
push dword [ebp - 0x540]
push ecx
lea ecx, [ebp - 0x508]
call fcn.00405bd0
cmp dword [ebp - 0x4f4], 0x10
lea eax, [ebp - 0x508]
cmovae eax, dword [ebp - 0x508]
mov esi, eax
mov dword [ebp - 0x540], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402cb7
sub esi, ecx
inc esi
lea eax, [esi + esi]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [ebp - 0x540]
push esi
push eax
call fcn.0040c905
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x4f4], 0x10
lea eax, [ebp - 0x508]
cmovae eax, dword [ebp - 0x508]
mov esi, eax
mov dword [ebp - 0x540], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402d34
sub esi, ecx
inc esi
lea eax, [esi + esi]
push eax
call fcn.0040c82c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x54c]
push esi
push dword [ebp - 0x540]
push esi
push edi
push eax
call fcn.0040cc26
xorps xmm0, xmm0
mov dword [ebp - 0x624], 0x3c
add esp, 0x14
movlpd qword [ebp - 0x620], xmm0
lea eax, [ebp - 0x624]
movlpd qword [ebp - 0x610], xmm0
movlpd qword [ebp - 0x608], xmm0
movlpd qword [ebp - 0x600], xmm0
push eax
movlpd qword [ebp - 0x5f8], xmm0
movlpd qword [ebp - 0x5f0], xmm0
mov dword [ebp - 0x618], str.open
mov dword [ebp - 0x614], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push edi
call fcn.0040c837
mov byte [ebp - 4], 7
add esp, 4
mov edx, dword [ebp - 0x4f4]
cmp edx, 0x10
jb 0x402e05
mov ecx, dword [ebp - 0x508]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402dfb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fe7
push edx
push ecx
call fcn.004084dc
add esp, 8
mov esi, 1
jmp 0x402e21
push 0x10
push 0x42f5ec
push str.Failed_to_upload
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x524]
cmp edx, 0x10
jb 0x402e5f
mov ecx, dword [ebp - 0x538]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fec
push edx
push ecx
call fcn.004084dc
add esp, 8
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 0xf
mov byte [ebp - 0x538], 0
mov eax, dword [ebp - 0x6e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x6e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x6e4], eax
lea ecx, [ebp - 0x6d0]
call fcn.00404480
mov eax, dword [ebp - 0x6e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x6e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x6e4], eax
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00407798
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x50c]
cmp edx, 0x10
jb 0x402f2e
mov ecx, dword [ebp - 0x520]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402f24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fec
push edx
push ecx
call fcn.004084dc
add esp, 8
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x50c], 0xf
mov byte [ebp - 0x520], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x5ec], eax
lea ecx, [ebp - 0x5e4]
call fcn.004035d0
mov eax, dword [ebp - 0x5e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5e8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0x5ec], ecx
lea eax, [ebp - 0x598]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00407798
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004082ae
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040ce02
call fcn.0040ce02
call fcn.0040ce02
int3