Function at 0xb9bb10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc806a1
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0xcaf584]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0xc]
mov edi, 0xf
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
mov eax, dword [eax + 8]
push ecx
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x64]
call fcn.00b98070
mov esi, eax
add esp, 8
cmp esi, ebx
je 0xb9bbf2
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0xb9bbb1
mov edx, dword [ebp - 0x48]
push edx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0xb9bbcf
mov eax, dword [ebp - 0x64]
push eax
call fcn.00c125e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0xb9c04d
mov ecx, dword [ebp - 0x80]
push ecx
jmp 0xb9c045
cmp dword [ebp - 0x6c], 0x10
mov ecx, dword [ebp - 0x80]
jae 0xb9bbfe
lea ecx, [ebp - 0x80]
call fcn.00b96f30
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x64]
mov edi, eax
mov esi, 0xf
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00b92c50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], ebx
je 0xb9bd2e
push 1
push 0xc9e3c8
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.00b92a60
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x64]
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.00b946a0
lea ecx, [ebp - 0x48]
push ecx
push eax
lea edx, [ebp - 0xd4]
push edx
mov byte [ebp - 4], 5
call fcn.00b9d720
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00b92870
mov esi, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0xc0], esi
jb 0xb9bcb6
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
cmp dword [ebp - 0xa4], esi
jb 0xb9bce7
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], 3
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0x88], esi
jb 0xb9bd18
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00c125e4
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
mov dword [ebp - 0xe8], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0xb9bd40
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [ebp - 0xd8]
push ecx
push eax
push edi
call esi
cmp eax, ebx
je 0xb9be71
cmp eax, 5
mov eax, dword [ebp - 0xdc]
jne 0xb9be30
mov dl, byte [eax + 0x14]
mov eax, dword [eax + 8]
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 0xf0], dl
jb 0xb9bd7c
mov eax, dword [eax]
mov ecx, dword [ebp - 0xf0]
push ecx
push eax
call fcn.00b979a0
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 0x10
jae 0xb9bd98
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0xd8]
push edx
push eax
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0xb9be71
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jb 0xb9bdc7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0xb9bde9
mov edx, dword [ebp - 0x48]
push edx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], edi
jb 0xb9be0a
mov eax, dword [ebp - 0x64]
push eax
call fcn.00c125e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], edi
jb 0xb9c04d
mov ecx, dword [ebp - 0x80]
push ecx
jmp 0xb9c045
cmp dword [ebp - 0x18], 0x10
mov cl, byte [eax + 0x14]
mov eax, dword [ebp - 0x2c]
jae 0xb9be3f
lea eax, [ebp - 0x2c]
movzx ecx, cl
push ebx
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0xd8]
push edx
push ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push ebx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0xb9bf37
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov edx, dword [ebp - 0xe0]
mov ecx, dword [edx + 0x10]
jb 0xb9be8d
mov edi, dword [eax]
jmp 0xb9be8f
mov edi, eax
mov edx, dword [ebp - 0xdc]
mov esi, dword [edx + 0xc]
cmp dword [esi + 0x14], 0x10
jb 0xb9bea0
mov esi, dword [esi]
push ecx
mov ecx, dword [ebp - 0xe0]
call fcn.00b92a50
push eax
mov ecx, edi
call fcn.00b96f30
push eax
mov eax, dword [ebp - 0xd8]
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0xb9bfba
cmp esi, 5
jne 0xb9bfba
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax + 0x14]
mov eax, dword [eax + 8]
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 0xec], cl
jb 0xb9bef1
mov eax, dword [eax]
mov edx, dword [ebp - 0xec]
push edx
push eax
call fcn.00b979a0
add esp, 8
test eax, eax
jne 0xb9bfba
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xe8]
inc eax
mov dword [ebp - 0xe8], eax
cmp eax, 2
jge 0xb9bfba
mov edi, dword [ebp - 0xe4]
jmp 0xb9bd34
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jb 0xb9bf51
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0xb9bf73
mov eax, dword [ebp - 0x48]
push eax
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], edi
jb 0xb9bf94
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00c125e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], edi
jb 0xb9c04d
mov edx, dword [ebp - 0x80]
push edx
jmp 0xb9c045
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xe4]
je 0xb9bfd3
cmp eax, ebx
je 0xb9bfd3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0xb9bfe9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00c125e4
add esp, 4
mov edi, 0xf
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0xb9c00d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00c125e4
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0xb9c02b
mov edx, dword [ebp - 0x64]
push edx
call fcn.00c125e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0xb9c04d
mov eax, dword [ebp - 0x80]
push eax
call fcn.00c125e4
add esp, 4
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.00c12239
mov esp, ebp
pop ebp
ret 8