Function at 0x1032ec6
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 [0x103f058]
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 0x1006924
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.01027f64
add esp, 0x10
push esi
lea eax, [ebp - 0x864]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1033090
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
mov ebx, 0x1006908
push ebx
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032fa7
cmp dword [ebp - 0x868], 1
je 0x1032fba
push 2
push 0x1002720
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 0x1033004
cmp dword [ebp - 0x868], 1
jne 0x1033004
lea eax, [ebp - 0x248]
push eax
call fcn.010313bf
test eax, eax
jne 0x1033052
push dword [ebp - 0x874]
lea eax, [ebp - 0x248]
push 0x10068e8
push 0x121
push eax
call fcn.01027f64
lea eax, [ebp - 0x248]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103302c
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 0x103305b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x870]
push 1
push esi
push 0x10068cc
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 0x1004250
push 0xc7
push eax
call fcn.01027f64
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1033432
mov word [ebp - 0x248], ax
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 0x1033280
cmp dword [ebp - 0x868], 1
je 0x103312c
cmp dword [ebp - 0x868], 2
jne 0x1033280
lea eax, [ebp - 0x248]
push eax
call fcn.010313bf
test eax, eax
je 0x1033280
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push dword [0x103f06c]
xor ebx, ebx
push 0x10068ac
push 0xc7
push eax
mov dword [ebp - 0x870], esi
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
push 1
push esi
lea eax, [ebp - 0x3d8]
push eax
push dword [0x10416f8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10331f8
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push 0x100669c
push dword [ebp - 0x870]
mov dword [ebp - 0x86c], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10331e8
cmp dword [ebp - 0x868], 1
jne 0x10331e8
lea eax, [ebp - 0x3d8]
push 0x100559c
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 0x1033213
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x880]
push esi
call fcn.01032084
cmp eax, esi
je 0x10332e2
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x860]
push eax
call fcn.01027e68
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x860]
push eax
call fcn.01031552
test eax, eax
jne 0x1033280
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1033252
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 0x10064bc
push dword [ebp - 0x864]
call edi
cmp dword [ebp - 0x868], 1
mov dword [ebp - 0x87c], 1
je 0x103329c
cmp dword [ebp - 0x868], 2
jne 0x10332b3
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0103172f
test eax, eax
jne 0x10332e2
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10332bc
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 0x1033432
push dword [ebp - 0x878]
call fcn.010313bf
test eax, eax
je 0x1033432
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x100688c
push 0xc7
push eax
call fcn.01027f64
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1033432
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 0x10333fc
cmp dword [ebp - 0x868], 1
je 0x103339c
cmp dword [ebp - 0x868], 2
jne 0x10333fc
lea eax, [ebp - 0x248]
push eax
call fcn.010313bf
test eax, eax
je 0x10333fc
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x878]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10333fc
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10333ce
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 0x10064bc
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 0x1033405
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x878]
push 2
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.0102df7d
leave
ret 0x14