Function at 0xb7b30
Capabilities:
Delete registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0xb7b39
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb8459
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.000192cc
mov dword [ebp - 0x28], 0x10000
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0xb835c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0xb846c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xb7c3a
push 0xb84a0
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xb84b4
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xb7e77
cmp dword [ebp - 8], 4
jne 0xb7e77
cmp dword [ebp - 0x28], 0x2000
je 0xb7e77
cmp dword [ebp - 0x28], 0x4000
je 0xb7e77
cmp dword [ebp - 0x28], 0x8000
je 0xb7e77
cmp dword [ebp - 0x28], 0x10000
je 0xb7e77
mov dword [ebp - 0x28], 0x10000
jmp 0xb7e77
cmp dword [ebp - 0x2c], 0
je 0xb7c49
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb846c
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
je 0xb7d82
cmp dword [ebp - 0x2c], 0
je 0xb7c91
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb84c8
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
cmp dword [ebp - 0x2c], 0
je 0xb7cd1
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb84d0
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
cmp dword [ebp - 0x2c], 0
je 0xb7d11
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb84ec
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
cmp dword [ebp - 0x2c], 0
je 0xb7d51
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb8510
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
cmp dword [ebp - 0x2c], 0
je 0xb7d91
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x4001f
push eax
push 0
push 0
push 0
push 0xb846c
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0xb7e33
push 0xb84a0
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xb84b4
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xb7e77
cmp dword [ebp - 8], 4
jne 0xb7e77
cmp dword [ebp - 0x28], 0x2000
je 0xb7e77
cmp dword [ebp - 0x28], 0x4000
je 0xb7e77
cmp dword [ebp - 0x28], 0x8000
je 0xb7e77
cmp dword [ebp - 0x28], 0x10000
je 0xb7e77
mov dword [ebp - 0x28], 0x10000
jmp 0xb7e77
call sub.kernel32.dll_GetLastError_1
mov edi, eax
push 0xb8540
lea edx, [ebp - 0x38]
mov eax, 0xb8554
call fcn.00031d88
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, edi
call fcn.0002b100
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019c98
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
call fcn.000a41e8
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0xffff
push ebx
call fcn.000a3f78
call fcn.000a4204
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x28]
jne 0xb7efa
cmp dword [ebp - 0xc], 0
je 0xb7efa
cmp byte [ebp + 0xc], 0
je 0xb833a
push 0xb8560
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0002b0cc
push dword [ebp - 0x44]
push 0xb856c
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019c98
jmp 0xb833a
cmp dword [ebp - 0x30], 0
jne 0xb833a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push 0
call fcn.000a41e8
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0xffff
push ebx
call fcn.000a4118
call fcn.000a4204
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
call fcn.000a41e8
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xffff
push ebx
call fcn.000a3f78
call fcn.000a4204
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jne 0xb800f
cmp byte [ebp + 0xc], 0
je 0xb833a
lea edx, [ebp - 0x4c]
mov eax, 0xb8570
call fcn.00031d88
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.0002b0cc
push dword [ebp - 0x50]
lea edx, [ebp - 0x54]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0002b0cc
push dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.0002b0cc
push dword [ebp - 0x60]
lea edx, [ebp - 0x64]
mov eax, 0xb8578
call fcn.00031d88
push dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov edx, 7
call fcn.00013f8c
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019c98
jmp 0xb833a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jbe 0xb80b7
lea edx, [ebp - 0x6c]
mov eax, 0xb8570
call fcn.00031d88
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.0002b0cc
push dword [ebp - 0x70]
lea edx, [ebp - 0x74]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.0002b0cc
push dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.0002b0cc
push dword [ebp - 0x80]
lea edx, [ebp - 0x84]
mov eax, 0xb8578
call fcn.00031d88
push dword [ebp - 0x84]
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00013f8c
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019d3c
jmp 0xb833a
lea edx, [ebp - 0x8c]
mov eax, 0xb8570
call fcn.00031d88
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.0002b0cc
push dword [ebp - 0x90]
lea edx, [ebp - 0x94]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x98]
call fcn.0002b0cc
push dword [ebp - 0x98]
lea edx, [ebp - 0x9c]
mov eax, 0xb8574
call fcn.00031d88
push dword [ebp - 0x9c]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.0002b0cc
push dword [ebp - 0xa0]
lea edx, [ebp - 0xa4]
mov eax, 0xb8578
call fcn.00031d88
push dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
mov edx, 7
call fcn.00013f8c
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019de0
cmp dword [ebp - 0x2c], 0
je 0xb82a6
cmp dword [ebp - 0x30], 0
jne 0xb82a6
cmp dword [ebp - 0x18], 0
jne 0xb82a6
cmp dword [ebp - 0x28], 0x4000
jb 0xb833a
mov eax, dword [ebp - 0x28]
shr eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 4
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0xb84b4
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
not eax
test eax, eax
jne 0xb825f
call sub.kernel32.dll_GetLastError_1
mov edi, eax
lea edx, [ebp - 0xac]
mov eax, 0xb857c
call fcn.00031d88
push dword [ebp - 0xac]
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x28]
call fcn.0002d44c
push dword [ebp - 0xb0]
lea edx, [ebp - 0xb4]
mov eax, 0xb8554
call fcn.00031d88
push dword [ebp - 0xb4]
lea edx, [ebp - 0xb8]
mov eax, edi
call fcn.0002b100
push dword [ebp - 0xb8]
lea eax, [ebp - 0xa8]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019de0
jmp 0xb833a
lea edx, [ebp - 0xbc]
mov eax, 0xb857c
call fcn.00031d88
lea eax, [ebp - 0xbc]
push eax
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x28]
call fcn.0002d44c
mov edx, dword [ebp - 0xc0]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019d3c
jmp 0xb833a
lea edx, [ebp - 0xc8]
mov eax, 0xb8580
call fcn.00031d88
push dword [ebp - 0xc8]
push 0xb8540
lea edx, [ebp - 0xcc]
mov eax, 0xb8590
call fcn.00031d88
push dword [ebp - 0xcc]
cmp dword [ebp - 0x2c], 0
setne al
lea edx, [ebp - 0xd0]
call fcn.0002d050
push dword [ebp - 0xd0]
lea edx, [ebp - 0xd4]
mov eax, 0xb857c
call fcn.00031d88
push dword [ebp - 0xd4]
lea edx, [ebp - 0xd8]
mov eax, dword [ebp - 0x28]
call fcn.0002d44c
push dword [ebp - 0xd8]
lea eax, [ebp - 0xc4]
mov edx, 6
call fcn.00013f8c
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00019de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb8363
cmp dword [ebp - 0x2c], 0
je 0xb8356
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
ret