Function at 0x403fc0
Capabilities:
Copy file
Create process on windows
Query or enumerate registry value
Resolve function by parsing pe exports
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x1070
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 7
mov esi, str.SOFTWARETrendMicroPC_cillin
lea edi, [esp + 0x87c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x78
lea edi, [esp + 0x89a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
mov esi, str.SOFTWARETrendMicroPC_cillinNTCorpCurrentVersion
lea edi, [esp + 0xa7c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x73
lea edi, [esp + 0xaaf]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x87c]
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x200
push eax
push ecx
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4043bd
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x474]
push edx
push eax
push 0
push 0
push str.Application_Path
push ecx
call edi
test eax, eax
jne 0x4043bd
lea edi, [esp + 0x474]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.PccVScan.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
jne 0x4040f0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1070
ret
lea edi, [esp + 0x474]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Temp_scan.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
jne 0x4041c8
lea ecx, [esp + 0x674]
push 0x208
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, byte [esp + eax + 0x674]
dec eax
cmp dl, 0x5c
jne 0x40416e
mov byte [esp + eax + 0x675], 0
mov edi, str.esentprfl.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x674]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x678]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edi, [esp + 0x474]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.TempTargetFolder.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x88]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4040d8
mov eax, dword [0x4102d4]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x404310
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0x40c2d4
lea ecx, [esp + 0x674]
push 0x104
push ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x674]
push edx
call fcn.0040914a
lea eax, [esp + 0x678]
lea ecx, [esp + 0xc84]
push eax
push ecx
call fcn.004056c4
lea edx, [esp + 0xc8c]
push edx
call fcn.004056a7
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc7c]
lea eax, [eax + eax + 2]
push 0
push ecx
push 4
push edx
push ebx
mov dword [esp + 0xc90], eax
call ebp
mov ecx, dword [esp + 0xc7c]
lea eax, [esp + 0x2c]
push 0
push eax
lea edx, [esp + 0xc88]
push ecx
push edx
push ebx
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4102d4]
inc eax
add esi, 0x200
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x404266
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x474]
lea ecx, [esp + 0x74]
push eax
push str._sPccVScan.exe__show:scan.ini
push ecx
mov dword [esp + 0x3c], 0x44
call fcn.00405520
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x74]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4043a5
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1070
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0xa7c]
push edx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x4040e3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x474]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Application_Path
push eax
call edi
test eax, eax
jne 0x4040e3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x474]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x78]
push str._sPccNT.exe
push eax
mov dword [esp + 0x3c], 0x44
call fcn.00405520
lea ecx, [esp + 0x80]
push 0
push ecx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4040e3
mov eax, dword [0x40c2d0]
test eax, eax
je 0x404624
lea edx, [esp + 0x474]
lea eax, [esp + 0x74]
push edx
push str.__sPccNT.exe_
push eax
call fcn.00405520
mov eax, dword [0x4102d4]
add esp, 0xc
xor ebx, ebx
test eax, eax
jle 0x404537
mov ebp, 0x40c2d4
push 0x20
push ebp
mov byte [ebp + 2], 0x5c
call fcn.004055c0
add esp, 8
test eax, eax
je 0x404523
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4102d4]
inc ebx
add ebp, 0x200
cmp ebx, eax
jl 0x404489
xor ebx, ebx
test eax, eax
jle 0x4045ba
mov ebp, 0x40c2d4
push 0x20
push ebp
mov byte [ebp + 2], 0x5c
call fcn.004055c0
add esp, 8
test eax, eax
jne 0x4045aa
mov edi, 0x40b074
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4102d4]
inc ebx
add ebp, 0x200
cmp ebx, eax
jl 0x404542
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x90]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040e3
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
lea ecx, [esp + 0x474]
lea edx, [esp + 0x74]
push ecx
push str.__sPccNT.exe_
push edx
call fcn.00405520
mov eax, dword [0x4102d4]
add esp, 0xc
xor ebx, ebx
test eax, eax
jle 0x404700
mov ebp, 0x40c2d4
push 0x20
push ebp
mov byte [ebp + 2], 0x5c
call fcn.004055c0
add esp, 8
test eax, eax
je 0x4046ec
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4102d4]
inc ebx
add ebp, 0x200
cmp ebx, eax
jl 0x404652
xor ebx, ebx
test eax, eax
jle 0x404783
mov ebp, 0x40c2d4
push 0x20
push ebp
mov byte [ebp + 2], 0x5c
call fcn.004055c0
add esp, 8
test eax, eax
jne 0x404773
mov edi, 0x40b074
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4102d4]
inc ebx
add ebp, 0x200
cmp ebx, eax
jl 0x40470b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x90]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040e3
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret