Function at 0x40ae00
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509eb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
lea esi, [edi + 0x60]
mov dword [ebp - 0x78], eax
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x80], eax
je 0x40ae6b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ae5c
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b30d
cmp byte [edi + 0x108], 0
je 0x40b0f9
cmp dword [edi + 0x100], 0
je 0x40b0f9
call fcn.0040e830
mov edx, dword [esi + 0x14]
cmp eax, 1
mov ecx, dword [esi + 0x10]
mov eax, edx
je 0x40afbe
sub eax, ecx
cmp eax, 9
jb 0x40aedd
mov dword [ebp - 0x7c], esi
lea eax, [ecx + 9]
mov dword [ebp - 0x78], eax
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x40aeba
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
push 0x12
lea eax, [eax + ecx*2]
push str.C:Users_
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
jmp 0x40aef4
push 9
push str.C:Users_
mov byte [ebp - 0x78], 0
mov ecx, esi
push dword [ebp - 0x78]
push 9
call fcn.00408280
cmp dword [edi + 0x104], 8
lea ecx, [edi + 0xf0]
jb 0x40af09
mov ecx, dword [edi + 0xf0]
push dword [edi + 0x100]
push ecx
mov ecx, eax
call fcn.00407db0
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40af61
mov dword [ebp - 0x7c], edi
lea eax, [ecx + 1]
mov dword [ebp - 0x78], eax
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 8
jb 0x40af40
mov eax, dword [edi]
mov dword [ebp - 0x7c], eax
push 2
lea eax, [eax + ecx*2]
push 0x522d98
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40af7a
push 1
push 0x522d98
mov byte [ebp - 0x78], 0
mov ecx, edi
push dword [ebp - 0x78]
push 1
call fcn.00408280
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ecx, 7
jb 0x40b0dd
lea ecx, [eax + 7]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x40af9d
mov edi, dword [edi]
push 0xe
lea eax, [edi + eax*2]
push str.Desktop
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x78]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40b30d
sub eax, ecx
cmp eax, 0x1a
jb 0x40b000
mov dword [ebp - 0x7c], esi
lea eax, [ecx + 0x1a]
mov dword [ebp - 0x78], eax
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x40afdd
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
push 0x34
lea eax, [eax + ecx*2]
push str.C:Documents_and_Settings_
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
jmp 0x40b017
push 0x1a
push str.C:Documents_and_Settings_
mov byte [ebp - 0x78], 0
mov ecx, esi
push dword [ebp - 0x78]
push 0x1a
call fcn.00408280
cmp dword [edi + 0x104], 8
lea ecx, [edi + 0xf0]
jb 0x40b02c
mov ecx, dword [edi + 0xf0]
push dword [edi + 0x100]
push ecx
mov ecx, eax
call fcn.00407db0
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40b084
mov dword [ebp - 0x7c], edi
lea eax, [ecx + 1]
mov dword [ebp - 0x78], eax
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 8
jb 0x40b063
mov eax, dword [edi]
mov dword [ebp - 0x7c], eax
push 2
lea eax, [eax + ecx*2]
push 0x522d98
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40b09d
push 1
push 0x522d98
mov byte [ebp - 0x78], 0
mov ecx, edi
push dword [ebp - 0x78]
push 1
call fcn.00408280
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ecx, 7
jb 0x40b0dd
lea ecx, [eax + 7]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x40b0bc
mov edi, dword [edi]
push 0xe
lea eax, [edi + eax*2]
push str.Desktop
push eax
call fcn.004e6f70
mov eax, dword [ebp - 0x78]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40b30d
push 7
push str.Desktop
mov byte [ebp - 0x78], 0
mov ecx, edi
push dword [ebp - 0x78]
push 7
call fcn.00408280
jmp 0x40b30d
push 7
xor eax, eax
mov dword [ebp - 0x34], 0
push str.Desktop
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00405140
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x40
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00405140
push ecx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x78], reloc.WS2_32.dll_accept
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040b720
mov dword [ebp - 0x78], eax
cmp esi, eax
je 0x40b19b
mov ecx, esi
call fcn.00405280
mov eax, dword [ebp - 0x78]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x40b1d5
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b339
push edx
push ecx
call fcn.0049e956
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x40b226
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b21c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b33e
push edx
push ecx
call fcn.0049e956
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x40b27b
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b271
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b343
push edx
push ecx
call fcn.0049e956
add esp, 8
cmp dword [edi + 0x70], 0
jne 0x40b30d
push 0x50ca40
lea eax, [ebp - 0x74]
push eax
call fcn.0040c210
mov edi, eax
cmp esi, edi
je 0x40b2c3
mov ecx, esi
call fcn.00405280
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x40b2f9
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b348
push edx
push ecx
call fcn.0049e956
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov ecx, dword [ebp - 0x80]
push esi
call fcn.00405b70
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004e9a8c
call fcn.004e9a8c
call fcn.004e9a8c
call fcn.004e9a8c
int3