Function at 0x523d90
Capabilities:
Get common file path
Persist via com hijack
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.IsWow64Process
push 0x572fd4
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x523ddd
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x21c], 0
mov eax, 0x2011f
mov esi, 0x2001f
push 0x208
cmovne esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.oleaut32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0
push esi
push 0
push 0
push 0
push str.SoftwareClassesCLSID00020420_0000_0000_C000_000000000046
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x523f83
push 0x16
push str.PSDispatch
push 1
push 0
push 0
push dword [ebp - 0x214]
call edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push esi
push 0
push 0
push 0
push 0x573310
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x523f6d
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x523ed4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x210]
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x523f10
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x5732f0
push dword [ebp - 0x210]
call edi
push 0xa
push 0x5733c4
push 1
push 0
push 0x57344c
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push esi
push 0
push 0
push 0
push str.SoftwareClassesCLSID00020424_0000_0000_C000_000000000046
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x52409e
push 0x1c
push str.PSOAInterface
push 1
push eax
push eax
push dword [ebp - 0x214]
call edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push esi
push 0
push 0
push 0
push str.InprocServer32
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x524092
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x524000
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x210]
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x524035
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x573498
push dword [ebp - 0x210]
call edi
push 0xa
push str.Both
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret