Function at 0x4beab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9c65
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], SysReAllocString
call int.004bcde0
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x4beb23
mov ebx, dword [ebx]
mov dword [ebp - 0x5c], ebx
mov esi, ebx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4beb43
sub esi, ecx
mov eax, 0xa
sar esi, 1
cmp esi, 7
ja 0x4beb7b
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
add esi, esi
push esi
push ebx
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4bec1c
cmp esi, 0x7ffffffe
ja 0x4bee9f
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4beba0
mov edi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4bebbc
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4bee9a
add eax, eax
cmp eax, 0x1000
jb 0x4bebe3
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4bee9a
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4beea4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4bebfe
test eax, eax
je 0x4bebfc
push eax
call fcn.00591cad
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4beeb2
jmp 0x4bebfe
xor ebx, ebx
mov dword [ebp - 0x18], esi
add esi, esi
push esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x14], edi
push ebx
call fcn.005729d0
add esp, 0xc
mov dword [ebp - 0x28], ebx
xor eax, eax
mov word [ebx + esi], ax
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0
cmovae ebx, dword [ebp - 0x58]
mov esi, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], 7
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bec41
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4bec7a
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x40]
add esi, esi
push esi
push ebx
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
jmp 0x4bed21
cmp esi, 0x7ffffffe
ja 0x4beec0
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4bec9f
mov ebx, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4becc1
cmp ebx, 0xa
mov eax, 0xa
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4bee9a
add eax, eax
cmp eax, 0x1000
jb 0x4bece8
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4bee9a
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4beec5
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4bed03
test eax, eax
je 0x4bed01
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4beed3
jmp 0x4bed03
xor edi, edi
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x2c], ebx
push edi
call fcn.005729d0
add esp, 0xc
mov dword [ebp - 0x40], edi
xor eax, eax
mov word [edi + esi], ax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x5c], 0
push ecx
lea ecx, [ebp - 0x5c]
cmp ebx, 8
push ecx
push 0
push 0x20006
push 0
push 0
lea eax, [ebp - 0x40]
push 0
cmovae eax, edi
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bed8d
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x28]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4bee5d
test esi, esi
je 0x4bed8d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4bedc9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bedbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4beee1
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4bee17
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bee0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4beee1
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4bee7c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bee72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4beee1
jmp 0x4bee72
test esi, esi
je 0x4bee68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x4bed8f
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x61]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x62]
push eax
call fcn.0057359b
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x63]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x64]
push eax
call fcn.0057359b
call fcn.0057da80
int3