Function at 0x404c35
Capabilities:
Copy file
Get common file path
Persist via lnk shortcut
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov ecx, dword [0x411b48]
or dword [ebp - 8], 0xffffffff
push esi
xor esi, esi
push edi
mov edi, dword [0x411ae0]
cmp ecx, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
je 0x404c69
lea eax, [edi + 1]
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [ebp - 0x18], eax
inc edi
push ebx
cmp edi, ecx
mov dword [0x411ae0], edi
jae 0x40546b
mov esi, dword [0x411adc]
push esi
call fcn.004026d9
mov dword [0x411adc], eax
and word [esi + 4], 0
mov eax, dword [0x411b60]
push esi
xor dword [esi + 0x10], eax
mov eax, dword [0x411ac8]
and byte [eax], 0
call fcn.0040420e
push dword [0x411acc]
mov dword [ebp - 0x14], eax
call fcn.00408157
add esp, 0xc
test byte [esi + 0xe], 1
je 0x404ccf
push dword [0x411acc]
push dword [0x411ac0]
call fcn.0040a0e0
pop ecx
pop ecx
mov eax, dword [0x411ae0]
xor edx, edx
inc eax
imul eax, eax, 0x64
div dword [0x411b48]
mov dword [ebp - 0x1c], eax
mov al, byte [esi + 0xb]
cmp al, 2
je 0x4053a9
cmp al, 3
jne 0x404d03
push dword [0x411acc]
call fcn.0040848e
pop ecx
jmp 0x4053a9
cmp dword [ebp - 0x14], 0
push 1
pop ebx
je 0x404d5c
cmp byte [esi + 8], 3
jne 0x404d16
xor ebx, ebx
jmp 0x404d6b
and dword [ebp - 0xc], 0
push 0
push dword [0x411acc]
call section..text
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
je 0x404d54
push edi
call fcn.0040114d
cmp eax, dword [esi + 0x14]
pop ecx
jne 0x404d4d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040242e
add esp, 0xc
push edi
call fcn.00401229
pop ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x10]
je 0x404d12
test byte [esi + 0xe], 6
je 0x404d6b
push esi
call fcn.00404453
pop ecx
mov ebx, eax
and dword [0x411b54], 0
test ebx, ebx
je 0x4052f2
lea ecx, [ebp - 0x1a4]
call fcn.0040996f
push dword [0x411acc]
call fcn.0040848e
push dword [0x411acc]
push dword [0x411ac8]
call fcn.0040a0e0
push str..__A
push dword [0x411ac8]
call fcn.00408232
xor edi, edi
push edi
push dword [0x411ac8]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x404df7
push eax
call fcn.00401229
push dword [0x411ac8]
call fcn.0040a060
mov ecx, dword [0x411ac8]
inc byte [eax + ecx - 1]
push edi
push dword [0x411ac8]
lea eax, [eax + ecx - 1]
call section..text
add esp, 0x10
jmp 0x404dc2
test byte [esi + 0xe], 0x20
je 0x404ed3
lea eax, [ebp - 4]
push eax
push 0x104
call fcn.004082e6
push dword [0x411c24]
push dword [ebp - 4]
call fcn.0040a0e0
push 0x5c
push dword [ebp - 4]
call fcn.0040a2f0
mov edi, eax
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
je 0x404e35
inc edi
jmp 0x404e38
mov edi, dword [ebp - 4]
push ebx
push esi
call fcn.0040363a
push eax
push edi
call fcn.0040a0e0
add esp, 0x10
push ebx
push dword [0x411ac8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404e8a
mov dword [0x411b54], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
mov dword [0x411b50], eax
call fcn.0040363a
push eax
push dword [0x411ac4]
call fcn.0040a0e0
add esp, 0x10
jmp 0x404eb8
push 2
push dword [0x411ac8]
call fcn.0040a3d3
pop ecx
test eax, eax
pop ecx
je 0x404eb8
cmp dword [0x411ca8], 0xd
jne 0x404eb8
push 0x180
push dword [0x411ac8]
call fcn.0040a394
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.00408319
cmp dword [0x411b54], ebx
pop ecx
je 0x405190
jmp 0x405295
push dword [0x411ac8]
call fcn.0040104d
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
mov dword [ebp - 8], ebx
jne 0x404efe
push dword [0x411ac8]
mov dword [0x411b54], 0x11
jmp 0x4052c4
mov al, byte [esi + 0xe]
test al, 0x10
je 0x40510d
movzx eax, word [esi + 0x24]
xor ebx, ebx
mov edi, dword [eax*4 + 0x411be0]
add edi, 4
cmp dword [esi + 0x20], ebx
jle 0x404f2d
push edi
call fcn.004026d9
inc ebx
pop ecx
cmp ebx, dword [esi + 0x20]
mov edi, eax
jl 0x404f1e
test byte [edi + 0xe], 0x20
je 0x405012
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x104
call fcn.004082e6
push dword [0x411c24]
push dword [ebp - 4]
call fcn.0040a0e0
push 0x5c
push dword [ebp - 4]
call fcn.0040a2f0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x404f75
inc ebx
jmp 0x404f78
mov ebx, dword [ebp - 4]
push 0
push esi
call fcn.0040363a
push eax
push ebx
call fcn.0040a0e0
add esp, 0x10
xor ebx, ebx
push ebx
push dword [0x411ac8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404fcd
mov dword [0x411b54], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
mov dword [0x411b50], eax
call fcn.0040363a
push eax
push dword [0x411ac4]
call fcn.0040a0e0
add esp, 0x10
jmp 0x404ffb
push 2
push dword [0x411ac8]
call fcn.0040a3d3
pop ecx
test eax, eax
pop ecx
je 0x404ffb
cmp dword [0x411ca8], 0xd
jne 0x404ffb
push 0x180
push dword [0x411ac8]
call fcn.0040a394
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.00408319
cmp dword [0x411b54], ebx
pop ecx
je 0x40507b
jmp 0x405295
push dword [edi + 0x18]
call fcn.00403135
test eax, eax
pop ecx
mov dword [0x411b54], eax
jne 0x4052ca
movzx eax, word [esi + 0x24]
mov eax, dword [eax*4 + 0x411bc8]
cmp word [eax + 2], 0
je 0x405042
push dword [0x411b24]
jmp 0x405044
push 0
call fcn.004054a0
pop ecx
push dword [edi + 0x1c]
lea ecx, [ebp - 0x1a4]
push dword [0x411058]
push dword [ebp - 8]
call fcn.00409a2a
cmp dword [0x411c3c], 2
je 0x4052ca
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
pop ecx
push 0
push dword [0x411ac8]
call section..text
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x4050a6
push dword [0x411ac8]
mov dword [0x411b54], 0x10
jmp 0x40528f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0040242e
push ebx
call fcn.00401229
mov eax, dword [edi + 0x10]
add esp, 0x10
xor eax, dword [0x411b60]
cmp dword [ebp - 0xc], eax
jne 0x40527f
mov eax, dword [0x411bf8]
cmp word [eax + 2], 0
je 0x4050e3
push dword [0x411b24]
jmp 0x4050e5
push 0
call fcn.004054a0
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [0x411ac8]
push esi
call fcn.004045a5
add esp, 0x10
test eax, eax
jne 0x405190
jmp 0x405295
test al, 1
je 0x4051bc
mov ecx, dword [0x411c08]
cmp ecx, edi
je 0x405190
mov eax, dword [0x411c04]
test eax, eax
je 0x405190
push eax
push ecx
push dword [ebp - 8]
call fcn.004010cd
add esp, 0xc
mov dword [0x411b54], eax
test eax, eax
jne 0x4052ca
push dword [esi + 0x18]
call fcn.00403135
test eax, eax
pop ecx
mov dword [0x411b54], eax
jne 0x4052ca
push eax
call fcn.004054a0
pop ecx
push dword [esi + 0x1c]
lea ecx, [ebp - 0x1a4]
push dword [0x411058]
push dword [ebp - 8]
call fcn.00409a2a
cmp dword [0x411c3c], 2
je 0x4052ca
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
pop ecx
cmp dword [ebp - 0x14], 0
push dword [0x411ac8]
je 0x4052a5
push dword [0x411acc]
call fcn.00406618
pop ecx
mov dword [0x411af4], 1
pop ecx
jmp 0x4052ad
push dword [esi + 0x18]
call fcn.00403135
cmp eax, edi
pop ecx
mov dword [0x411b54], eax
jne 0x4052ca
movzx eax, word [esi + 0x24]
mov eax, dword [eax*4 + 0x411bc8]
cmp word [eax + 2], di
je 0x4051eb
push dword [0x411b24]
jmp 0x4051ec
push edi
call fcn.004054a0
pop ecx
push dword [esi + 0x1c]
lea ecx, [ebp - 0x1a4]
push dword [0x411058]
push ebx
call fcn.00409a2a
cmp dword [0x411c3c], 2
je 0x4052ca
mov al, byte [esi + 0xe]
test al, 8
je 0x405235
test al, 6
lea eax, [esi + 0x3a]
jne 0x405225
lea eax, [esi + 0x26]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
push 0
push dword [0x411ac8]
call section..text
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x405091
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040242e
push edi
call fcn.00401229
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x10]
je 0x405190
push dword [0x411acc]
mov dword [0x411b54], 0x15
call fcn.004026e2
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.0040997b
jmp 0x40546b
push esi
call fcn.004054ef
pop ecx
pop ecx
cmp word [esi + 4], 0x1b
jne 0x4052da
push dword [0x411acc]
mov dword [0x411b54], 0x16
call fcn.004026e2
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.0040997b
jmp 0x405456
lea ecx, [ebp - 0x1a4]
call fcn.0040997b
cmp dword [0x411b54], 0
jne 0x405456
test byte [esi + 0xe], 1
je 0x4052fd
and word [esi + 4], 0
cmp byte [esi + 8], 0
je 0x40538b
cmp byte [esi + 0xa], 1
jne 0x40538b
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40538b
push 1
lea eax, [ebp - 0x14]
pop ebx
push 4
mov dword [ebp - 4], ebx
pop edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x411acc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405361
inc dword [ebp - 4]
jmp 0x405367
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 0
push dword [0x411acc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi + 8], 3
jne 0x40539d
push dword [0x411acc]
call fcn.004056c9
pop ecx
cmp byte [esi + 0xc], 1
jne 0x4053a9
mov dword [0x411ae8], esi
cmp byte [esi + 9], 1
jne 0x4053b5
mov dword [0x411af0], esi
cmp byte [esi + 9], 2
jne 0x4053c1
mov dword [0x411aec], esi
push 4
push esi
call fcn.0040363a
mov edi, eax
pop ecx
pop ecx
cmp byte [edi], 0
je 0x405446
push 5
push esi
call fcn.0040363a
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405446
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x405446
lea eax, [ebp - 0x22c]
push eax
call fcn.00408271
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040a0f0
lea eax, [ebp - 0x22c]
push str..lnk
push eax
call fcn.0040a0f0
push 0
lea eax, [ebp - 0x22c]
push ebx
push eax
push dword [0x411acc]
call fcn.004017f8
add esp, 0x24
push dword [ebp - 0x1c]
call fcn.00408136
pop ecx
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0xffffffff
je 0x405465
push dword [ebp - 8]
call fcn.00401229
pop ecx
cmp dword [ebp - 0x10], 0
jne 0x40547c
mov eax, dword [0x411ac8]
cmp byte [eax], 0
je 0x40547c
push eax
call fcn.0040a49d
pop ecx
test esi, esi
pop ebx
je 0x405489
mov eax, dword [0x411b60]
xor dword [esi + 0x10], eax
cmp dword [ebp - 0x20], 0
pop edi
pop esi
je 0x40549b
lea eax, [ebp - 0x20]
push eax
call fcn.00408319
pop ecx
mov eax, dword [ebp - 0x10]
leave
ret