Function at 0x40e48d
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor ebx, ebx
push edi
push str.SMPHR_ncjvn580
push 1
push ebx
push ebx
mov dword [ebp - 0xc], ecx
call esi
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
mov edi, 0x20019
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov ebx, 0x80000001
je 0x40e4d4
push str.regponugcbe
jmp 0x40e4d9
push str.regurxbk0z1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.XML5zofh5uh
push 1
push 0
push 0
call esi
xor esi, esi
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.ev_auaalwdo
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0xd8e
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_3wmy1555
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.t4z65gxg3
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WTMR_9k3bwwuv
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov eax, dword [0x41504c]
push 0x20a
push 0x40
call eax
push str.XMLabwc5xbh
push 1
push esi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push str.reg4fypal5k
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.ev_d1n9xjo7
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.WTMR_eoj7ddfd
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.4hlbz7zc
mov dword [ebp - 4], eax
push str.3xq32c78
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e5fe
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x158]
push eax
push str.s_1v7f4tmo
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 6
pop edi
push str.e2rrxjvp
push str.2qerpjca
call esi
sub edi, 1
jne 0x40e61a
xor esi, esi
push esi
push 0xc88
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_gqvusl3l
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.tbpwui15w
call edi
push 0xe0a
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.x7e4a2x8
push str.r0k2f9ww
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.SMPHR_93hrnvfl
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.tlel70lho
mov esi, eax
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, 0x20019
test eax, eax
je 0x40e6cc
push str.tv7zqj1ex
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.t4qmwjb86
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MTXwtb7gfab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40e712
lea eax, [ebp - 4]
push eax
push edi
push 0
push str.regptet050g
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.m7x7lnie
push str.74pnz2dv
jmp 0x40e71c
push str.e5xfpe1y
push str.romsejjy
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [0x415198]
push esi
push ecx
push ecx
push 0x1c
push ecx
call eax
test eax, eax
js 0x40e82b
push str.ev_h8vyhyer
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x298]
push eax
push str.s_f7rbex8u
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTX7li8kyt9
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40e792
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40e7a4
lea eax, [ebp - 4]
push eax
push edi
push esi
push str.reg05x3yssi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push 0xca6
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push str.regkb6gxpys
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push str.regb5xnendj
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.WTMR_5b4k5ud8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40e7ff
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov edx, dword [0x4154b4]
mov ecx, dword [ebp - 8]
call fcn.0040f012
mov edi, dword [ebp - 0xc]
mov esi, eax
mov ecx, dword [0x415144]
push esi
push dword [edi]
call ecx
push esi
mov dword [edi], eax
call dword [0x4150cc]
xor eax, eax
inc eax
jmp 0x40e838
test esi, esi
je 0x40e836
push esi
call dword [0x4150cc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret