Function at 0x515e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575221
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5d6b80]
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
movdqu xmm0, xmmword [str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF]
mov ax, word [0x58f3c8]
mov word [ebp - 0x18], ax
movdqu xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x16], 0
movdqu xmm0, xmmword [0x58f390]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
movdqu xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x7c], 0
movdqu xmm0, xmmword [0x58f3a0]
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmm0, xmmword [0x58f3b0]
movdqu xmmword [ebp - 0x30], xmm0
movq xmm0, qword [0x58f3c0]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x515f2d
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x88], eax
push dword [0x5d682c]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push dword [0x5d6814]
push 0x57e340
push eax
call fcn.0045acb0
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
add esp, 0x10
push 0xf003f
push edi
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x516007
lea eax, [ebp - 0x88]
push eax
push reloc.WS2_32.dll_accept
call fcn.00513fd0
add esp, 8
test eax, eax
je 0x515fbd
lea edx, [ebp - 0x60]
lea ecx, [ebx + 0x124]
lea ebx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x515fb0
jmp 0x515fee
push 0xf003f
push edi
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x84]
call fcn.0045b220
test eax, eax
je 0x516007
lea edx, [ebp - 0x60]
lea ecx, [ebx + 0x124]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x515fe3
sub edx, ebx
lea eax, [ebp - 0x60]
sar edx, 1
push edx
push eax
call fcn.0045b6e0
mov ebx, dword [ebp - 0x84]
jmp 0x5161dc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x27
push eax
lea eax, [ebp - 0x60]
push eax
push dword [0x5d64d8]
lea ecx, [ebp - 0x84]
call fcn.0045d730
test eax, eax
jne 0x516060
cmp dword [ebp - 0x78], eax
jbe 0x516060
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebx + 0x124]
call fcn.0045a5f0
mov ebx, dword [ebp - 0x84]
test ebx, ebx
je 0x516054
push ebx
call esi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], 0
jmp 0x5161dc
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51607c
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c], esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x27
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
add ebx, 0x124
test eax, eax
je 0x516146
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.0045a5f0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x74], eax
dec eax
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0046bd70
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0045a580
mov edx, dword [ebp - 0x78]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x74]
mov ecx, ebx
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0045b030
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0045a580
mov edx, dword [ebp - 0x74]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51615a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51615a
call fcn.00528368
push eax
push 0x57be54
push ebx
call fcn.0045acb0
add esp, 0xc
mov edx, dword [ebx]
xor eax, eax
mov ebx, dword [ebp - 0x84]
test edx, edx
setne al
test eax, eax
je 0x51619e
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x516175
sub ecx, dword [ebp - 0x74]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.tbnguid
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x5161b1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x84], ebx
add esi, 0xfffffff0
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5161d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5161fa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x516201
push ebx
call esi
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.00525878
mov esp, ebp
pop ebp
ret