Function at 0x4a6530
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x20c], ax
call fcn.004e7d90
push 0
lea esi, [ebp - 0x20c]
call fcn.004a5de0
mov edi, esi
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a6580
lea edx, [ebp - 0x41c]
push edx
mov ecx, 0xe
mov esi, str.wmcEncryption.exe__1_decrypt
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..wme
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push closesocket
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4a66d5
mov ecx, dword [ebp - 0x418]
push 0x32
push str.WinMaster_Encryption_File
push 1
push 0
push 0x51cd40
push ecx
call edi
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wme_shell
push closesocket
call esi
test eax, eax
jne 0x4a66d5
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wmeShellopen
push closesocket
call esi
test eax, eax
jne 0x4a66d5
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wmeShellopencommand
push closesocket
call esi
test eax, eax
jne 0x4a66d5
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a66a0
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x51cd40
push ecx
call edi
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..smr
push closesocket
call esi
test eax, eax
jne 0x4a67f9
mov edx, dword [ebp - 0x418]
push 0x32
push str.WinMaster_Encryption_File
push 1
push eax
push 0x51cd40
push edx
call edi
mov eax, dword [ebp - 0x418]
push eax
call ebx
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x418]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..smr_shell
push closesocket
call esi
test eax, eax
jne 0x4a67f9
mov eax, dword [ebp - 0x418]
push eax
call ebx
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x418]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..smrShellopen
push closesocket
call esi
test eax, eax
jne 0x4a67f9
mov eax, dword [ebp - 0x418]
push eax
call ebx
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x418]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..smrShellopencommand
push closesocket
call esi
test eax, eax
jne 0x4a67f9
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a67c5
sub eax, edx
mov edx, dword [ebp - 0x418]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push 0x51cd40
push edx
call edi
mov eax, dword [ebp - 0x418]
push eax
call ebx
push 0
lea esi, [ebp - 0x20c]
call fcn.004a5de0
mov edi, esi
add esp, 4
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a6810
mov ecx, 0xd
mov esi, str.wmcEncryption.exe__1_path
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.004e7d90
add esp, 0xc
xor eax, eax
jmp 0x4a6850
movzx ecx, word [eax + str._shell_]
mov word [ebp + eax - 0x414], cx
add eax, 2
test cx, cx
jne 0x4a6850
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a6870
mov ecx, dword [0x521c18]
mov edx, dword [0x521c1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [eax], ecx
mov ecx, dword [0x521c20]
mov dword [eax + 4], edx
mov edx, dword [0x521c24]
mov dword [eax + 8], ecx
mov cx, word [0x521c28]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push closesocket
call esi
test eax, eax
jne 0x4a699c
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a68f3
mov ecx, dword [str.Command]
mov edx, dword [0x523ce4]
mov dword [eax], ecx
mov ecx, dword [0x523ce8]
mov dword [eax + 4], edx
mov edx, dword [0x523cec]
mov dword [eax + 8], ecx
mov cx, word [0x523cf0]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push closesocket
call esi
test eax, eax
jne 0x4a699c
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6963
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x51cd40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x418]
push edx
call ebx
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.Folder_shell_]
mov word [ebp + eax - 0x414], cx
add eax, 2
test cx, cx
jne 0x4a69a0
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a69c0
mov ecx, dword [0x521c18]
mov edx, dword [0x521c1c]
mov dword [eax], ecx
mov ecx, dword [0x521c20]
mov dword [eax + 4], edx
mov edx, dword [0x521c24]
mov dword [eax + 8], ecx
mov cx, word [0x521c28]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push closesocket
call esi
test eax, eax
jne 0x4a6ae9
mov edx, dword [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a6a40
mov ecx, dword [str.Command]
mov edx, dword [0x523ce4]
mov dword [eax], ecx
mov ecx, dword [0x523ce8]
mov dword [eax + 4], edx
mov edx, dword [0x523cec]
mov dword [eax + 8], ecx
mov cx, word [0x523cf0]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push closesocket
call esi
test eax, eax
jne 0x4a6ae9
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6ab0
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x51cd40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x418]
push edx
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret