Function at 0x475820
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x6a55b0]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
jne 0x475b3d
mov edx, dword [0x6d2354]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push ebx
push str.ptrk_scdt
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x475b0b
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esp
mov eax, esp
push edx
push ebx
mov dword [eax], ecx
call fcn.005e8a29
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.0045f7d0
mov ecx, eax
call fcn.0045f7e0
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
jns 0x4758c9
cmp edx, 0xffffff9c
jge 0x475b3d
lea ecx, [ebp - 0x14]
push ecx
call fcn.005e8a29
mov eax, dword [0x6d2320]
add esp, 4
cmp eax, ebx
mov eax, dword [ebp - 0x14]
je 0x4758e8
add eax, 0x3b5380
jmp 0x4758ed
add eax, 0x4f1a00
lea edx, [ebp - 0x14]
push 4
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x6d2354]
push ebx
push ebx
push str.ptrk_scdt
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x475b3d
lea ecx, [ebp - 0x34]
call fcn.0050e5b0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0050e5b0
mov eax, dword [0x6d2324]
mov edx, dword [0x6d2ef4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push ebx
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x475a18
cmp esi, 2
je 0x475a14
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x6d2324]
mov byte [ebp - 4], 3
cmp eax, ebx
mov eax, str.CURRENT_USER
jne 0x475980
mov eax, str.MACHINE
mov edx, dword [0x6d2ef4]
push edx
push eax
lea eax, [ebp - 0x1c]
push 0x6a1c6c
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
lea ecx, [ebp - 0x34]
call fcn.0050e660
cmp eax, ebx
je 0x4759ce
mov ecx, dword [0x6d2324]
mov eax, dword [0x6d2ef4]
lea edx, [ebp - 0x18]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push ebx
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x475a08
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push edx
call fcn.0050e720
cmp eax, ebx
je 0x475a08
mov edx, dword [0x6d2324]
mov ecx, dword [0x6d2ef4]
lea eax, [ebp - 0x18]
neg edx
push eax
push 0xf003f
sbb edx, edx
push ebx
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00603a3c
cmp esi, ebx
jne 0x475a31
mov eax, dword [ebp - 0x18]
push str.MData
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x18]
push edx
push 0xf003f
push ebx
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
cmp esi, ebx
je 0x475aac
cmp esi, 2
je 0x475aa8
mov eax, dword [0x6cd768]
mov dword [ebp - 0x1c], eax
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
lea ecx, [ebp - 0x1c]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 4
call fcn.005fc86b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x44]
push edx
call fcn.0050e660
cmp eax, ebx
je 0x475a9c
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00603a3c
cmp esi, ebx
jne 0x475ac5
mov ecx, dword [ebp - 0x18]
push str.MData
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
push ebx
push 0x139f
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0050e5f0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0050e5f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
push edx
call fcn.005e8a29
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp - 0x14]
add ecx, 0x3f480
push 4
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x6d2354]
push ebx
push ebx
push str.ptrk_scdt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret