Function at 0x1039e45
Capabilities:
Delete registry value
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, 0x3ec
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
push ecx
inc eax
push 0x100a4f0
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3e8], eax
lea eax, [ebp - 0x3d8]
xor esi, esi
push 0xc7
push eax
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 0x3dc], esi
mov dword [ebp - 0x3e4], esi
call fcn.01028b64
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
mov ebx, 0x2001f
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
push 0x80000000
call edi
test eax, eax
jne 0x103a010
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push esi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039fec
cmp dword [ebp - 0x3e0], 1
je 0x1039f12
cmp dword [ebp - 0x3e0], 2
jne 0x1039fec
lea eax, [ebp - 0x248]
push eax
call fcn.010387a2
test eax, eax
je 0x1039fec
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01038841
test eax, eax
jne 0x1039f55
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x103a10e
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push 0x100a340
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039fe6
cmp dword [ebp - 0x3e0], 1
je 0x1039f9c
cmp dword [ebp - 0x3e0], 2
jne 0x1039fe6
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1039fa5
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x3e0]
push esi
push esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100a340
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1039fec
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x103a010
push dword [ebp - 0x3ec]
push 0x80000000
jmp 0x103a109
push dword [ebp - 0x3ec]
lea eax, [ebp - 0x3d8]
push 0x100a5a0
push 0xc7
push eax
mov dword [ebp - 0x3e8], 1
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
mov ebx, 0x80000000
push ebx
call edi
test eax, eax
jne 0x103a10e
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
mov edi, 0x100a340
push edi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103a0e7
cmp dword [ebp - 0x3e0], 1
je 0x103a0a1
cmp dword [ebp - 0x3e0], 2
jne 0x103a0e7
push edi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103a0b7
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x3e0]
push esi
push esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x103a0ed
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x103a10e
lea eax, [ebp - 0x3d8]
push eax
push ebx
call fcn.01033666
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 4