Function at 0x41d330
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4d6f
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], eax
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x41dc26
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.System32_ntdll.dll
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004051b0
test al, al
jne 0x41d3b2
push 0x13
push str.System32_ntdll.dll
lea ecx, [ebp - 0x20]
call fcn.004056b0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0040a8e0
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x98]
or esi, 0xffffffff
mov dword [ebp - 0x24], eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41d3f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d419
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0xffffffff
jne 0x41d429
mov eax, 0x57
jmp 0x41dc0b
push 1
push str.SeRestorePrivilege
call fcn.004218e0
add esp, 8
test al, al
jne 0x41d447
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41dc0b
push 1
push str.SeBackupPrivilege
call fcn.004218e0
add esp, 8
test al, al
je 0x41d43c
push str._system32config_system
lea ecx, [ebp - 0x98]
call fcn.00405020
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push edi
push eax
call fcn.0040a8e0
add esp, 0xc
push dword [eax]
push str.autoruns.system
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov edx, dword [ebp - 0x24]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41d4ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41d4cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x41d4da
mov eax, edi
jmp 0x41dc0b
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push 0xf003f
push str.autoruns.system
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 3
call fcn.0040f7a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x41dbff
push str._system32config_software
lea ecx, [ebp - 0x98]
call fcn.00405020
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.0040a8e0
add esp, 0xc
push dword [eax]
push str.autoruns.software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00405000
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.00405000
test esi, esi
jne 0x41dbff
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
push 0xf003f
push str.autoruns.software
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040f7a0
mov esi, eax
test esi, esi
jne 0x41dbf5
push str._ntuser.dat
lea ecx, [ebp - 0x98]
call fcn.00405020
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
call fcn.0040a8e0
add esp, 0xc
push dword [eax]
push str.autoruns.user
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00405000
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00405000
test esi, esi
jne 0x41dbf5
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
push 0xf003f
push str.autoruns.user
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0040f7a0
mov esi, eax
mov eax, dword [ebp - 0x48]
test esi, esi
jne 0x41dbee
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x2001f
push str.MicrosoftWindowsCurrentVersion
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x58]
call fcn.0040f7a0
mov esi, eax
test esi, esi
jne 0x41dbe1
push str.ProgramFilesDir
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041bd90
add esp, 0xc
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040f130
mov ecx, 0x4e60e0
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
push str.ProgramFilesDir__x86_
lea eax, [ebp - 0x1c]
push eax
movups xmmword [0x4e60e0], xmm0
lea eax, [ebp - 0x94]
movq xmm0, qword [ebp - 0x2c]
push eax
movq qword [0x4e60f0], xmm0
call fcn.0041bd90
add esp, 0xc
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x84], esi
jne 0x41d716
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00404ec0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040f130
mov ecx, 0x4e60c8
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [0x4e60c8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [0x4e60d8], xmm0
call fcn.00407160
cmp dword [eax + 0x14], 8
jb 0x41d754
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.PROGRAMFILES
call esi
call fcn.00407160
cmp dword [eax + 0x14], 8
jb 0x41d76f
mov eax, dword [eax]
push eax
push str.ProgramW6432
call esi
call fcn.00407200
cmp dword [eax + 0x14], 8
jb 0x41d784
mov eax, dword [eax]
push eax
push str.PROGRAMFILES_X86_
call esi
push str.CommonFilesDir
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041bd90
add esp, 0xc
lea ecx, [ebp - 0x7c]
push eax
call fcn.00404ef0
lea ecx, [ebp - 0x3c]
call fcn.00402b30
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str.CommonProgramFiles
call esi
push str.CommonFilesDir__x86_
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041bd90
add esp, 0xc
lea ecx, [ebp - 0x7c]
push eax
call fcn.00404ef0
lea ecx, [ebp - 0x3c]
call fcn.00402b30
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str.CommonProgramFiles_x86_
call esi
push str.Common6432Dir
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041bd90
add esp, 0xc
lea ecx, [ebp - 0x7c]
push eax
call fcn.00404ef0
lea ecx, [ebp - 0x3c]
call fcn.00402b30
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str.CommonProgramW6432
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d848
push eax
call edi
mov dword [ebp - 0x1c], 0
push 0x2001f
push str.MicrosoftWindows_NTCurrentVersion
push dword [ebp - 0x58]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
call fcn.0040f7a0
push str.SystemRoot
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041bd90
add esp, 0xc
mov ecx, 0x4e6128
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [0x4e6128], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [0x4e6138], xmm0
call fcn.00406e40
cmp dword [eax + 0x14], 8
jb 0x41d8a8
mov eax, dword [eax]
push eax
push str.SystemRoot
call esi
call fcn.00406e40
cmp dword [eax + 0x14], 8
jb 0x41d8bd
mov eax, dword [eax]
push eax
push str.WinDir
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d8d6
push eax
call edi
mov dword [ebp - 0x1c], 0
push 0x4c5fe8
mov dword [ebp - 0x18], 0
call fcn.00406e40
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004072a0
add esp, 0xc
mov ecx, 0x4e6110
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
push str.Syswow64
movups xmmword [0x4e6110], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [0x4e6120], xmm0
call fcn.00406e40
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004072a0
add esp, 0xc
mov ecx, 0x4e60f8
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [0x4e60f8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [0x4e6108], xmm0
call fcn.00406fd0
cmp dword [eax + 0x14], 8
jb 0x41d95c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d998
call fcn.00406eb0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040f130
mov ecx, 0x4e60f8
call fcn.00402b30
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [0x4e60f8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [0x4e6108], xmm0
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x1c]
push 0x2001f
push str.Select
push esi
mov dword [ebp - 0x4c], 0xffffffff
call fcn.0040f7a0
lea eax, [ebp - 0x4c]
push eax
push str.Default
lea ecx, [ebp - 0x1c]
call fcn.0040f890
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0040eb70
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x20]
push dword [ebp - 0x4c]
push str.RegistryMachine_autoruns.systemControlSet_03d
push eax
call fcn.0041eca0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0xf003f
push 3
push 0
push 0
push str.CurrentControlSet
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41da68
mov eax, dword [ebp - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x9c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41da23
sub edx, dword [ebp - 0x9c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 6
push 0
push str.SymbolicLinkValue
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41da60
push str.CurrentControlSet
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x98]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41da79
push eax
call edi
mov dword [ebp - 0x1c], 0
push 0x2001f
push str.CurrentControlSetControlSession_ManagerEnvironment
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
call fcn.0040f7a0
cmp dword [ebp - 0x1c], 0
je 0x41db75
push str.Path
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041bd90
add esp, 0xc
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41dac7
push eax
call edi
mov dword [ebp - 0x1c], 0
push 0x2001f
push str.Environment
push dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
call fcn.0040f7a0
cmp dword [ebp - 0x1c], 0
je 0x41db3d
push str.Path
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041bd90
push eax
mov edx, 0x4c6134
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd0]
call fcn.004059f0
add esp, 0x10
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.0040f0c0
lea ecx, [ebp - 0xd0]
call fcn.00402b30
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
call fcn.00402b30
lea eax, [ebp - 0x3c]
push eax
call fcn.00421440
add esp, 4
lea ecx, [ebp - 0x3c]
push eax
call fcn.00404ec0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00402b30
push dword [ebp - 0xa0]
mov ecx, 0x4e60b0
mov byte [0x4fd8f4], 1
call fcn.004026c0
push 0xffffffffffffffff
push 0x5c
mov ecx, 0x4e60b0
call fcn.00416200
push eax
push 0
lea eax, [ebp - 0xb8]
mov ecx, 0x4e60b0
push eax
call fcn.004089b0
push eax
mov ecx, 0x4e60b0
call fcn.00404ef0
lea ecx, [ebp - 0xb8]
call fcn.00402b30
lea ecx, [ebp - 0x20]
xor esi, esi
call fcn.00405000
lea ecx, [ebp - 0x94]
call fcn.00402b30
lea ecx, [ebp - 0x7c]
call fcn.00402b30
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41dbeb
push eax
call edi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41dbf5
push eax
call edi
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x41dbff
push eax
call edi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x41dc09
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406ac0
int3