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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0x1003f240
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100270a6
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
jmp 0x100270c0
mov ecx, dword [ebp - 0x4c]
call fcn.10026da0
test eax, eax
jne 0x100270b9
xor eax, eax
jmp 0x1002739f
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x14]
push edx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100270eb
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1003f224
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x1002716b
mov word [ebp - 0x38], 0
push 2
lea eax, [ebp - 0x38]
push eax
push 7
push 0
push 0x1003f294
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1002713e
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003f34c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10027169
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
jmp 0x1002717d
cmp dword [ebp - 0x1c], 0
je 0x1002717d
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
cmp dword [ebp - 0x34], 0
ja 0x1002718f
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003f368
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100271ec
mov dword [ebp - 0x2c], 0
jmp 0x1002735c
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10027204
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
shr ecx, 1
cmp dword [ebp - 0x10], ecx
jae 0x1002723c
push 0x1003f384
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
push ecx
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1002723a
mov edx, dword [ebp - 0x10]
add edx, 7
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 1
jmp 0x100271fb
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
jne 0x10027260
push 0x1003f394
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x18], 0
je 0x1002726b
jmp 0x1002735c
mov eax, dword [ebp - 0x30]
push eax
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], 0
jne 0x100272ce
cmp dword [ebp - 0x20], 0
je 0x100272ce
push 0x1003f3a4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
push 0x1003f3b4
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
jmp 0x100272e6
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x34]
shr edx, 1
cmp dword [ebp - 0x10], edx
jae 0x1002732b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
je 0x1002730e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + eax*2]
cmp edx, 0xa
jne 0x10027310
jmp 0x100272dd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov cx, word [edx + ecx*2]
mov word [eax], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x100272dd
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 7
push 0
push str.UpperFilters
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10027354
mov dword [ebp - 0x2c], 0
xor eax, eax
jne 0x100270c0
cmp dword [ebp - 0x14], 0
je 0x1002736c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x10027384
mov edx, dword [ebp - 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x1002739c
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret