Function at 0x42cd20
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c79c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0xc], ebp
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x450], ebx
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareMail.RuAgent
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42cdcd
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push ebx
push str.nohosts
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cdc9
mov dword [esp + 0x450], 0xffffffff
cmp esi, ebx
je 0x42cdc2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
xor eax, eax
jmp 0x42cffe
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00429ef0
add esp, 4
mov byte [esp + 0x454], 1
lea ecx, [esp + 0x28]
call fcn.00437d00
test eax, eax
je 0x42cfcf
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x10], edi
mov byte [esp + 0x454], 2
cmp edi, 0xffffffff
jne 0x42ce5e
mov byte [esp + 0x454], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.004381e0
mov dword [esp + 0x454], edi
cmp ebp, ebx
je 0x42ce57
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
xor eax, eax
jmp 0x42cffd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edx, [esi + 1]
push edx
lea ecx, [esp + 0x34]
call fcn.0042c7d0
mov byte [esp + 0x454], 3
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
jne 0x42ce90
call fcn.0051d2bd
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x4c]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cfa7
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x24], 1
cmp esi, eax
jb 0x42cec4
call fcn.0051d2bd
mov ecx, dword [esp + 0x3c]
mov byte [ecx + esi], bl
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x3c]
jne 0x42ceda
call fcn.0051d2bd
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.0043a810
mov byte [esp + 0x454], 4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jl 0x42cf96
push str.mail.ru
push ecx
call fcn.0051d47a
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x42cf20
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x42d01a
cmp dword [ecx - 0xc], ebx
jl 0x42cf96
push str.yandex.ru
push ecx
call fcn.0051d47a
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x42cf48
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x42d01a
cmp dword [ecx - 0xc], ebx
jl 0x42cf96
push str.ya.ru
push ecx
call fcn.0051d47a
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x42cf70
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x42d01a
cmp dword [ecx - 0xc], ebx
jl 0x42cf96
push str.yandex.net
push ecx
call fcn.0051d47a
add esp, 8
cmp eax, ebx
je 0x42cf96
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x42d01a
mov byte [esp + 0x454], 3
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov byte [esp + 0x454], 2
lea ecx, [esp + 0x30]
call fcn.004287c0
mov byte [esp + 0x454], 1
cmp edi, ebx
je 0x42cfcf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.004381e0
mov dword [esp + 0x454], 0xffffffff
cmp ebp, ebx
je 0x42cff9
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
pop edi
mov ecx, dword [esp + 0x448]
pop esi
mov dword [esp + 0x10], ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 3
cmp edi, ebx
je 0x42d033
push edi
call ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov edi, 0xb
cmp esi, 0xffffffff
jne 0x42d05e
mov edi, dword [esp + 0x24]
mov byte [esp + 0x454], 3
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov byte [esp + 0x454], 2
lea ecx, [esp + 0x30]
call fcn.004287c0
mov byte [esp + 0x454], 1
cmp esi, ebx
je 0x42d093
push esi
call ebp
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.004381e0
mov dword [esp + 0x454], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42d0c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, edi
jmp 0x42cffd