Function at 0x404fe0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x310
push ebx
push esi
mov esi, dword [esp + 0x31c]
push edi
push esi
call fcn.00402700
add esp, 4
test eax, eax
je 0x40500c
pop edi
pop esi
mov eax, 0x12
pop ebx
add esp, 0x310
ret
push esi
push 0
push str.FileCount
push str.UPLOADFILE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
ja 0x405038
pop edi
pop esi
mov eax, 0x13
pop ebx
add esp, 0x310
ret
cmp ebx, 5
jbe 0x40504c
pop edi
pop esi
mov eax, 0x13
pop ebx
add esp, 0x310
ret
push 0x614
push ebx
call fcn.00407864
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0xc], edi
jne 0x405073
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x310
ret
lea eax, [ebx + ebx*2]
push str.TrojanName
shl eax, 5
add eax, ebx
push 0xffffffffffffffff
lea ecx, [ebx + eax*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x224]
push eax
push esi
call fcn.00404310
add esp, 0x10
test eax, eax
jne 0x405277
push ebp
mov ecx, 0x82
lea edi, [esp + 0x18]
xor ebp, ebp
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x40525e
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 0x510]
jmp 0x4050ea
mov esi, dword [esp + 0x324]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esi + 0x20c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x220]
or ecx, 0xffffffff
mov dword [ebx + 0x100], edx
mov edx, dword [esp + 0x324]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.File
mov eax, ecx
mov esi, edi
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00404310
add esp, 0x10
test eax, eax
jne 0x405249
lea eax, [esp + 0x18]
push eax
call fcn.00402700
add esp, 4
test eax, eax
jne 0x405249
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx - 0x510]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x324]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x41719c
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x82
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
call fcn.00404310
add esp, 0x10
test eax, eax
jne 0x405249
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4051d1
lea eax, [esp + 0x18]
push eax
call fcn.00402700
add esp, 4
test eax, eax
jne 0x405249
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx - 0x308]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.FileName
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x328]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x82
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00404310
add esp, 0x10
test eax, eax
jne 0x405249
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx - 0x100]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
inc ebp
add ebx, 0x614
cmp ebp, eax
jb 0x4050e3
mov ebx, eax
mov ecx, dword [esp + 0x32c]
mov edx, dword [esp + 0x328]
mov eax, dword [esp + 0x10]
pop ebp
mov dword [ecx], ebx
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x310
ret