Function at 0x41ef10
Capabilities:
Copy file
Get common file path
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x458270
push 0x4235a0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffe7c
mov eax, dword [0x45a074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 0
je 0x41ef56
cmp dword [ebp + 0x14], 1
jne 0x41f036
push 0x104
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41f036
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x138]
mov cl, byte [eax]
mov byte [ebp - 0x132], cl
add dword [ebp - 0x138], 1
cmp byte [ebp - 0x132], 0
jne 0x41ef8b
mov edx, dword [ebp - 0x138]
sub edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00414090
add esp, 0xc
test eax, eax
je 0x41f036
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 0x16c], eax
push 0x455f64
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41f02d
xor eax, eax
jmp 0x41f3d2
lea eax, [ebp - 0x120]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f450
add esp, 0x1c
test eax, eax
jne 0x41f065
xor eax, eax
jmp 0x41f3d2
cmp dword [ebp + 0x24], 0
je 0x41f3cd
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x160], str.SYSTEMControlSet001Services_
mov dword [ebp - 0x154], 0x455f04
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
add eax, 1
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx]
mov byte [ebp - 0x12d], dl
add dword [ebp - 0x13c], 1
cmp byte [ebp - 0x12d], 0
jne 0x41f0c3
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x140]
mov cl, byte [eax]
mov byte [ebp - 0x12e], cl
add dword [ebp - 0x140], 1
cmp byte [ebp - 0x12e], 0
jne 0x41f10b
mov edx, dword [ebp - 0x140]
sub edx, dword [ebp - 0x174]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x144]
mov al, byte [edx]
mov byte [ebp - 0x12f], al
add dword [ebp - 0x144], 1
cmp byte [ebp - 0x12f], 0
jne 0x41f156
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp - 0x178]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x17c]
add edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x184]
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.0042a4e0
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x160]
push edx
push str._s_s_s
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0041f7d0
add esp, 0x18
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x150]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x41f211
jmp 0x41f36d
mov dword [ebp - 0x15c], 0x455f6c
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x148]
mov cl, byte [eax]
mov byte [ebp - 0x130], cl
add dword [ebp - 0x148], 1
cmp byte [ebp - 0x130], 0
jne 0x41f236
mov edx, dword [ebp - 0x148]
sub edx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
push 1
push 0
push 0x455fd4
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x41f2a1
jmp 0x41f36d
lea eax, [ebp - 0x128]
push eax
push 0x455fe4
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x41f2ce
jmp 0x41f36d
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x14c]
mov dl, byte [ecx]
mov byte [ebp - 0x131], dl
add dword [ebp - 0x14c], 1
cmp byte [ebp - 0x131], 0
jne 0x41f2e6
mov eax, dword [ebp - 0x14c]
sub eax, dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 1
push 0
push 0x45604c
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x41f34b
jmp 0x41f36d
push 4
lea ecx, [ebp + 0x28]
push ecx
push 4
push 0
push 0x4560d4
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041f37b
jmp 0x41f3c0
cmp dword [ebp - 0x12c], 0
je 0x41f3cd
xor eax, eax
jmp 0x41f3d2
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret