Function at 0x51d760
Capabilities:
Delete registry value
Set registry value
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x657448
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10c]
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x1d], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0043c1d0
lea ecx, [ebp - 0x1c]
call fcn.0043b950
cmp eax, 0x7dc
jle 0x51d7de
lea ecx, [ebp - 0x1c]
call fcn.0043b9b0
cmp eax, 7
jle 0x51d7de
mov byte [ebp - 0x1d], 1
mov dword [ebp - 4], edi
jmp 0x51d7f3
call fcn.0052b1c0
mov edi, eax
push 0x100
push 0
lea ecx, [ebp]
push ecx
call fcn.0061d9e0
add esp, 0xc
push edi
push 0x100
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0051c700
mov dword [ebp - 0x28], eax
cmp eax, 0xb
jne 0x51d8c9
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 3
lea eax, [esi + 0x43e]
push eax
push eax
mov eax, dword [0x75c67c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f70
add esp, 0x10
push 0x1004
mov edx, dword [0x75bd98]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00472580
add esp, 0x10
cmp eax, 6
jne 0x51d8b3
mov dword [esi + 0x520], 0
push 0x100
push 0
lea ecx, [ebp]
push ecx
call fcn.0061d9e0
add esp, 0xc
push edi
push 0x100
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0051c700
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402570
jmp 0x51d8f9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402570
mov eax, 0xb
jmp 0x51deb4
cmp eax, 3
jne 0x51d8f9
test edi, edi
jne 0x51d8f9
push 0x100
push edi
lea eax, [ebp]
push eax
call fcn.0061d9e0
add esp, 0xc
push 1
push 0x100
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0051c700
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
call fcn.0051b590
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b590
mov byte [ebp - 4], 5
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [0x75c19c]
push eax
mov ecx, dword [0x75aba4]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call ebx
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x51dae0
cmp edi, 2
je 0x51da24
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 6
cmp dword [0x75aba4], 0
mov eax, str.CURRENT_USER
jne 0x51d978
mov eax, str.MACHINE
mov edx, dword [0x75c19c]
push edx
push eax
push 0x678c08
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0051b680
test eax, eax
je 0x51d9d2
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [0x75c19c]
push eax
mov ecx, dword [0x75aba4]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call ebx
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x51da18
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x38]
call fcn.0051b750
test eax, eax
je 0x51da18
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [0x75c19c]
push ecx
mov edx, dword [0x75aba4]
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call ebx
mov edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00402570
test edi, edi
je 0x51dae0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
test eax, eax
je 0x51dae0
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 7
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push str.CURRENT_USER_s
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0051b680
test eax, eax
je 0x51dad4
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
test eax, eax
je 0x51dad4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
or eax, 0xffffffff
jmp 0x51deb4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00402570
mov ebx, dword [ebp - 0x28]
cmp dword [esi + 0x51c], 0
je 0x51db89
cmp ebx, 4
jne 0x51db89
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x518], 0
je 0x51db7d
mov dword [esi + 0x514], 0
cmp dword [esi + 8], 0
je 0x51db48
push esi
call fcn.0051d760
add esp, 4
test eax, eax
jne 0x51db5b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
xor eax, eax
jmp 0x51deb4
push 0
push 0
push 0
push 0
push esi
push fcn.0051d760
call fcn.005fcc94
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
mov eax, 4
jmp 0x51deb4
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx]
call eax
jmp 0x51db5b
cmp byte [ebp - 0x1d], 0
je 0x51dc71
cmp ebx, 0xc
ja case.0x51dc81.4
movzx ecx, byte [ebx + 0x51df00]
jmp dword [ecx*4 + 0x51def4]
push 0x100
lea edx, [ebp]
push edx
push 0
push 0
mov eax, dword [0x75c55c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
cmp dword [esi + 0x50c], 0
jle 0x51dd18
cmp dword [esi + 0x510], 0
jle 0x51dd18
mov ecx, dword [esi + 0x510]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x18], ecx
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
push str.Version
mov eax, dword [ebp - 0x14]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call fcn.00620aa1
add esp, 4
mov ecx, dword [ebp - 0x24]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
push 0
push str.Version32
mov edx, dword [ebp - 0x14]
push edx
call edi
jmp case.0x51dc81.4
push 0x100
lea edx, [ebp]
push edx
push 0
push 0
mov eax, dword [0x75c55c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
jmp 0x51dd64
cmp ebx, 0xc
ja case.0x51dc81.4
movzx edx, byte [ebx + 0x51df20]
jmp dword [edx*4 + 0x51df10]
push 0x100
lea eax, [ebp]
push eax
push 0
push 0
push str.MData
mov ecx, dword [ebp - 0x14]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
cmp dword [esi + 0x50c], 0
jle 0x51dd18
cmp dword [esi + 0x510], 0
jle 0x51dd18
mov ecx, dword [esi + 0x510]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x24], ecx
push 4
lea edx, [ebp - 0x24]
push edx
push 4
push 0
push str.Version
mov eax, dword [ebp - 0x14]
push eax
call edi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00620aa1
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
jmp 0x51dc3e
push str.Version
mov eax, dword [ebp - 0x14]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call edi
push str.Version32
mov ecx, dword [ebp - 0x14]
push ecx
call edi
jmp case.0x51dc81.4
push 0x100
lea edx, [ebp]
push edx
push 0
push 0
push str.MData
mov eax, dword [ebp - 0x14]
push eax
jmp 0x51dd64
push 0x100
lea ecx, [ebp]
push ecx
push 0
push 0
push str.MData
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esi + 0x518], 0
je 0x51dde3
test ebx, ebx
je 0x51dd81
cmp ebx, 8
je 0x51dd81
cmp ebx, 4
jne 0x51dde3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x514], 0
test ebx, ebx
je 0x51ddb1
cmp dword [esi + 8], 0
je 0x51ddb1
push esi
call fcn.0051d760
add esp, 4
test eax, eax
jne 0x51ddc4
jmp 0x51db29
push 0
push 0
push 0
push 0
push esi
push fcn.0051d760
call fcn.005fcc94
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
mov eax, ebx
jmp 0x51deb4
cmp dword [esi + 0x51c], 0
jne 0x51de56
cmp ebx, 8
jne 0x51de56
mov eax, 1
mov dword [esi + 0x51c], eax
mov dword [esi + 0x514], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 8], 0
je 0x51de24
push esi
call fcn.0051d760
add esp, 4
test eax, eax
jne 0x51de37
jmp 0x51db29
push 0
push 0
push 0
push 0
push esi
push fcn.0051d760
call fcn.005fcc94
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
mov eax, 8
jmp 0x51deb4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esi + 8]
mov eax, dword [esi]
push 1
mov ecx, esi
mov edx, dword [eax]
call edx
test edi, edi
jne 0x51de92
cmp ebx, 1
je 0x51de8a
cmp ebx, 2
je 0x51de8a
cmp ebx, 0xa
je 0x51de8a
cmp ebx, 7
je 0x51de8a
cmp ebx, 0xc
jne 0x51de92
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0051b5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051b5f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x104
mov esp, ebp
pop ebp
ret