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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4571a0
push 0x4230c0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffe7c
mov eax, dword [0x459074]
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 0x41ea76
cmp dword [ebp + 0x14], 1
jne 0x41eb56
push 0x104
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41eb56
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 0x41eaab
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.00413d10
add esp, 0xc
test eax, eax
je 0x41eb56
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 0x16c], eax
push 0x454e94
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 0x41eb4d
xor eax, eax
jmp 0x41eef2
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.0041ef70
add esp, 0x1c
test eax, eax
jne 0x41eb85
xor eax, eax
jmp 0x41eef2
cmp dword [ebp + 0x24], 0
je 0x41eeed
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], 0x454e34
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 0x41ebe3
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 0x41ec2b
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 0x41ec76
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.00429e0c
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.0041f2f0
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 0x41ed31
jmp 0x41ee8d
mov dword [ebp - 0x15c], 0x454e9c
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 0x41ed56
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 0x454f04
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 0x41edc1
jmp 0x41ee8d
lea eax, [ebp - 0x128]
push eax
push 0x454f14
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 0x41edee
jmp 0x41ee8d
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 0x41ee06
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 0x454f7c
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 0x41ee6b
jmp 0x41ee8d
push 4
lea ecx, [ebp + 0x28]
push ecx
push 4
push 0
push 0x455004
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.0041ee9b
jmp 0x41eee0
cmp dword [ebp - 0x12c], 0
je 0x41eeed
xor eax, eax
jmp 0x41eef2
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.00421720
mov esp, ebp
pop ebp
ret