Function at 0x423620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab316
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.00459150
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push 0x26
push str.5D8D889E_7632_4997_9133_907E494CB570
call fcn.00407a30
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x268]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4237a9
push 0x1b
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.ElephantPDF_Shell_Extension
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00407a30
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x230]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x423740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423760
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x4c94e4
push dword [ebp - 0x268]
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4237a9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407b30
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x423904
push 0
lea ecx, [ebp - 0x264]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.InprocServer32
push eax
call esi
test eax, eax
jne 0x4238e9
cmp dword [0x4d6a60], eax
jne 0x4237ea
call fcn.0040bbf0
mov ecx, dword [0x4d6a60]
call fcn.0043a004
push eax
lea ecx, [ebp - 0x260]
call fcn.004078d0
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a0d0
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x260]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x423832
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423850
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x4c94e4
push dword [ebp - 0x264]
call edi
movups xmm0, xmmword [str.Apartment]
mov eax, dword [0x4b2880]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x208], eax
lea edx, [ecx + 2]
movups xmmword [ebp - 0x218], xmm0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4238a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x264]
call edi
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4238e9
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407b30
mov eax, dword [ebp - 0x264]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4238fc
push eax
call esi
push dword [ebp - 0x268]
call esi
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x423922
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434840
mov esp, ebp
pop ebp
ret 4