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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52704c
mov eax, dword fs:[0]
push eax
mov eax, 0x13b0
call fcn.004f9530
mov eax, dword [0x57254c]
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.004fb730
add esp, 0xc
call fcn.00405a90
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40b41b
movaps xmm0, xmmword [0x55b370]
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 0x40bcea
mov eax, dword [ebp - 0x13a0]
mov dword [ebp - 0x13b0], eax
call fcn.00405a90
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40b46f
movaps xmm0, xmmword [0x55b2d0]
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.004fb730
add esp, 0xc
lea eax, [ebp - 0x654]
push 0x555afc
push 0x104
push eax
call fcn.005000cb
add esp, 0xc
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.005000cb
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x555f48
push 0x104
push eax
call fcn.005000cb
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 0x40bcea
nop word [eax + eax]
cmp word [ebp - 0x1118], 0x2e
je 0x40bccd
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.00500067
add esp, 0xc
lea eax, [ebp - 0x1118]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.005000cb
add esp, 0xc
test byte [ebp - 0x1144], 0x10
jne 0x40bccd
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x1398], 0
push eax
push 0x5478d0
push 1
push 0
push 0x547910
mov dword [ebp - 0x139c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40bca7
mov ecx, dword [ebp - 0x1398]
test ecx, ecx
je 0x40bcb7
mov eax, dword [ecx]
lea edx, [ebp - 0x139c]
push edx
push 0x547900
push ecx
call dword [eax]
test eax, eax
jne 0x40bca7
mov ecx, dword [ebp - 0x139c]
test ecx, ecx
je 0x40bca7
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.004fb730
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 0x40bca7
push 0x800
lea eax, [ebp - 0xe54]
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x1394]
push 0x250
push 0
push eax
call fcn.004fb730
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 0x40bca7
lea eax, [ebp - 0xe54]
push 0x5c
push eax
call fcn.004fabda
add esp, 8
test eax, eax
je 0x40bca7
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 0x40bca1
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 0x40bd08
mov edi, dword [ebp - 0x13b0]
cmp dword [edi + ecx + 0x14], 8
lea eax, [edi + ecx]
jb 0x40b713
mov eax, dword [eax]
push eax
push dword [ebp - 0x13a8]
call fcn.00405960
mov ecx, eax
call fcn.00451b20
test eax, eax
jne 0x40ba55
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 0x40bd08
mov eax, dword [ebx + 0x254]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x40b763
mov eax, dword [eax]
push 0x5c
push eax
call fcn.004fab13
add esp, 8
test eax, eax
je 0x40b7bf
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 0x40bd08
mov eax, dword [ebx + 0x254]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x40b7a7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.00405960
mov ecx, eax
call fcn.00451b20
test eax, eax
jne 0x40b7f5
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 0x40b6e0
jmp 0x40bca1
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 0x40b890
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xea0]
call fcn.00407a50
lea ecx, [ebp - 0x44c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8c0
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe88]
call fcn.00407a50
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.0040c450
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 0x40bd0d
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.004fbe10
add esp, 0xc
cmp dword [ebp - 0xe78], 0
je 0x40ba43
mov esi, dword [ebx + 0x264]
cmp dword [ebx + 0x268], esi
je 0x40ba30
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.00409750
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe88]
push eax
lea ecx, [esi + 0x1c]
call fcn.00409750
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xe70]
push eax
lea ecx, [esi + 0x34]
call fcn.00409750
mov byte [ebp - 4], 0xa
add dword [ebx + 0x264], 0x4c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea4]
jmp 0x40bc9c
lea eax, [ebp - 0xea4]
push eax
push esi
lea ecx, [ebx + 0x260]
call fcn.0040c760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea4]
jmp 0x40bc9c
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 0x40baf0
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xef0]
call fcn.00407a50
lea ecx, [ebp - 0x44c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb20
sub ecx, edx
lea eax, [ebp - 0x44c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xed8]
call fcn.00407a50
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.0040c450
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 0x40bd0d
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.004fbe10
add esp, 0xc
cmp dword [ebp - 0xec8], 0
je 0x40bc8f
mov esi, dword [ebx + 0x264]
cmp dword [ebx + 0x268], esi
je 0x40bc7c
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.00409750
mov byte [ebp - 4], 4
lea eax, [ebp - 0xed8]
push eax
lea ecx, [esi + 0x1c]
call fcn.00409750
mov byte [ebp - 4], 5
lea eax, [ebp - 0xec0]
push eax
lea ecx, [esi + 0x34]
call fcn.00409750
mov byte [ebp - 4], 3
add dword [ebx + 0x264], 0x4c
jmp 0x40bc8f
lea eax, [ebp - 0xef4]
push eax
push esi
lea ecx, [ebx + 0x260]
call fcn.0040c760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xef4]
call fcn.0040bd20
mov esi, dword [ebp - 0x13ac]
mov ecx, dword [ebp - 0x1398]
test ecx, ecx
je 0x40bcb7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x139c]
test ecx, ecx
je 0x40bcc7
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 0x40b510
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.004f8955
mov esp, ebp
pop ebp
ret 4
call fcn.004078e0
call fcn.004089b0
int3