Function at 0x101e9b6
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, 0x884
mov eax, dword [0x102a0ec]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x884], ecx
mov ecx, dword [ebp + 0x14]
push 0x1007a54
mov dword [ebp - 0x870], ecx
mov ecx, dword [ebp + 0x18]
xor esi, esi
lea eax, [ebp - 0x61c]
push 0x121
push eax
mov dword [ebp - 0x878], edi
mov dword [ebp - 0x874], ecx
mov dword [ebp - 0x864], esi
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x868], 1
mov dword [ebp - 0x87c], esi
call fcn.0100d4d1
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]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
jne 0x101eb76
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push 0x1007a38
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101ea9a
cmp dword [ebp - 0x868], 1
je 0x101eabc
push 0x1003c14
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x1003c14
push 1
push esi
push 0x1007a38
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 0x101eb06
cmp dword [ebp - 0x868], 1
jne 0x101eb06
lea eax, [ebp - 0x248]
push eax
call fcn.0101b431
test eax, eax
jne 0x101eb46
push dword [ebp - 0x878]
lea eax, [ebp - 0x248]
push 0x1007a18
push 0x121
push eax
call fcn.0100d4d1
lea eax, [ebp - 0x248]
push eax
call ebx
add esp, 0x14
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
push dword [ebp - 0x870]
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x870]
push 1
push esi
push 0x1004d04
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x878]
lea eax, [ebp - 0x3d8]
push 0x100759c
push 0xc7
push eax
call fcn.0100d4d1
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 0x101eec0
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 0x101ed5d
cmp dword [ebp - 0x868], 1
je 0x101ec0b
cmp dword [ebp - 0x868], 2
jne 0x101ed5d
lea eax, [ebp - 0x248]
push eax
call fcn.0101b431
test eax, eax
je 0x101ed5d
push dword [ebp - 0x878]
lea eax, [ebp - 0x3d8]
push dword [0x102a0f4]
mov dword [ebp - 0x880], esi
push 0x10072c0
push 0xc7
push eax
mov dword [ebp - 0x870], esi
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
push 1
push esi
lea eax, [ebp - 0x3d8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ece2
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push 0x1007350
push dword [ebp - 0x870]
mov dword [ebp - 0x86c], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101ecce
cmp dword [ebp - 0x868], 1
jne 0x101ecce
lea eax, [ebp - 0x3d8]
push 0x1003320
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
mov dword [ebp - 0x880], eax
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x880], esi
jne 0x101ecfd
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x884]
push esi
call fcn.0101de76
cmp eax, esi
je 0x101ed89
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x860]
push eax
call fcn.0100c535
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x860]
push eax
call fcn.0101b4c4
test eax, eax
jne 0x101ed5d
lea eax, [ebp - 0x248]
push eax
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x1007504
push dword [ebp - 0x864]
call edi
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x87c], 1
call ebx
pop ecx
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]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x87c], esi
je 0x101eec0
push dword [ebp - 0x874]
call fcn.0101b431
test eax, eax
je 0x101eec0
push dword [ebp - 0x878]
lea eax, [ebp - 0x3d8]
push 0x100757c
push 0xc7
push eax
call fcn.0100d4d1
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 0x101eec0
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 0x101ee94
cmp dword [ebp - 0x868], 1
je 0x101ee41
cmp dword [ebp - 0x868], 2
jne 0x101ee94
lea eax, [ebp - 0x248]
push eax
call fcn.0101b431
test eax, eax
je 0x101ee94
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x101ee94
lea eax, [ebp - 0x248]
push eax
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x1007504
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x874]
call ebx
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x874]
push 1
push esi
push esi
push dword [ebp - 0x864]
call edi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0x14