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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
push 0x20019
push 0
push str.regduvy6vjh
push 0x80000001
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.WTMR_iel5vn6f
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x14c]
push eax
push str.s_4o4wkk8x
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.XML0ps9kk75
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.ev_co8m4cgj
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]
push str.SMPHR_yqgz522c
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40dd0a
call edi
push str.MTXphqqzlgp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40dd43
push str.ttljfcwbf
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.j365hmj6
push str.8b5m7j2t
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x40dd61
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.ud8qanm7
push str.pogkjh2o
call esi
push str.1ozgzhys
push str.6ajv6zs7
call esi
mov eax, dword [0x41504c]
push 0x41
push 0x40
call eax
and dword [ebp - 8], 0
mov edi, eax
mov esi, edi
sub esi, ebx
cmp byte [ebx], 0x20
je 0x40de39
push str.bbbec09fb70501082e2a2e9916afbab0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
div ecx
mov cl, byte [ebx]
mov eax, dword [ebp - 8]
xor cl, byte [edx + str.bbbec09fb70501082e2a2e9916afbab0]
inc eax
mov byte [esi + ebx], cl
inc ebx
mov dword [ebp - 8], eax
cmp eax, 0x40
jb 0x40dd76
lea eax, [ebp - 0x28c]
push eax
push str.s_knj6a81k
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_ksisnpxu
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.reg5pqwtshe
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.WTMR_sh8nllc8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40de1f
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.tv82wggk6
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x3f2
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x40de3d
mov byte [esi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret