Function at 0xe6e6c
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0xe6e74
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xe8b79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, 0xe8b90
call fcn.00013cd4
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xe715d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov ecx, 0xe8bbc
mov edx, dword [ebp - 0x14]
call fcn.00013f18
lea eax, [ebp - 0x2c]
mov ecx, 0xe8bd8
mov edx, dword [ebp - 0x1c]
call fcn.00013f18
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00014090
mov edi, eax
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test ebx, ebx
jne 0xe7127
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xe8be4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xe8bf4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x24], eax
cmp esi, 2
jne 0xe7082
cmp dword [ebp - 0x10], 0
je 0xe6f80
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xe707b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov esi, eax
test esi, esi
jne 0xe7059
push 0x10c
push 0x2a6ebc
push 3
push 0
push 0xe8c04
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
jne 0xe7021
push dword [ebp - 0x2c]
lea edx, [ebp - 0x38]
mov eax, 0xe8c10
call fcn.00031d88
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00019ef4
jmp 0xe7059
push dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
mov eax, 0xe8c18
call fcn.00031d88
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.0001a00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xe7082
cmp dword [ebp - 0x10], 0
je 0xe7075
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
cmp dword [ebp - 0xc], 2
jne 0xe7123
mov dword [ebp - 0x28], 1
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push 0xe8be4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
jne 0xe70eb
push dword [ebp - 0x1c]
lea edx, [ebp - 0x50]
mov eax, 0xe8c1c
call fcn.00031d88
push dword [ebp - 0x50]
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.00019ef4
jmp 0xe7123
push dword [ebp - 0x1c]
lea edx, [ebp - 0x5c]
mov eax, 0xe8c28
call fcn.00031d88
push dword [ebp - 0x5c]
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 4]
call fcn.0001a00c
cmp dword [ebp - 0x24], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xe7164
cmp dword [ebp - 0x20], 0
je 0xe7143
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0xe7157
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret