Function at 0x402ebe
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
or dword [esp], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x104]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x110]
push ebp
push esi
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x38], eax
xor eax, eax
mov ebx, edx
mov ebp, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.libav.dll_Ordinal_20]
push str..clamav.net
push ebx
call dword [sym.imp.libav.dll_Ordinal_44258]
mov ebx, dword [sym.imp.libav.dll_Ordinal_44276]
push ebp
push str._s.cvd
lea eax, [esp + 0xbc]
push 0x20
push eax
call ebx
push ebp
push str._s.cld
lea eax, [esp + 0xec]
push 0x20
push eax
call ebx
add esp, 0x28
lea edx, [esp + 0x8c]
mov ecx, ebp
call fcn.00403e4a
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x402fcf
push 6
push str.daily
push ebp
mov dword [esp + 0x68], ebx
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x402fd9
mov dword [0x4104fc], ebx
jmp 0x402fd9
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x1c], eax
mov ebp, dword [sym.imp.libav.dll_Ordinal_44283]
push str.HTTPProxyServer
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403059
mov eax, dword [eax + 8]
push 7
push str.http:__
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403010
add dword [esp + 0x14], 7
push str.HTTPProxyUsername
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403042
mov eax, dword [eax + 8]
push str.HTTPProxyPassword
push esi
mov dword [esp + 0x2c], eax
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x40310d
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
push str.HTTPProxyPort
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403059
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
push str.HTTPUserAgent
push esi
call ebp
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403070
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
push str.ConnectTimeout
push esi
call ebp
mov eax, dword [eax + 0x10]
push str.ReceiveTimeout
push esi
mov dword [esp + 0x5c], eax
call ebp
mov eax, dword [eax + 0x10]
add esp, 0x10
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x44], eax
jne 0x4031b9
push str.PrivateMirror
push esi
call ebp
pop ecx
pop ecx
push dword [esp + 0x3c]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
push ecx
push dword [esp + 0x3c]
lea edx, [esp + 0x98]
push dword [esp + 0x3c]
lea eax, [esp + 0x20]
push dword [esp + 0x54]
je 0x403153
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x28]
push esi
push eax
push dword [esp + 0x48]
lea ecx, [esp + 0xec]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push ebp
push dword [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.00404c85
add esp, 0x3c
test eax, eax
je 0x403121
mov dword [esp + 0x20], ebx
jmp 0x403187
test edi, edi
je 0x403119
push edi
call dword [sym.imp.libav.dll_Ordinal_2]
pop ecx
push 0x38
pop eax
jmp 0x403724
push dword [esp + 0x3c]
lea eax, [esp + 0x14]
push 0
push dword [esp + 0x3c]
lea edx, [esp + 0x98]
push dword [esp + 0x3c]
push dword [esp + 0x54]
push esi
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push ebp
jmp 0x40316c
push dword [esp + 0x60]
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x70]
lea ecx, [esp + 0xe0]
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.00404c85
add esp, 0x3c
cmp dword [esp + 0x10], 0
je 0x403711
test eax, eax
jne 0x40319e
push 0x3a
pop ebx
jmp 0x40371a
mov ebp, dword [eax + 4]
mov esi, dword [sym.imp.libav.dll_Ordinal_2]
push eax
mov dword [esp + 0x4c], ebp
call esi
pop ecx
cmp dword [edi + 4], ebp
jb 0x4031bf
jmp 0x403711
mov esi, dword [sym.imp.libav.dll_Ordinal_2]
test edi, edi
je 0x4031ce
mov eax, dword [edi + 4]
push edi
mov dword [esp + 0x54], eax
call esi
pop ecx
mov edi, dword [sym.imp.libav.dll_Ordinal_44203]
push 0x410580
call edi
mov esi, eax
pop ecx
mov dword [esp + 0x60], esi
test esi, esi
jne 0x4031ed
push 0x4b
jmp 0x40311b
cmp dword [esp + 0x5c], 0
mov ebp, dword [sym.imp.MSVCR110.dll_free]
je 0x4032d5
push str.PrivateMirror
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
cmp dword [eax + 0x18], 0
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
je 0x403271
cmp dword [esp + 0x20], 0
je 0x403271
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xdc]
push dword [esp + 0x40]
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push edi
push dword [esp + 0x74]
call fcn.00404201
add esp, 0x40
test eax, eax
je 0x4034b7
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xbc]
push dword [esp + 0x40]
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push edi
push dword [esp + 0x74]
call fcn.00404201
add esp, 0x40
mov dword [esp + 0x20], eax
test eax, eax
je 0x4034b7
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
jmp 0x403513
push 0x410580
call edi
mov edi, eax
pop ecx
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4032ee
push 0x4b
jmp 0x403512
push str.MaxAttempts
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
pop ecx
pop ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x48]
ja 0x4033ea
mov edx, ebx
mov dword [esp + 0x64], edx
cmp ecx, ebx
jb 0x4033d7
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov ecx, edi
test edi, edi
je 0x403344
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, dword [esp + 0x3c]
cmp eax, ebx
cmove eax, edx
push eax
push ecx
push 0
push ecx
push dword [esp + 0x40]
mov edi, dword [esp + 0x68]
push dword [esp + 0x58]
mov edx, ebp
push dword [esp + 0x64]
mov ecx, edi
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x44]
push esi
push dword [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x70]
push dword [esp + 0x8c]
call fcn.00403f04
mov ecx, eax
add esp, 0x40
cmp ecx, 0x34
je 0x40339e
cmp ecx, 0x3a
jne 0x4033c1
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x64], edx
cmp edx, eax
jbe 0x403333
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.MSVCR110.dll_free]
test ecx, ecx
jne 0x403427
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x48]
jbe 0x403319
mov edi, dword [esp + 0x20]
push str.CompressLocalDatabase
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
push dword [eax + 0x18]
mov edx, dword [esp + 0x60]
push esi
mov ecx, edi
call fcn.004039f0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4034d2
push edi
call dword [sym.imp.libav.dll_Ordinal_44210]
pop ecx
push edi
call ebp
pop ecx
push 0x46
jmp 0x403512
push 6
push str.daily
push edi
call sub.MSVCR110.dll_memcmp
mov ecx, dword [0x4104fc]
mov edi, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
cmove ecx, ebx
push edi
mov dword [0x4104fc], ecx
call dword [sym.imp.libav.dll_Ordinal_44210]
pop ecx
push edi
call ebp
mov edi, dword [esp + 0x34]
pop ecx
push 2
pop edx
mov ecx, edi
call fcn.004062be
push dword [esp + 0x3c]
mov edx, esi
push ecx
push 0
push dword [esp + 0x40]
lea ecx, [esp + 0xbc]
push edi
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x74]
push dword [esp + 0x50]
push dword [esp + 0x74]
call fcn.00404201
add esp, 0x40
test eax, eax
je 0x4034b7
mov edi, eax
jmp 0x403513
push dword [esp + 0x54]
lea eax, [esp + 0x70]
push str._s.cvd
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x10
jmp 0x4034f6
push dword [esp + 0x54]
lea eax, [esp + 0x70]
push str._s.cld
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
push edi
call dword [sym.imp.libav.dll_Ordinal_44210]
add esp, 0x14
push edi
call ebp
pop ecx
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
mov edi, eax
pop ecx
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40351d
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push 0x37
pop edi
push esi
call ebp
mov eax, edi
jmp 0x403723
push str.TestDatabases
push dword [esp + 0x5c]
call dword [sym.imp.libav.dll_Ordinal_44283]
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
je 0x403651
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40353d
sub ecx, edx
cmp ecx, 4
jbe 0x403651
push esi
call dword [sym.imp.MSVCR110.dll__strdup]
mov edi, eax
pop ecx
test edi, edi
jne 0x403575
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x37
mov edi, dword [esp + 0x14]
pop ebx
jmp 0x40371a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40357a
sub ecx, edx
mov byte [ecx + edi - 4], 0x2e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40358d
sub ecx, edx
mov byte [ecx + edi - 3], 0x63
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035a0
lea eax, [esp + 0x6c]
sub ecx, edx
push str..cld
push eax
mov dword [esp + 0x68], ecx
call dword [sym.imp.MSVCR110.dll_strstr]
neg eax
sbb al, al
pop ecx
pop ecx
mov ecx, dword [esp + 0x60]
and al, 0xf6
add al, 0x76
mov byte [ecx + edi - 2], al
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035d4
sub ecx, edx
push edi
push esi
mov byte [ecx + edi - 1], 0x64
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
push esi
cmp eax, 0xffffffff
jne 0x403608
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push edi
call ebp
pop ecx
push 0x39
jmp 0x40356b
call ebp
and dword [0x410018], 0
mov dword [esp], str.Bytecode
push dword [esp + 0x5c]
mov esi, edi
call dword [sym.imp.libav.dll_Ordinal_44283]
push dword [eax + 0x18]
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.004038c7
add esp, 0xc
test eax, eax
je 0x403647
push edi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push edi
jmp 0x403566
mov edi, dword [esp + 0x10]
mov dword [0x410018], ebx
lea eax, [esp + 0x6c]
push 4
push eax
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x403687
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
test eax, eax
je 0x403687
push esi
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x35
jmp 0x403198
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
push esi
cmp eax, 0xffffffff
jne 0x4036ad
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push esi
call ebp
pop ecx
push 0x39
jmp 0x403198
call ebp
cmp dword [esp + 0x60], 0
pop ecx
jne 0x40370f
lea eax, [esp + 0x8c]
push 4
push eax
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x40370f
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x6c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4036f8
test dl, dl
je 0x4036f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4036f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4036d8
xor eax, eax
jmp 0x4036fc
sbb eax, eax
or eax, ebx
test eax, eax
je 0x40370f
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
xor ebx, ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [edi + 8]
add dword [eax], ecx
push edi
call dword [sym.imp.libav.dll_Ordinal_2]
mov eax, ebx
pop ecx
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0xe4
ret