Function at 0x412cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c101f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x64b9b0]
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 dword [ebp - 0x3c], ebx
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x38]
mov esi, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x38], 0
call fcn.00412bc0
add esp, 4
test eax, eax
je 0x412d20
cmp dword [ebp - 0x38], 0
je 0x412f6c
inc dword [esi]
jmp 0x412f6c
inc dword [esi]
inc dword [edi]
mov ecx, dword [ebx]
call fcn.00412f90
mov edx, ebx
lea ecx, [ebp - 0x34]
call fcn.004124b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.00413070
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov edx, dword [ebx]
call fcn.004131b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x30]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x48], 0
call fcn.0040d230
push fcn.004032d0
push 2
push 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.0057bbf1
mov esi, dword [ebp - 0x50]
or edi, 0xffffffff
mov ebx, dword [ebp - 0x4c]
cmp esi, ebx
je 0x412ea6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov edx, dword [esi]
push str.ProgId
push dword [ebp - 0x34]
call fcn.00411a80
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x665ef0]
cmp eax, dword [ecx + 4]
jle 0x412e06
push 0x665ef0
call fcn.0057baba
add esp, 4
cmp dword [0x665ef0], 0xffffffff
jne 0x412e06
mov byte [ebp - 4], 5
call fcn.00411b60
push 0x665ef0
mov dword [0x665ee4], eax
call fcn.0057ba7b
add esp, 4
cmp dword [0x665ee4], 0
je 0x412e9b
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push dword [ebp - 0x3c]
mov edx, 0x623340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.00414570
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, dword [eax]
call fcn.00415d60
mov byte [ebp - 4], 6
add esp, 8
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [esi]
cmovae eax, dword [ebp - 0x28]
push str.Hash
push eax
call fcn.00411a80
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412e9b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408b70
add esi, 4
cmp esi, ebx
jne 0x412db6
xor esi, esi
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
mov edx, dword [eax]
call fcn.00413110
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push dword [eax]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412ef4
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x54]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412f0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x29]
push eax
push 0
push 0
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x412f2d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x412f4d
push ebx
push eax
call fcn.004082c0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
sub ecx, eax
sar ecx, 2
push ecx
push eax
call fcn.004088f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x412f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0057b967
mov esp, ebp
pop ebp
ret