Function at 0x40d4f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bbf6
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x616a64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1f0
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00565ca0
movups xmm0, xmmword [0x60b0bc]
lea ecx, [ebp - 0x218]
add esp, 0xc
add ecx, 0xfffffffe
movups xmmword [ebp - 0x218], xmm0
movq xmm0, qword [0x60b0cc]
movq qword [ebp - 0x208], xmm0
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d560
mov eax, dword [0x60bd48]
mov dword [ecx], eax
mov eax, dword [0x60bd4c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x650]
call fcn.004163d1
lea ecx, [ebp - 0x650]
mov dword [ebp - 4], 0
call fcn.00416420
test eax, eax
jne 0x40d63c
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00565ca0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00565ca0
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x60bd50
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str.__s___s
push eax
call fcn.00403f70
add esp, 0x10
lea eax, [ebp - 0x644]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40d666
push 0x60bddc
push 0
call fcn.004130c3
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x650]
call fcn.004163e6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f3e9
mov esp, ebp
pop ebp
ret
push 0xb
xor eax, eax
mov dword [ebp - 0x630], 0
push 0x60b0bc
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
call fcn.004030d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x62c]
mov eax, edx
mov ecx, dword [ebp - 0x630]
sub eax, ecx
cmp eax, 3
jb 0x40d6e2
cmp edx, 8
lea esi, [ebp - 0x640]
push 6
cmovae esi, dword [ebp - 0x640]
lea edi, [ecx + 3]
push 0x60bdf0
mov dword [ebp - 0x630], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00565720
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40d703
push 3
push 0x60bdf0
mov byte [ebp - 0x648], 0
lea ecx, [ebp - 0x640]
push dword [ebp - 0x648]
push 3
call fcn.004036a0
lea edx, [ebp - 0x420]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d710
sub edx, ecx
lea ecx, [ebp - 0x640]
sar edx, 1
cmp dword [ebp - 0x62c], 8
cmovae ecx, dword [ebp - 0x640]
lea eax, [edx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push ecx
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x60bdf8
push 0
call fcn.004130c3
mov edx, dword [ebp - 0x62c]
add esp, 8
mov esi, 1
cmp edx, 8
jb 0x40d7af
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7d1
push edx
push ecx
call fcn.0055f42f
add esp, 8
xor eax, eax
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
jmp 0x40d63e
call fcn.00568f31
int3