Function at 0x40fce0
Capabilities:
Contain obfuscated stackstrings
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52feec
mov eax, dword fs:[0]
push eax
mov eax, 0x13b0
call fcn.00501720
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x654]
push 0
push eax
call fcn.00503920
add esp, 0xc
call fcn.00407620
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40fd6b
movaps xmm0, xmmword [0x5648a0]
lea ecx, [ebp - 0x30]
push ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x6f4c7265
mov dword [ebp - 0x1c], 0x69746163
mov word [ebp - 0x18], 0x6e6f
mov byte [ebp - 0x16], 0
call edi
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x13a0]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41063a
mov eax, dword [ebp - 0x13a0]
mov dword [ebp - 0x13b0], eax
call fcn.00407620
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40fdbf
movaps xmm0, xmmword [0x564800]
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x57747369
mov byte [ebp - 0x18], 0
call edi
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x13b0]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x654]
push 0x55eb5c
push 0x104
push eax
call fcn.0050891c
add esp, 0xc
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.0050891c
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x55f0d0
push 0x104
push eax
call fcn.0050891c
add esp, 0xc
lea eax, [ebp - 0x1144]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x13ac], esi
cmp esi, 0xffffffff
je 0x41063a
nop word [eax + eax]
cmp word [ebp - 0x1118], 0x2e
je 0x41061d
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.005088b8
add esp, 0xc
lea eax, [ebp - 0x1118]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.0050891c
add esp, 0xc
test byte [ebp - 0x1144], 0x10
jne 0x41061d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x1398], 0
push eax
push 0x550910
push 1
push 0
push 0x550950
mov dword [ebp - 0x139c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4105f7
mov ecx, dword [ebp - 0x1398]
test ecx, ecx
je 0x410607
mov eax, dword [ecx]
lea edx, [ebp - 0x139c]
push edx
push 0x550940
push ecx
call dword [eax]
test eax, eax
jne 0x4105f7
mov ecx, dword [ebp - 0x139c]
test ecx, ecx
je 0x4105f7
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push 0
push edx
push ecx
call dword [eax + 0x14]
push 0x20a
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.00503920
mov eax, dword [ebp - 0x1398]
lea edx, [ebp - 0x44c]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
cmp word [ebp - 0x44c], 0
je 0x4105f7
push 0x800
lea eax, [ebp - 0xe54]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x1394]
push 0x250
push 0
push eax
call fcn.00503920
mov eax, dword [ebp - 0x1398]
lea edx, [ebp - 0x1394]
add esp, 0xc
mov ecx, dword [eax]
push 2
push edx
push 0x400
lea edx, [ebp - 0xe54]
push edx
push eax
call dword [ecx + 0xc]
cmp word [ebp - 0xe54], 0
je 0x4105f7
lea eax, [ebp - 0xe54]
push 0x5c
push eax
call fcn.00502dca
add esp, 8
test eax, eax
je 0x4105f7
mov edi, dword [ebx + 0x258]
add eax, 2
mov dword [ebp - 0x13a8], eax
mov ecx, edi
sub ecx, dword [ebx + 0x254]
mov eax, 0x2aaaaaab
imul ecx
xor esi, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4105f1
mov dword [ebp - 0x13b0], esi
mov ecx, dword [ebx + 0x254]
mov eax, 0x2aaaaaab
sub edi, ecx
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x410658
mov edi, dword [ebp - 0x13b0]
cmp dword [edi + ecx + 0x14], 8
lea eax, [edi + ecx]
jb 0x410063
mov eax, dword [eax]
push eax
push dword [ebp - 0x13a8]
call fcn.004074f0
mov ecx, eax
call fcn.00457e40
test eax, eax
jne 0x4103a5
mov ecx, dword [ebx + 0x258]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x254]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x410658
mov eax, dword [ebx + 0x254]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4100b3
mov eax, dword [eax]
push 0x5c
push eax
call fcn.00502d03
add esp, 8
test eax, eax
je 0x41010f
mov ecx, dword [ebx + 0x258]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x254]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x410658
mov eax, dword [ebx + 0x254]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4100f7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.004074f0
mov ecx, eax
call fcn.00457e40
test eax, eax
jne 0x410145
add edi, 0x18
mov eax, 0x2aaaaaab
mov dword [ebp - 0x13b0], edi
inc esi
mov edi, dword [ebx + 0x258]
mov ecx, edi
sub ecx, dword [ebx + 0x254]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x410030
jmp 0x4105f1
xor eax, eax
mov dword [ebp - 0xe90], 0
mov dword [ebp - 0xe8c], 0
mov dword [ebp - 0xe90], 0
mov dword [ebp - 0xe8c], 7
mov word [ebp - 0xea0], ax
mov dword [ebp - 4], 7
mov dword [ebp - 0xe78], eax
mov dword [ebp - 0xe74], eax
mov dword [ebp - 0xe78], eax
mov dword [ebp - 0xe74], 7
mov word [ebp - 0xe88], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0xe60], eax
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe60], eax
mov dword [ebp - 0xe5c], 7
mov word [ebp - 0xe70], ax
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0xea4], esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4101e0
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xea0]
call fcn.0040ab40
lea ecx, [ebp - 0x44c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410210
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe88]
call fcn.0040ab40
cmp dword [ebp - 0xe74], 8
lea edx, [ebp - 0xe88]
mov esi, dword [ebp - 0xe88]
mov eax, dword [ebp - 0xe78]
cmovae edx, esi
mov byte [ebp - 0x13a1], 0x22
lea ecx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x13a8], eax
lea edx, [ebp - 0x13a1]
lea eax, [ebp - 0xe88]
cmovae eax, esi
add eax, ecx
cmp dword [ebp - 0xe74], 8
lea ecx, [ebp - 0xe88]
cmovae ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x13b4]
call fcn.00410ec0
mov esi, dword [ebp - 0xe78]
lea ecx, [ebp - 0xe88]
add esp, 8
cmp dword [ebp - 0xe74], 8
cmovae ecx, dword [ebp - 0xe88]
mov eax, dword [eax]
mov edi, eax
sub edi, ecx
sar edi, 1
cmp esi, edi
jb 0x41065d
mov edx, dword [ebp - 0x13a8]
sub edx, eax
mov eax, esi
sub eax, edi
sar edx, 1
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0xe74], 8
lea eax, [ebp - 0xe88]
cmovae eax, dword [ebp - 0xe88]
sub esi, edx
mov dword [ebp - 0xe78], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00504000
add esp, 0xc
cmp dword [ebp - 0xe78], 0
je 0x410393
mov esi, dword [ebx + 0x264]
cmp dword [ebx + 0x268], esi
je 0x410380
mov eax, dword [ebp - 0xea4]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0xea0]
push eax
mov dword [ebp - 0x13a8], esi
call fcn.0040d350
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe88]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040d350
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xe70]
push eax
lea ecx, [esi + 0x34]
call fcn.0040d350
mov byte [ebp - 4], 0xa
add dword [ebx + 0x264], 0x4c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea4]
jmp 0x4105ec
lea eax, [ebp - 0xea4]
push eax
push esi
lea ecx, [ebx + 0x260]
call fcn.004111d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea4]
jmp 0x4105ec
xor eax, eax
mov dword [ebp - 0xee0], 0
mov dword [ebp - 0xedc], 0
mov dword [ebp - 0xee0], 0
mov dword [ebp - 0xedc], 7
mov word [ebp - 0xef0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xec8], eax
mov dword [ebp - 0xec4], eax
mov dword [ebp - 0xec8], eax
mov dword [ebp - 0xec4], 7
mov word [ebp - 0xed8], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeac], eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeac], 7
mov word [ebp - 0xec0], ax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0xef4], esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410440
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xef0]
call fcn.0040ab40
lea ecx, [ebp - 0x44c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410470
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xed8]
call fcn.0040ab40
cmp dword [ebp - 0xec4], 8
lea edx, [ebp - 0xed8]
mov esi, dword [ebp - 0xed8]
mov eax, dword [ebp - 0xec8]
cmovae edx, esi
mov byte [ebp - 0x13a1], 0x22
lea ecx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x13a8], eax
lea edx, [ebp - 0x13a1]
lea eax, [ebp - 0xed8]
cmovae eax, esi
add eax, ecx
cmp dword [ebp - 0xec4], 8
lea ecx, [ebp - 0xed8]
cmovae ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x13b8]
call fcn.00410ec0
mov esi, dword [ebp - 0xec8]
lea ecx, [ebp - 0xed8]
add esp, 8
cmp dword [ebp - 0xec4], 8
cmovae ecx, dword [ebp - 0xed8]
mov eax, dword [eax]
mov edi, eax
sub edi, ecx
sar edi, 1
cmp esi, edi
jb 0x41065d
mov edx, dword [ebp - 0x13a8]
sub edx, eax
mov eax, esi
sub eax, edi
sar edx, 1
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0xec4], 8
lea eax, [ebp - 0xed8]
cmovae eax, dword [ebp - 0xed8]
sub esi, edx
mov dword [ebp - 0xec8], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00504000
add esp, 0xc
cmp dword [ebp - 0xec8], 0
je 0x4105df
mov esi, dword [ebx + 0x264]
cmp dword [ebx + 0x268], esi
je 0x4105cc
mov eax, dword [ebp - 0xef4]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0xef0]
push eax
mov dword [ebp - 0x13a8], esi
call fcn.0040d350
mov byte [ebp - 4], 4
lea eax, [ebp - 0xed8]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040d350
mov byte [ebp - 4], 5
lea eax, [ebp - 0xec0]
push eax
lea ecx, [esi + 0x34]
call fcn.0040d350
mov byte [ebp - 4], 3
add dword [ebx + 0x264], 0x4c
jmp 0x4105df
lea eax, [ebp - 0xef4]
push eax
push esi
lea ecx, [ebx + 0x260]
call fcn.004111d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xef4]
call fcn.00410670
mov esi, dword [ebp - 0x13ac]
mov ecx, dword [ebp - 0x1398]
test ecx, ecx
je 0x410607
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x139c]
test ecx, ecx
je 0x410617
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x1144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fe60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret 4
call fcn.0040a910
call fcn.0040bc10
int3