Function at 0x403480
Capabilities:
Enumerate files on windows
Get common file path
Set registry value

Disassembly:
mov eax, 0x1894
call fcn.00403e10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1a4]
push 0x100
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x4a4]
lea edx, [esp + 0x4a4]
rep stosd dword es:[edi], eax
movsx ecx, byte [esp + 0x1a4]
push ecx
push str._c:Documents_and_Settings
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x4a4]
mov ecx, esi
push eax
call fcn.00403000
test eax, eax
je 0x40375e
lea ecx, [esp + 0x64]
lea edx, [esp + 0x4a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x403526
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1894
ret
mov al, byte [esp + 0x1a4]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov byte [esp + 0x13], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x8a4]
rep stosd dword es:[edi], eax
mov ebp, 4
mov dword [esp + 0x18], eax
test byte [esp + 0x64], 0xb7
je 0x40368f
mov esi, 0x40726c
lea eax, [esp + 0x90]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40358b
test cl, cl
je 0x403587
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40358b
add eax, 2
add esi, 2
test cl, cl
jne 0x403567
xor eax, eax
jmp 0x403590
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40368f
mov esi, 0x407268
lea eax, [esp + 0x90]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4035c8
test cl, cl
je 0x4035c4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4035c8
add eax, 2
add esi, 2
test cl, cl
jne 0x4035a4
xor eax, eax
jmp 0x4035cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40368f
test byte [esp + 0x64], 0x10
je 0x40368f
movsx esi, byte [esp + 0x13]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x6a4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
lea ecx, [esp + 0x6a4]
push eax
push esi
push str._c:Documents_and_Settings_s
push ecx
call ebx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x2b4]
lea edx, [esp + 0xa0]
rep stosd dword es:[edi], eax
push edx
push esi
lea eax, [esp + 0x2bc]
push str._c:Documents_and_Settings_sMy_Documents
push eax
call ebx
add esp, 0x20
lea ecx, [esp + 0x2a4]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004030e0
test eax, eax
je 0x40368f
lea edi, [esp + 0x2a4]
or ecx, 0xffffffff
xor eax, eax
add ebp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x2a4]
mov esi, ecx
push edx
mov dword [esp + ebp + 0x8a4], esi
lea eax, [esp + ebp + 0x8a8]
push 0x4072cc
push eax
call ebx
mov eax, dword [esp + 0x24]
add esp, 0xc
add ebp, esi
inc eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403550
mov eax, dword [esp + 0x18]
mov ecx, 0xf
mov dword [esp + 0x8a4], eax
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
stosw word es:[edi], ax
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
stosb byte es:[edi], al
call esi
test eax, eax
je 0x403732
lea edx, [esp + 0x14]
push edx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
je 0x403732
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1894
ret
lea edx, [esp + 0x24]
push str.ProtectPaths
push edx
call ebx
mov edx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x8a4]
lea ecx, [esp + 0x24]
push ebp
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1894
ret