Function at 0x106aa08
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x880], ecx
mov ecx, dword [ebp + 0x14]
push 0x100eec8
mov dword [ebp - 0x870], ecx
mov ecx, dword [ebp + 0x18]
xor esi, esi
lea eax, [ebp - 0x61c]
push 0x121
push eax
mov dword [ebp - 0x874], edi
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x864], esi
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x868], 1
mov dword [ebp - 0x87c], esi
call fcn.01034d76
add esp, 0x10
push esi
lea eax, [ebp - 0x864]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x106abd2
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
mov ebx, 0x100eeac
push ebx
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106aae9
cmp dword [ebp - 0x868], 1
je 0x106aafc
push 2
push 0x1001e8c
push 1
push esi
push ebx
push dword [ebp - 0x864]
call edi
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push esi
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106ab46
cmp dword [ebp - 0x868], 1
jne 0x106ab46
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
jne 0x106ab94
push dword [ebp - 0x874]
lea eax, [ebp - 0x248]
push 0x100ee8c
push 0x121
push eax
call fcn.01034d76
lea eax, [ebp - 0x248]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106ab6e
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push esi
push dword [ebp - 0x864]
call edi
mov eax, dword [ebp - 0x870]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106ab9d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x870]
push 1
push esi
push 0x100ee70
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x100eda0
push 0xc7
push eax
call fcn.01034d76
add esp, 0x10
push esi
lea eax, [ebp - 0x864]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x106af74
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push esi
push dword [ebp - 0x864]
mov word [ebp - 0x248], si
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106adc2
cmp dword [ebp - 0x868], 1
je 0x106ac6e
cmp dword [ebp - 0x868], 2
jne 0x106adc2
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106adc2
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push dword [0x107fde4]
xor ebx, ebx
push 0x100bd1c
push 0xc7
push eax
mov dword [ebp - 0x870], esi
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
push 1
push esi
lea eax, [ebp - 0x3d8]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106ad3a
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push 0x100bdb8
push dword [ebp - 0x870]
mov dword [ebp - 0x86c], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106ad2a
cmp dword [ebp - 0x868], 1
jne 0x106ad2a
lea eax, [ebp - 0x3d8]
push 0x1009cf8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
neg ebx
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x106ad55
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x880]
push esi
call fcn.01069928
cmp eax, esi
je 0x106ae24
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x860]
push eax
call fcn.01034c79
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x860]
push eax
call fcn.01068e7c
test eax, eax
jne 0x106adc2
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106ad94
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x100ebb4
push dword [ebp - 0x864]
call edi
cmp dword [ebp - 0x868], 1
mov dword [ebp - 0x87c], 1
je 0x106adde
cmp dword [ebp - 0x868], 2
jne 0x106adf5
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0106911c
test eax, eax
jne 0x106ae24
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106adfe
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push esi
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x864]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
cmp dword [ebp - 0x87c], esi
je 0x106af74
push dword [ebp - 0x878]
call fcn.01068ddd
test eax, eax
je 0x106af74
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x100ee50
push 0xc7
push eax
call fcn.01034d76
add esp, 0x10
push esi
lea eax, [ebp - 0x864]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x106af74
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push esi
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106af3e
cmp dword [ebp - 0x868], 1
je 0x106aede
cmp dword [ebp - 0x868], 2
jne 0x106af3e
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106af3e
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x878]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x106af3e
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106af10
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x100ebb4
push dword [ebp - 0x864]
call edi
mov eax, dword [ebp - 0x878]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106af47
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x878]
push 1
push esi
push esi
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x864]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0x14