Function at 0x47d240
Capabilities:
Check if file exists
Check mutex on windows
Create process on windows
Get file attributes
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d093
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4bca04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movzx eax, word [ebp + 8]
mov dword [ebp - 0xb8], 0
lea esi, [eax - 0x44c]
mov dword [ebp - 0xb4], esi
cmp eax, 2
jne 0x47d298
mov eax, dword [edi]
call dword [eax + 8]
jmp 0x47d520
test esi, esi
js 0x47d520
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
imul edx, eax, 0x286bca1b
cmp esi, edx
jae 0x47d520
imul esi, esi, 0x98
add esi, ecx
mov eax, dword [esi + 0x78]
cmp eax, 5
jne 0x47d2d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
jmp 0x47d520
cmp eax, 3
je 0x47da30
cmp eax, 4
je 0x47da30
cmp eax, 1
jne 0x47d53f
push 0x38
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x3c
push 0
push eax
call fcn.00463e60
add esp, 0xc
lea ecx, [esi + 0x48]
cmp dword [esi + 0x5c], 0x10
jb 0x47d319
mov ecx, dword [esi + 0x48]
push dword [esi + 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411360
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x60]
cmp dword [esi + 0x74], 0x10
jb 0x47d33b
mov ecx, dword [esi + 0x60]
push dword [esi + 0x70]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00411360
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x138], 0x8040
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp dword [esi + 0x40], 0
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], 1
je 0x47d3b7
cmp dword [esi + 0x44], 0x10
lea eax, [esi + 0x30]
jb 0x47d396
mov eax, dword [esi + 0x30]
push dword [esi + 0x40]
lea ecx, [ebp - 0x88]
push eax
call fcn.00411360
add esp, 8
mov ecx, 1
cmp dword [eax + 0x14], 8
jb 0x47d3bf
mov eax, dword [eax]
jmp 0x47d3bf
mov ecx, dword [ebp - 0xb8]
xor eax, eax
mov dword [ebp - 0x130], eax
test cl, 1
je 0x47d3d5
lea ecx, [ebp - 0x88]
call fcn.00412be0
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47d510
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0xc4], 0xc
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 1
nop
push 0x1388
push dword [ebp - 0x104]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x38], 0x10
lea ecx, [edi + 0x24]
jb 0x47d45e
mov ecx, dword [edi + 0x24]
push dword [edi + 0x34]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00411360
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47d501
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47d4e4
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x47d4db
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x47dc17
push ecx
call fcn.0045a450
add esp, 4
cmp dword [ebp - 0xa8], 0x102
je 0x47d430
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x47d510
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
lea ecx, [ebp - 0x40]
call fcn.00412be0
lea ecx, [ebp - 0x58]
call fcn.00412be0
lea ecx, [ebp - 0x28]
call fcn.00412be0
xor eax, eax
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.004612e1
mov esp, ebp
pop ebp
ret 8
cmp eax, 7
jne 0x47d5f2
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413250
mov dword [ebp - 4], 3
cmp dword [ebp - 0x18], 0
jne 0x47d56d
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413060
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x48]
push eax
push ecx
call fcn.0047ba40
test al, al
je 0x47d5e5
call fcn.00411f40
push 0x99
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.004819e0
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x47d5a8
mov esi, dword [esi]
call fcn.00411f40
push 0xfc
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call fcn.004819e0
push 0x40
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00481ef0
lea ecx, [ebp - 0x88]
call fcn.004121a0
lea ecx, [ebp - 0xa0]
call fcn.004121a0
lea ecx, [ebp - 0x28]
call fcn.004121a0
jmp 0x47d520
cmp dword [esi + 0x5c], 0x10
lea eax, [esi + 0x48]
mov ecx, eax
jb 0x47d5ff
mov ecx, dword [eax]
add eax, 0x10
mov dword [ebp - 0xb0], eax
mov eax, dword [eax]
cmp eax, 0xc
jae 0x47d61a
movsx eax, byte [eax + str.explorer.exe]
neg eax
jmp 0x47d68d
jbe 0x47d622
movsx eax, byte [ecx + 0xc]
jmp 0x47d68d
xor eax, eax
mov edx, str.explorer.exe
sub edx, ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb4], edx
nop word [eax + eax]
mov eax, dword [ebp - 0xb4]
mov dl, byte [ecx]
mov dh, byte [eax + ecx]
mov eax, dword [ebp - 0xa8]
cmp dl, dh
je 0x47d679
movsx eax, dh
movsx edx, dl
sub edx, eax
mov eax, edx
mov dword [ebp - 0xbc], edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x20
jne 0x47d7b7
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb0]
inc eax
inc ecx
mov dword [ebp - 0xa8], eax
cmp eax, dword [edx]
jb 0x47d640
xor eax, eax
test eax, eax
jne 0x47d8c7
cmp dword [esi + 0x74], 0x10
lea eax, [esi + 0x60]
mov dword [ebp - 0xa8], eax
mov ecx, eax
jb 0x47d6a8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411360
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x47d6bf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xbc], eax
call fcn.00412be0
mov eax, dword [ebp - 0xbc]
cmp eax, 0xffffffff
je 0x47d6e7
test al, 0x10
jne 0x47d8c7
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 6
cmp dword [esi + 0x70], 0
je 0x47d81e
call fcn.00411f40
push 0xfd
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.004819e0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x60], 0
jne 0x47d7c2
xorps xmm0, xmm0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x47d780
mov ecx, dword [ebp - 0x70]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x47d777
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x47dc17
push ecx
call fcn.0045a450
add esp, 4
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44], 0x10
push dword [ebp - 0x48]
cmovb eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00413670
lea ecx, [ebp - 0x58]
jmp 0x47d84f
mov eax, dword [ebp - 0xbc]
jmp 0x47d68d
cmp dword [ebp - 0x5c], 0x10
lea esi, [ebp - 0x70]
mov eax, dword [ebp - 0xa8]
cmovae esi, dword [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00413250
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.00415f40
mov byte [ebp - 4], 6
add esp, 0x18
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x47d780
mov ecx, dword [ebp - 0x70]
inc eax
mov edx, ecx
cmp eax, 0x1000
jb 0x47d777
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x47dc17
jmp 0x47d777
call fcn.00411f40
push 0xfe
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004819e0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x47d842
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00413670
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004121a0
push 1
push 0x4a72d8
lea ecx, [ebp - 0x40]
call fcn.00413670
call fcn.00411f40
push 0xff
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004819e0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x47d88b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00413670
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004121a0
cmp dword [edi + 0x6c], 0x10
lea eax, [edi + 0x58]
jb 0x47d8ac
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00481ef0
lea ecx, [ebp - 0x40]
call fcn.004121a0
jmp 0x47d520
push 0x38
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x100], 0x3c
push 0
push eax
call fcn.00463e60
lea eax, [esi + 0x48]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x47d8ef
mov eax, dword [eax]
mov ecx, dword [ebp - 0xb0]
push dword [ecx]
lea ecx, [ebp - 0x88]
push eax
call fcn.00411360
add esp, 8
mov dword [ebp - 4], 0xb
lea ecx, [esi + 0x60]
cmp dword [esi + 0x74], 0x10
jb 0x47d919
mov ecx, dword [esi + 0x60]
push dword [esi + 0x70]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00411360
add esp, 8
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0xfc], 0x8040
cmovae eax, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
cmp dword [esi + 0x40], 0
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe4], 1
je 0x47d9a4
cmp dword [esi + 0x44], 0x10
lea ecx, [esi + 0x30]
jb 0x47d986
mov ecx, dword [esi + 0x30]
push dword [esi + 0x40]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00411360
add esp, 8
mov ecx, 2
cmp dword [eax + 0x14], 8
jb 0x47d9ac
mov eax, dword [eax]
jmp 0x47d9ac
mov ecx, dword [ebp - 0xb8]
xor eax, eax
mov dword [ebp - 0xf4], eax
test cl, 2
je 0x47d9bf
lea ecx, [ebp - 0x40]
call fcn.00412be0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47da1a
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x47da1a
cmp dword [esi + 0x78], 6
jne 0x47d9ff
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x47da13
cmp eax, 6
jne 0x47da1a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
lea ecx, [ebp - 0xa0]
call fcn.00412be0
lea ecx, [ebp - 0x88]
jmp 0x47d51b
xor esi, esi
test edx, edx
je 0x47da8f
xor edx, edx
mov dword [ebp - 0xb8], edx
nop
mov eax, dword [ecx + edx + 0x78]
cmp eax, 3
je 0x47da4e
cmp eax, 4
jne 0x47da6d
push 0
lea eax, [esi + 0x44c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0xb8]
mov eax, dword [edi + 0x1c]
inc esi
mov ecx, dword [edi + 0x18]
add edx, 0x98
sub eax, ecx
mov dword [ebp - 0xb8], edx
sar eax, 3
imul eax, eax, 0x286bca1b
cmp esi, eax
jb 0x47da40
push 0
push dword [ebp - 0xb4]
mov ecx, edi
call fcn.0047cd60
mov ecx, dword [edi + 0x1c]
xor esi, esi
mov edx, dword [edi + 0x18]
sub ecx, edx
sar ecx, 3
mov byte [ebp - 0xa9], al
imul eax, ecx, 0x286bca1b
mov dword [ebp - 0xa8], esi
test eax, eax
je 0x47d520
mov ecx, dword [ebp - 0xb4]
xor eax, eax
mov dword [ebp - 0xb0], eax
mov eax, dword [edx + eax + 0x78]
cmp esi, ecx
jne 0x47daea
cmp eax, 3
mov al, byte [ebp - 0xa9]
jne 0x47db10
xor al, 1
jmp 0x47db10
cmp eax, 3
jne 0x47dafd
push 1
push esi
mov ecx, edi
call fcn.0047cd60
xor al, 1
jmp 0x47db10
cmp eax, 4
jne 0x47dbe2
push 1
push esi
mov ecx, edi
call fcn.0047cd60
lea ecx, [esi + 0x44c]
mov byte [ebp - 0xa1], al
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [edi + 0x18]
mov esi, eax
mov eax, dword [ebp - 0xb0]
cmp dword [ecx + eax + 0x78], 3
jne 0x47db3c
push 1
jmp 0x47db44
movzx eax, byte [ebp - 0xa1]
push eax
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [ebp - 0xa1], 0
mov ecx, dword [ebp - 0xb0]
jne 0x47db77
mov eax, dword [edi + 0x18]
cmp dword [eax + ecx + 0x28], 0
je 0x47db77
add eax, ecx
cmp dword [eax + 0x2c], 0x10
lea ecx, [eax + 0x18]
jb 0x47db72
mov ecx, dword [eax + 0x18]
push dword [eax + 0x28]
jmp 0x47db89
mov eax, dword [edi + 0x18]
add eax, ecx
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x47db86
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411360
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x47db9d
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47dbd6
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x47dbcd
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x47dc17
push ecx
call fcn.0045a450
add esp, 4
mov ecx, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xa8]
mov eax, dword [edi + 0x1c]
inc esi
mov edx, dword [edi + 0x18]
sub eax, edx
add dword [ebp - 0xb0], 0x98
sar eax, 3
imul eax, eax, 0x286bca1b
mov dword [ebp - 0xa8], esi
cmp esi, eax
jae 0x47d520
mov eax, dword [ebp - 0xb0]
jmp 0x47dad3
call fcn.00469335
int3