Function at 0x404394
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov eax, 0x529a0c
call fcn.00519d2c
mov dword [ebp - 0x2c], 6
mov word [ebp - 0x38], 0xc
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], SysReAllocStringLen
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x38], 0x18
mov edx, str.HKEY_CLASSES_ROOT
lea eax, [ebp - 0xc]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
lea eax, [ebp + 8]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x404405
mov dword [ebp - 0x50], SysReAllocStringLen
jmp 0x4044c3
mov word [ebp - 0x38], 0x24
mov edx, str.HKEY_CURRENT_CONFIG
lea eax, [ebp - 0x10]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x10]
lea eax, [ebp + 8]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x404445
mov dword [ebp - 0x50], reloc.OLEAUT32.DLL_SysFreeString
jmp 0x4044c3
mov word [ebp - 0x38], 0x30
mov edx, str.HKEY_CURRENT_USER
lea eax, [ebp - 0x14]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x404485
mov dword [ebp - 0x50], SysReAllocStringLen
jmp 0x4044c3
mov word [ebp - 0x38], 0x3c
mov edx, str.HKEY_USERS
lea eax, [ebp - 0x18]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x4044c3
mov dword [ebp - 0x50], SysReAllocStringLen
mov word [ebp - 0x38], 0x48
lea eax, [ebp - 4]
call fcn.00403990
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0xc
mov word [ebp - 0x38], 0x54
lea eax, [ebp - 8]
call fcn.00403990
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.00525fb0
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 4]
call fcn.004040e4
push eax
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_RegCreateKeyW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4045a4
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00525f88
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4048b5
lea eax, [ebp + 0x10]
call fcn.00404098
test al, al
jne 0x404834
lea edx, [ebp + 0x10]
lea eax, [ebp - 4]
call fcn.00525fb0
mov dword [ebp - 0x58], 1
xor edx, edx
mov dword [ebp - 0x5c], edx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
xor eax, eax
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x38], 0x60
mov edx, 0x528e9d
lea eax, [ebp - 0x1c]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
lea eax, [ebp + 0x14]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x404642
lea edx, [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.00525fb0
lea eax, [ebp - 8]
call fcn.004048bc
add eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 8]
call fcn.004040e4
mov dword [ebp - 0x6c], eax
jmp 0x404785
mov word [ebp - 0x38], 0x6c
mov edx, 0x528ea4
lea eax, [ebp - 0x20]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
lea eax, [ebp + 0x14]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x40469d
mov dword [ebp - 0x58], 4
mov eax, dword [ebp + 0x18]
call fcn.0044fc0c
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 4
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x6c], edx
jmp 0x404785
mov word [ebp - 0x38], 0x78
mov edx, str.REG_QWORD
lea eax, [ebp - 0x24]
call fcn.00525e08
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea eax, [ebp + 0x14]
call fcn.0052605c
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00525f88
pop ecx
test cl, cl
je 0x4046ff
mov dword [ebp - 0x58], 0xb
push 0
push 0
mov eax, dword [ebp + 0x18]
call fcn.0044fc80
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 8
lea edx, [ebp - 0x68]
mov dword [ebp - 0x6c], edx
jmp 0x404785
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00525f88
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4048b5
push dword [ebp - 0x60]
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
push 0
lea eax, [ebp - 4]
call fcn.004040e4
push eax
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x404834
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00525f88
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4048b5
mov al, 1
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00525f88
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret 0x14