Function at 0x404e5e
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 eax, dword [0x414b0c]
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
and byte [eax], 0
mov ecx, dword [0x414b8c]
push esi
xor esi, esi
push edi
mov edi, dword [0x414b24]
cmp ecx, ebx
mov dword [ebp - 0x10], ebx
je 0x404e9d
lea eax, [edi + 1]
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [ebp - 0x18], eax
inc edi
cmp edi, ecx
mov dword [0x414b24], edi
jae 0x4056b6
mov esi, dword [0x414b20]
push esi
call fcn.004027a9
mov dword [0x414b20], eax
mov word [esi + 2], bx
mov eax, dword [0x414ba4]
push esi
xor dword [esi + 0x12], eax
call fcn.00404465
push 1
push 4
mov dword [ebp - 0x14], eax
call fcn.004012af
add esp, 0x10
cmp eax, ebx
je 0x404ef3
cmp byte [eax], 0
je 0x404ef3
push dword [0x414b10]
call fcn.004083e3
pop ecx
test byte [esi + 0x16], 1
je 0x404f0c
push dword [0x414b10]
push dword [0x414b04]
call fcn.0040a310
pop ecx
pop ecx
mov eax, dword [0x414b24]
xor edx, edx
inc eax
imul eax, eax, 0x64
div dword [0x414b8c]
mov dword [ebp - 0x1c], eax
mov al, byte [esi + 0x1a]
cmp al, 2
je 0x4055f4
cmp al, 3
jne 0x404f40
push dword [0x414b10]
call fcn.0040871b
pop ecx
jmp 0x4055f4
cmp dword [ebp - 0x14], 0
push 1
pop ebx
je 0x404f99
cmp byte [esi + 0x17], 3
jne 0x404f53
xor ebx, ebx
jmp 0x404fa8
and dword [ebp - 0xc], 0
push 0
push dword [0x414b10]
call section..text
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
je 0x404f91
push edi
call fcn.0040114d
cmp eax, dword [esi + 0xe]
pop ecx
jne 0x404f8a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402547
add esp, 0xc
push edi
call fcn.00401229
pop ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x12]
je 0x404f4f
test byte [esi + 0x16], 6
je 0x404fa8
push esi
call fcn.00404643
pop ecx
mov ebx, eax
and dword [0x414b98], 0
test ebx, ebx
je 0x405535
lea ecx, [ebp - 0x1a4]
call fcn.00409bfd
push dword [0x414b10]
call fcn.0040871b
push dword [0x414b10]
push dword [0x414b0c]
call fcn.0040a310
push str..__A
push dword [0x414b0c]
call fcn.004084be
xor edi, edi
push edi
push dword [0x414b0c]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x405034
push eax
call fcn.00401229
push dword [0x414b0c]
call fcn.0040a290
mov ecx, dword [0x414b0c]
inc byte [eax + ecx - 1]
push edi
push dword [0x414b0c]
lea eax, [eax + ecx - 1]
call section..text
add esp, 0x10
jmp 0x404fff
test byte [esi + 0x16], 0x20
je 0x405110
lea eax, [ebp - 4]
push eax
push 0x104
call fcn.00408572
push dword [0x414c6c]
push dword [ebp - 4]
call fcn.0040a310
push 0x5c
push dword [ebp - 4]
call fcn.0040a5a0
mov edi, eax
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
je 0x405072
inc edi
jmp 0x405075
mov edi, dword [ebp - 4]
push ebx
push esi
call fcn.0040376c
push eax
push edi
call fcn.0040a310
add esp, 0x10
push ebx
push dword [0x414b0c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4050c7
mov dword [0x414b98], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
mov dword [0x414b94], eax
call fcn.0040376c
push eax
push dword [0x414b08]
call fcn.0040a310
add esp, 0x10
jmp 0x4050f5
push 2
push dword [0x414b0c]
call fcn.0040a6b7
pop ecx
test eax, eax
pop ecx
je 0x4050f5
cmp dword [0x414cf4], 0xd
jne 0x4050f5
push 0x180
push dword [0x414b0c]
call fcn.0040a678
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.004085a5
cmp dword [0x414b98], ebx
pop ecx
je 0x4053cd
jmp 0x4054d8
push dword [0x414b0c]
call fcn.0040104d
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
mov dword [ebp - 8], ebx
jne 0x40513b
push dword [0x414b0c]
mov dword [0x414b98], 0x11
jmp 0x405507
mov al, byte [esi + 0x16]
test al, 0x10
je 0x40534a
movzx eax, word [esi + 0x1e]
xor ebx, ebx
mov edi, dword [eax*4 + 0x414c24]
add edi, 4
cmp dword [esi + 0x20], ebx
jle 0x40516a
push edi
call fcn.004027a9
inc ebx
pop ecx
cmp ebx, dword [esi + 0x20]
mov edi, eax
jl 0x40515b
test byte [edi + 0x16], 0x20
je 0x40524f
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x104
call fcn.00408572
push dword [0x414c6c]
push dword [ebp - 4]
call fcn.0040a310
push 0x5c
push dword [ebp - 4]
call fcn.0040a5a0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4051b2
inc ebx
jmp 0x4051b5
mov ebx, dword [ebp - 4]
push 0
push esi
call fcn.0040376c
push eax
push ebx
call fcn.0040a310
add esp, 0x10
xor ebx, ebx
push ebx
push dword [0x414b0c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40520a
mov dword [0x414b98], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
mov dword [0x414b94], eax
call fcn.0040376c
push eax
push dword [0x414b08]
call fcn.0040a310
add esp, 0x10
jmp 0x405238
push 2
push dword [0x414b0c]
call fcn.0040a6b7
pop ecx
test eax, eax
pop ecx
je 0x405238
cmp dword [0x414cf4], 0xd
jne 0x405238
push 0x180
push dword [0x414b0c]
call fcn.0040a678
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.004085a5
cmp dword [0x414b98], ebx
pop ecx
je 0x4052b8
jmp 0x4054d8
push dword [edi + 6]
call fcn.00403203
test eax, eax
pop ecx
mov dword [0x414b98], eax
jne 0x40550d
movzx eax, word [esi + 0x1e]
mov eax, dword [eax*4 + 0x414c0c]
cmp word [eax + 2], 0
je 0x40527f
push dword [0x414b68]
jmp 0x405281
push 0
call fcn.004056eb
pop ecx
push dword [edi + 0xa]
lea ecx, [ebp - 0x1a4]
push dword [0x412058]
push dword [ebp - 8]
call fcn.00409cb8
cmp dword [0x414c84], 2
je 0x40550d
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
pop ecx
push 0
push dword [0x414b0c]
call section..text
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x4052e3
push dword [0x414b0c]
mov dword [0x414b98], 0x10
jmp 0x4054d2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00402547
push ebx
call fcn.00401229
mov eax, dword [edi + 0x12]
add esp, 0x10
xor eax, dword [0x414ba4]
cmp dword [ebp - 0xc], eax
jne 0x4054c2
mov eax, dword [0x414c3c]
cmp word [eax + 2], 0
je 0x405320
push dword [0x414b68]
jmp 0x405322
push 0
call fcn.004056eb
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [0x414b0c]
push esi
call fcn.00404795
add esp, 0x10
test eax, eax
jne 0x4053cd
jmp 0x4054d8
test al, 1
je 0x4053ff
mov ecx, dword [0x414c4c]
cmp ecx, edi
je 0x4053cd
mov eax, dword [0x414c48]
test eax, eax
je 0x4053cd
push eax
push ecx
push dword [ebp - 8]
call fcn.004010cd
add esp, 0xc
mov dword [0x414b98], eax
test eax, eax
jne 0x40550d
push dword [esi + 6]
call fcn.00403203
test eax, eax
pop ecx
mov dword [0x414b98], eax
jne 0x40550d
push eax
call fcn.004056eb
pop ecx
push dword [esi + 0xa]
lea ecx, [ebp - 0x1a4]
push dword [0x412058]
push dword [ebp - 8]
call fcn.00409cb8
cmp dword [0x414c84], 2
je 0x40550d
push dword [ebp - 8]
call fcn.00401229
or dword [ebp - 8], 0xffffffff
pop ecx
cmp dword [ebp - 0x14], 0
push dword [0x414b0c]
je 0x4054e8
push dword [0x414b10]
call fcn.00406847
pop ecx
mov word [esi + 2], 0x1f4
pop ecx
mov dword [0x414b38], 1
jmp 0x4054f0
push dword [esi + 6]
call fcn.00403203
cmp eax, edi
pop ecx
mov dword [0x414b98], eax
jne 0x40550d
movzx eax, word [esi + 0x1e]
mov eax, dword [eax*4 + 0x414c0c]
cmp word [eax + 2], di
je 0x40542e
push dword [0x414b68]
jmp 0x40542f
push edi
call fcn.004056eb
pop ecx
push dword [esi + 0xa]
lea ecx, [ebp - 0x1a4]
push dword [0x412058]
push ebx
call fcn.00409cb8
cmp dword [0x414c84], 2
je 0x40550d
mov al, byte [esi + 0x16]
test al, 8
je 0x405478
test al, 6
lea eax, [esi + 0x38]
jne 0x405468
lea eax, [esi + 0x24]
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 [0x414b0c]
call section..text
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4052ce
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00402547
push edi
call fcn.00401229
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x12]
je 0x4053cd
push dword [0x414b10]
mov dword [0x414b98], 0x15
call fcn.004027b3
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.00409c09
jmp 0x4056b6
push esi
call fcn.0040573a
pop ecx
pop ecx
cmp word [esi + 2], 0x1b
jne 0x40551d
push dword [0x414b10]
mov dword [0x414b98], 0x16
call fcn.004027b3
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.00409c09
jmp 0x4056a1
lea ecx, [ebp - 0x1a4]
call fcn.00409c09
cmp dword [0x414b98], 0
jne 0x4056a1
mov eax, dword [0x414b0c]
and byte [eax], 0
test byte [esi + 0x16], 1
je 0x405548
and word [esi + 2], 0
cmp byte [esi + 0x17], 0
je 0x4055d6
cmp byte [esi + 0x19], 1
jne 0x4055d6
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 0x4055d6
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 [0x414b10]
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 0x4055ac
inc dword [ebp - 4]
jmp 0x4055b2
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 [0x414b10]
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 + 0x17], 3
jne 0x4055e8
push dword [0x414b10]
call fcn.0040593a
pop ecx
cmp byte [esi + 0x1b], 1
jne 0x4055f4
mov dword [0x414b2c], esi
cmp byte [esi + 0x18], 1
jne 0x405600
mov dword [0x414b34], esi
cmp byte [esi + 0x18], 2
jne 0x40560c
mov dword [0x414b30], esi
push 4
push esi
call fcn.0040376c
mov edi, eax
pop ecx
pop ecx
cmp byte [edi], 0
je 0x405691
push 5
push esi
call fcn.0040376c
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 0x405691
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x405691
lea eax, [ebp - 0x22c]
push eax
call fcn.004084fd
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040a320
lea eax, [ebp - 0x22c]
push str..lnk
push eax
call fcn.0040a320
push 0
lea eax, [ebp - 0x22c]
push ebx
push eax
push dword [0x414b10]
call fcn.004018e8
add esp, 0x24
push dword [ebp - 0x1c]
call fcn.004083c2
pop ecx
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0xffffffff
je 0x4056b0
push dword [ebp - 8]
call fcn.00401229
pop ecx
cmp dword [ebp - 0x10], 0
jne 0x4056c7
mov eax, dword [0x414b0c]
cmp byte [eax], 0
je 0x4056c7
push eax
call fcn.0040a781
pop ecx
test esi, esi
je 0x4056d3
mov eax, dword [0x414ba4]
xor dword [esi + 0x12], eax
cmp dword [ebp - 0x20], 0
pop edi
pop esi
pop ebx
je 0x4056e6
lea eax, [ebp - 0x20]
push eax
call fcn.004085a5
pop ecx
mov eax, dword [ebp - 0x10]
leave
ret