Function at 0x411f70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x588
mov al, byte [0x48e488]
push ebx
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x294], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x295]
lea edx, [esp + 0x294]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [0x48e4f4]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x100
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x14
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x498]
mov dword [esp + 0x10], 0
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x394]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x298]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push SysReAllocString
mov ecx, ebx
call fcn.00412210
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41210c
lea eax, [esp + 0x94]
push eax
call fcn.0045ba37
lea ecx, [esp + 0x98]
push 0x487f3c
push ecx
call fcn.0043b2a0
lea edx, [esp + 0xa0]
push str..EXE
push edx
mov esi, eax
call fcn.0043b2a0
add esp, 0x14
mov edx, eax
test esi, esi
jne 0x412095
lea esi, [esp + 0x94]
jmp 0x412096
inc esi
test edx, edx
je 0x4120c1
mov edi, str..EXE
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x394]
add ecx, edx
push ecx
push esi
push eax
call fcn.0043ab80
add esp, 0xc
jmp 0x4120ec
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x394]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [esp + 0x494]
lea edx, [esp + 0x394]
push ecx
push edx
call fcn.00445c80
add esp, 8
test eax, eax
je 0x4121ee
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 2
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4121ee
or ecx, 0xffffffff
mov edi, 0x487f3c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x194]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x198]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x498]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x198]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x487f3c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x198]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x198]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x2a4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call ebx
pop ebp
push SysReAllocString
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x588
ret