Function at 0x433890
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x52bd18]
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 0x4339ee
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.0042b320
test eax, eax
jne 0x4339dd
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401fd0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.0040d620
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4339bf
push str.SUNWARD_AD_DOG
push ecx
call fcn.004ce191
mov ecx, dword [ebp - 0x11c]
add esp, 8
test eax, eax
je 0x4339bf
sub eax, ecx
cmp eax, 0xffffffff
je 0x4339bf
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 0x4339ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x433b03
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433b03
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 0x4339dd
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 0x4339f4
push esi
call ebx
xor esi, esi
jmp 0x4339f4
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 0x433afc
test esi, esi
je 0x433a27
push esi
call ebx
test eax, eax
mov esi, dword [ebp - 0x120]
mov dword [ebp - 0x120], esi
jne 0x433afc
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.0042b320
test eax, eax
jne 0x433afc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401fd0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.0040d620
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x433ac8
push str.AD_ROOT.EXE
push ecx
call fcn.004ce191
mov ecx, dword [ebp - 0x11c]
add esp, 8
test eax, eax
je 0x433ac8
sub eax, ecx
cmp eax, 0xffffffff
je 0x433ac8
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 0x433afc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x433afc
test esi, esi
je 0x433b03
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004ce183
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret