Function at 0x418530
Capabilities:
Get file size
Prepare http request
Read and send data from client to server
Read file via mapping
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4555
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x418578
mov eax, dword [ebx]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x418d6c
test esi, esi
je 0x418d6c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x418d58
cmp edi, 0xffffffff
je 0x418d58
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
test eax, eax
jne 0x418600
xor bl, bl
jmp 0x418d44
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0040eb70
push 0x2a
push str._____________________________41184676334_r_n
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040ecc0
push 0x2f
push str.Content_Disposition:_form_data__name_apikey__r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
push 0x44
push str._r_n4e3202fdbe953d628f650229af5b3eb49cd46b2d3bfe5546ae3c5fa48b554e0c_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
push 0x2a
push str._____________________________41184676334_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
push 0x3a
push str.Content_Disposition:_form_data__name_creation_datetime__r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
lea edx, [ebx + 0x48]
lea ecx, [ebp - 0x18]
call fcn.004183a0
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 5
push 0x4ca638
push eax
call fcn.0040a8e0
push 0x4ca638
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 6
push eax
call fcn.00404f30
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040ecc0
mov edx, dword [ebp - 0x6c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4186c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4186db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4186f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 0x40], 0
je 0x4187cb
push 0x2a
push str._____________________________41184676334_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
push 0x3b
push str.Content_Disposition:_form_data__name_autostart_location__r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
mov eax, dword [ebp - 0x64]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x418732
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405020
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push 0x4ca638
push eax
call fcn.0040a8e0
push 0x4ca638
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 9
push eax
call fcn.00404f30
add esp, 0x18
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040ecc0
mov edx, dword [ebp - 0x6c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4187aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4187c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 0x28], 0
je 0x418897
push 0x2a
push str._____________________________41184676334_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
push 0x38
push str.Content_Disposition:_form_data__name_autostart_entry__r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
mov eax, dword [ebp - 0x64]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x418801
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405020
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xb
push 0x4ca638
push eax
call fcn.0040a8e0
push 0x4ca638
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
push eax
call fcn.00404f30
add esp, 0x18
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040ecc0
mov edx, dword [ebp - 0x6c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41885f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418879
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418897
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2a
push str._____________________________41184676334_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
mov eax, dword [ebp - 0x64]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4188b3
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00405020
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push 0x4ca730
push eax
call fcn.0040a8e0
push 0x4ca72c
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xf
push eax
call fcn.00404f30
push 0x4ca638
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x10
push eax
call fcn.00404f30
add esp, 0x24
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040ecc0
mov edx, dword [ebp - 0x6c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418924
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41893e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418958
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418976
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2a
push str.Content_Type:_application_octet_stream_r_n_r_n
lea ecx, [ebp - 0x14]
call fcn.0040ecc0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.0040eb70
push 0x2e
push str._r_n_____________________________41184676334___r_n
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.0040ecc0
push 0x800000
push 0
push 0
push 0
push str.vtapi_v2_file_scan
push str.POST
push dword [0x4fd900]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edx, dword [ebp + 0x34]
mov ebx, eax
mov ecx, dword [ebp - 0x74]
test edx, edx
mov dword [ebp - 0x18], ebx
sete al
mov dword [ecx], 4
test edx, edx
je 0x4189f6
test al, al
jne 0x418db6
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, edx
call dword [eax + 8]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x5c], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], 3
push eax
push str.https:__www.virustotal.com
push dword [0x4fd904]
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x418a37
push 0xc
lea eax, [ebp - 0x38]
push eax
push 0x26
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push str.Content_Type:_multipart_form_data__boundary___________________________41184676334_r_n
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00405020
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x68], eax
mov eax, dword [eax + 4]
add eax, ecx
add eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x418a94
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov byte [ebp - 0x5d], al
jmp 0x418cf5
mov ebx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
mov ebx, dword [ebx + 4]
call fcn.00419710
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push dword [eax]
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418ad1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
mov ebx, dword [ebx + 4]
call fcn.00419710
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push dword [eax]
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418b1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x418b36
xor al, al
mov byte [ebp - 0x5d], al
jmp 0x418cf5
mov ecx, dword [ebp + 0x34]
test ecx, ecx
mov edx, dword [ebp - 0x74]
sete al
mov dword [edx], 3
test ecx, ecx
je 0x418b5c
test al, al
jne 0x418db6
mov eax, dword [ecx]
push edx
push dword [ebp - 0x64]
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.0040eb70
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
mov ecx, ebx
call fcn.004166b0
push dword [ebp - 0x18]
mov ebx, eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x74]
mov dword [eax], 6
test ebx, ebx
jne 0x418ce8
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
call fcn.00419690
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x20]
cmp dword [eax - 4], 1
jle 0x418bbe
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
call fcn.00405810
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x34]
movlpd qword [ebp - 0x34], xmm0
call fcn.00419200
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x16
push eax
lea edx, [ebp - 0x70]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.0042b680
add esp, 4
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x418cd0
push str.permalink
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x70]
call fcn.0042bb30
add esp, 4
mov ebx, dword [ebp - 0x74]
mov byte [ebp - 4], 0x18
push dword [eax]
lea ecx, [ebx + 4]
mov dword [ebp - 0x74], ecx
call fcn.004026c0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x17
call fcn.00405000
cmp dword [ebx + 0x14], 0
lea edx, [ebp - 0x34]
jne 0x418c83
push str.verbose_msg
lea ecx, [ebp - 0x64]
call fcn.0042bb30
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x19
push str.Submission_error:
push eax
call fcn.0040a8e0
add esp, 0x10
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 0x1a
push dword [eax]
call fcn.004026c0
lea ecx, [ebp - 0x70]
call fcn.00405000
lea ecx, [ebp - 0x64]
call fcn.00405000
xor al, al
mov byte [ebp - 0x5d], al
jmp 0x418cb6
push str.scan_id
lea ecx, [ebp - 0x70]
mov dword [ebx], 4
call fcn.0042bb30
add esp, 4
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x64]
push dword [eax]
lea ecx, [ecx + 0x50]
call fcn.004026c0
lea ecx, [ebp - 0x70]
call fcn.00405000
mov byte [ebp - 0x5d], 1
lea ecx, [ebp - 0x18]
call fcn.00405000
lea ecx, [ebp - 0x34]
call fcn.004180c0
lea ecx, [ebp - 0x20]
call fcn.00405000
jmp 0x418ced
lea ecx, [ebp - 0x18]
call fcn.00405000
lea ecx, [ebp - 0x34]
call fcn.004180c0
lea ecx, [ebp - 0x20]
call fcn.00405000
xor al, al
mov byte [ebp - 0x5d], al
lea ecx, [ebp - 0x1c]
call fcn.00405000
mov edx, dword [ebp - 0x28]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x418d3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0x5d]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x418d63
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418d77
xor bl, bl
test edi, edi
je 0x418d77
cmp edi, 0xffffffff
je 0x418d77
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418d77
xor bl, bl
cmp esi, 0xffffffff
je 0x418d7e
test esi, esi
je 0x418d7e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x418d96
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret 0x30
call fcn.0047c562
int3