Function at 0x42ae00
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ec0
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x5bda40]
xor eax, ebp
mov dword [ebp - 0x60], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x42aec5
call fcn.00403140
mov dword [ebp - 0x34], eax
lea ecx, [ebp + 0x10]
call fcn.004072e0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42ae61
mov dword [ebp - 0x80], 0
jmp 0x42aebf
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x3fffffff
jle 0x42ae86
mov dword [ebp - 0x84], 0
jmp 0x42aeb6
mov eax, dword [ebp - 0x2c]
shl eax, 1
call fcn.00542680
mov dword [ebp - 0x88], esp
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x2c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.004031a0
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea ecx, [ebp - 0x18]
push ecx
push 0x2001b
push 0
mov edx, dword [ebp - 0x24]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42af28
push 0x10
push 0x59cf14
push 0x59cf9c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov eax, dword [ebp - 0x64]
jmp 0x42b2db
mov dword [ebp - 0x20], 0x2000
mov eax, dword [ebp - 0x20]
push eax
call fcn.0053a6ab
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp + 0xc]
call fcn.004072e0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x42afb8
mov eax, dword [ebp - 0x20]
add eax, 0x1000
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0053a7dd
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
jmp 0x42af6c
cmp dword [ebp - 0x10], 0
je 0x42afc8
cmp dword [ebp - 0x10], 2
jne 0x42b23b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042aaf0
add esp, 8
test eax, eax
je 0x42b01c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0053986f
add esp, 4
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov eax, dword [ebp - 0x68]
jmp 0x42b2db
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x8c]
mov al, byte [edx]
mov byte [ebp - 0x91], al
add dword [ebp - 0x8c], 1
cmp byte [ebp - 0x91], 0
jne 0x42b034
mov ecx, dword [ebp - 0x8c]
sub ecx, dword [ebp - 0x90]
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00519ac8
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x9c]
mov dl, byte [ecx]
mov byte [ebp - 0xa5], dl
mov eax, dword [ebp - 0xa0]
mov cl, byte [ebp - 0xa5]
mov byte [eax], cl
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
cmp byte [ebp - 0xa5], 0
jne 0x42b0ad
lea ecx, [ebp - 0x48]
call fcn.00410610
mov byte [ebp - 4], 2
call fcn.00403140
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
jne 0x42b11c
mov dword [ebp - 0xac], 0
jmp 0x42b17b
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3fffffff
jle 0x42b141
mov dword [ebp - 0xb0], 0
jmp 0x42b16f
mov eax, dword [ebp - 0x3c]
shl eax, 1
call fcn.00542680
mov dword [ebp - 0xb4], esp
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00403150
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0x48]
call fcn.004069a0
lea ecx, [ebp + 0x10]
call fcn.004072e0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
add ecx, 2
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xb8]
mov ax, word [edx]
mov word [ebp - 0xbe], ax
add dword [ebp - 0xb8], 2
cmp word [ebp - 0xbe], 0
jne 0x42b1ad
mov ecx, dword [ebp - 0xb8]
sub ecx, dword [ebp - 0xbc]
sar ecx, 1
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
shl edx, 1
push edx
mov eax, dword [ebp - 0x58]
push eax
push 2
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
push 0x12c
push 2
push str.Environment
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004072c0
jmp 0x42b28b
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
lea eax, [ebp + 0x10]
push eax
call fcn.004068e0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp + 0xc]
push edx
call fcn.004068e0
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
call fcn.00429b90
lea ecx, [ebp + 0x10]
call fcn.004072e0
push eax
lea ecx, [ebp + 0xc]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0053986f
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0xd4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.00538a54
mov esp, ebp
pop ebp
ret 0xc