Function at 0x434dd0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8a41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x531d28]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x124], ebx
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x120]
push eax
push 0x2001f
push esi
push str.SYSTEMCurrentControlSetServicesAdDog
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
mov dword [ebp - 0x120], esi
call edi
test eax, eax
jne 0x434f2e
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x118]
push edx
push str.DisplayName
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0x104
call fcn.0042c520
test eax, eax
jne 0x434f1d
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401fd0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.0040d510
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x434eff
push str.SUNWARD_AD_DOG
push ecx
call fcn.004d40cc
mov ecx, dword [ebp - 0x11c]
add esp, 8
test eax, eax
je 0x434eff
sub eax, ecx
cmp eax, 0xffffffff
je 0x434eff
lea eax, [ecx - 0x10]
mov dword [ebx + 0x1c0], 1
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434eeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x435043
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x435043
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434f1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x434f34
push esi
call ebx
xor esi, esi
jmp 0x434f34
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x120]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x120], 0
call edi
test eax, eax
jne 0x43503c
test esi, esi
je 0x434f67
push esi
call ebx
test eax, eax
mov esi, dword [ebp - 0x120]
mov dword [ebp - 0x120], esi
jne 0x43503c
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x118]
push edx
push str.BarClient
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x11c], 0x104
call fcn.0042c520
test eax, eax
jne 0x43503c
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401fd0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.0040d510
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x435008
push str.AD_ROOT.EXE
push ecx
call fcn.004d40cc
mov ecx, dword [ebp - 0x11c]
add esp, 8
test eax, eax
je 0x435008
sub eax, ecx
cmp eax, 0xffffffff
je 0x435008
mov edx, dword [ebp - 0x124]
mov dword [edx + 0x1c0], 1
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43503c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x43503c
test esi, esi
je 0x435043
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004d40be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret