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

Disassembly:
sub esp, 0x588
mov al, byte [0x5188e8]
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 [0x518ac4]
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 SysReAllocStringLen
mov ecx, ebx
call fcn.0041cc70
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41cb6c
lea eax, [esp + 0x94]
push eax
call fcn.004d2ea7
lea ecx, [esp + 0x98]
push 0x50ab30
push ecx
call fcn.004aeb50
lea edx, [esp + 0xa0]
push str..EXE
push edx
mov esi, eax
call fcn.004aeb50
add esp, 0x14
mov edx, eax
test esi, esi
jne 0x41caf5
lea esi, [esp + 0x94]
jmp 0x41caf6
inc esi
test edx, edx
je 0x41cb21
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.004b01f0
add esp, 0xc
jmp 0x41cb4c
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.004b0a20
add esp, 8
test eax, eax
je 0x41cc4e
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 2
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41cc4e
or ecx, 0xffffffff
mov edi, 0x50ab30
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, 0x50ab30
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 SysReAllocStringLen
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x588
ret