Function at 0x42c670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 4], 0
call fcn.00483565
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x494]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x42c6fb
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x494]
cmp dl, 0x5c
mov byte [ebp + eax - 0x114], dl
jne 0x42c6f8
cmp eax, 2
jge 0x42c6fb
inc eax
jmp 0x42c6d8
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x42c716
mov cl, byte [ebp + edx - 0x494]
mov byte [ebp + edx - 0x594], cl
inc edx
jmp 0x42c701
mov byte [ebp + edi - 0x594], 0
xor esi, esi
cmp esi, eax
jge 0x42c747
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x493]
cmp dl, 0x5c
je 0x42c73c
mov byte [ebp + esi - 0x114], dl
jne 0x42c744
mov byte [ebp + esi - 0x114], 0
inc esi
jmp 0x42c720
mov byte [ebp + eax - 0x114], 0
lea edi, [ebp - 0x594]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x494]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp + eax - 0x494]
cmp cl, 0x5c
je 0x42c790
mov byte [ebp + eax - 0x194], cl
inc eax
jmp 0x42c77a
mov byte [ebp + eax - 0x194], 0
inc eax
xor edx, edx
mov cl, byte [ebp + eax - 0x494]
test cl, cl
je 0x42c7b1
mov byte [ebp + edx - 0x294], cl
inc eax
inc edx
jmp 0x42c79b
lea ecx, [ebp - 0x194]
push str.HKCU
push ecx
mov byte [ebp + edx - 0x294], 0
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42c8fb
push 0x200
call fcn.0047afc7
add esp, 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push edx
call fcn.0042c0f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push 0x57d044
push reloc.WS2_32.dll_closesocket
call esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
add edx, 0x100
push ecx
push 0xf003f
push 0
push edx
push eax
call esi
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0xf003f
lea edx, [ebp - 0x294]
push 0
push edx
push eax
call esi
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x42c8a8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
dec ecx
push ecx
push esi
push 1
lea ecx, [ebp - 0x114]
push eax
push ecx
push edx
call ebx
lea eax, [ebp - 0x114]
push str.default
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42c8ae
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 1
push eax
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0047afbc
add esp, 4
jmp 0x42c904
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call fcn.0047afbc
add esp, 4
jmp 0x42c904
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x194]
push str.HKCR
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42c986
lea ecx, [ebp + 8]
lea edx, [ebp - 0x294]
push ecx
push 0xf003f
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c986
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 1
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
call ebx
lea edx, [ebp - 0x114]
push str.default
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42c986
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [ebp + 8]
push eax
call ebx
lea ecx, [ebp - 0x194]
push str.HKLM
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42ca08
lea edx, [ebp + 8]
push edx
push 0xf003f
push eax
lea eax, [ebp - 0x294]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ca08
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 8]
not ecx
dec ecx
push ecx
push esi
push 1
lea ecx, [ebp - 0x114]
push eax
push ecx
push edx
call ebx
lea eax, [ebp - 0x114]
push str.default
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42ca08
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 1
push eax
push eax
push ecx
call ebx
mov edi, 0x49c3e4
lea eax, [ebp - 0x194]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42ca37
test cl, cl
je 0x42ca33
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42ca37
add eax, 2
add edi, 2
test cl, cl
jne 0x42ca13
xor eax, eax
jmp 0x42ca3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42caab
lea eax, [ebp + 8]
lea ecx, [ebp - 0x294]
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42caab
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0x114]
push ecx
push esi
push 1
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call ebx
lea ecx, [ebp - 0x114]
push str.default
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42caab
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 8]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push eax
push edx
call ebx
mov edi, str.HKEY_CURRENT_CONFIG
lea eax, [ebp - 0x194]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42cada
test cl, cl
je 0x42cad6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42cada
add eax, 2
add edi, 2
test cl, cl
jne 0x42cab6
xor eax, eax
jmp 0x42cadf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42cb4e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x294]
push eax
push 0xf003f
push 0
push ecx
push getsockopt
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42cb4e
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0x114]
push ecx
push esi
push 1
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call ebx
lea ecx, [ebp - 0x114]
push str.default
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42cb4e
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 8]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push eax
push edx
call ebx
mov edi, str.HKEY_DYN_DATA
lea eax, [ebp - 0x194]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42cb7d
test cl, cl
je 0x42cb79
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42cb7d
add eax, 2
add edi, 2
test cl, cl
jne 0x42cb59
xor eax, eax
jmp 0x42cb82
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42cbf1
lea eax, [ebp + 8]
lea ecx, [ebp - 0x294]
push eax
push 0xf003f
push 0
push ecx
push getsockopt
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42cbf1
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0x114]
push ecx
push esi
push 1
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call ebx
lea ecx, [ebp - 0x114]
push str.default
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x42cbf1
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 8]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push eax
push edx
call ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret