Function at 0x103a124
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 [0x1046190]
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 0x100a5fc
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.01028b64
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]
jne 0x103a2ee
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
mov ebx, 0x100a5e0
push ebx
push dword [ebp - 0x864]
mov dword [ebp - 0x86c], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103a205
cmp dword [ebp - 0x868], 1
je 0x103a218
push 2
push 0x1002d58
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 0x103a262
cmp dword [ebp - 0x868], 1
jne 0x103a262
lea eax, [ebp - 0x248]
push eax
call fcn.010387a2
test eax, eax
jne 0x103a2b0
push dword [ebp - 0x874]
lea eax, [ebp - 0x248]
push 0x100a5c0
push 0x121
push eax
call fcn.01028b64
lea eax, [ebp - 0x248]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103a28a
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 0x103a2b9
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x870]
push 1
push esi
push 0x1004844
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 0x100a4f0
push 0xc7
push eax
call fcn.01028b64
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 0x103a690
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 0x103a4de
cmp dword [ebp - 0x868], 1
je 0x103a38a
cmp dword [ebp - 0x868], 2
jne 0x103a4de
lea eax, [ebp - 0x248]
push eax
call fcn.010387a2
test eax, eax
je 0x103a4de
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push dword [0x10472a0]
xor ebx, ebx
push 0x1007824
push 0xc7
push eax
mov dword [ebp - 0x870], esi
call fcn.01028b64
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
push 1
push esi
lea eax, [ebp - 0x3d8]
push eax
push dword [0x104941c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103a456
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push 0x10078b4
push dword [ebp - 0x870]
mov dword [ebp - 0x86c], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103a446
cmp dword [ebp - 0x868], 1
jne 0x103a446
lea eax, [ebp - 0x3d8]
push 0x1006914
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 0x103a471
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x880]
push esi
call fcn.010392ed
cmp eax, esi
je 0x103a540
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x860]
push eax
call fcn.01028a67
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x860]
push eax
call fcn.01038841
test eax, eax
jne 0x103a4de
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103a4b0
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 0x100a340
push dword [ebp - 0x864]
call edi
cmp dword [ebp - 0x868], 1
mov dword [ebp - 0x87c], 1
je 0x103a4fa
cmp dword [ebp - 0x868], 2
jne 0x103a511
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.01038ae1
test eax, eax
jne 0x103a540
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103a51a
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 0x103a690
push dword [ebp - 0x878]
call fcn.010387a2
test eax, eax
je 0x103a690
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x100a5a0
push 0xc7
push eax
call fcn.01028b64
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 0x103a690
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 0x103a65a
cmp dword [ebp - 0x868], 1
je 0x103a5fa
cmp dword [ebp - 0x868], 2
jne 0x103a65a
lea eax, [ebp - 0x248]
push eax
call fcn.010387a2
test eax, eax
je 0x103a65a
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 0x103a65a
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103a62c
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 0x100a340
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 0x103a663
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.01031a01
leave
ret 0x14