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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6276e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 4], 1
call fcn.005fca1a
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fca2d
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x50ecdb
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fca2d
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x50ecdb
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0
call fcn.00519f40
mov esi, dword [ebp + 8]
mov ebx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x144]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x144]
push 0x100
push ecx
mov ecx, esi
call fcn.0050f4e0
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jne 0x50edca
mov edx, dword [0x6cd768]
mov dword [ebp + 8], edx
lea eax, [esi + 0x43e]
lea ecx, [ebp + 8]
push eax
push eax
mov eax, dword [0x6d2a18]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.005fc86b
mov edx, dword [0x6d32f8]
mov eax, dword [ebp + 8]
add esp, 0x10
push 0x1004
push edx
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x50eda8
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x144]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x144]
push 0x100
push ecx
mov ecx, esi
mov dword [esi + 0x520], 0
call fcn.0050f4e0
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
call fcn.00603a3c
jmp 0x50edca
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
call fcn.0050e5b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5b0
mov ecx, dword [0x6d2324]
mov eax, dword [0x6d2ef4]
lea edx, [ebp - 0x14]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
neg ecx
push 0
push 0
sbb ecx, ecx
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
mov byte [ebp - 4], 5
call ebx
mov edi, eax
test edi, edi
je 0x50efb3
cmp edi, 2
je 0x50eeeb
mov edx, dword [0x6cd768]
mov dword [ebp + 8], edx
mov eax, dword [0x6d2324]
mov byte [ebp - 4], 6
test eax, eax
mov eax, str.CURRENT_USER
jne 0x50ee47
mov eax, str.MACHINE
mov ecx, dword [0x6d2ef4]
lea edx, [ebp + 8]
push ecx
push eax
push 0x6a1c6c
push edx
call fcn.005fc86b
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.0050e660
test eax, eax
je 0x50ee9d
mov eax, dword [0x6d2324]
mov edx, dword [0x6d2ef4]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
neg eax
push 0xf003f
push 0
sbb eax, eax
push 0
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x50eedf
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0050e720
test eax, eax
je 0x50eedf
mov ecx, dword [0x6d2324]
mov eax, dword [0x6d2ef4]
lea edx, [ebp - 0x14]
push 0
push edx
push 0
neg ecx
push 0xf003f
push 0
sbb ecx, ecx
push 0
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call ebx
mov edi, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00603a3c
test edi, edi
je 0x50efb3
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x50efb3
mov eax, dword [0x6cd768]
mov dword [ebp + 8], eax
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
lea ecx, [ebp + 8]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 7
call fcn.005fc86b
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.0050e660
test eax, eax
je 0x50efa7
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x50efa7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00603a3c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00603a3c
mov eax, dword [esi + 0x51c]
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x50f053
cmp ebx, 4
jne 0x50f053
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x50f019
mov eax, dword [esi + 8]
mov dword [esi + 0x514], 0
test eax, eax
je 0x50f004
push esi
call fcn.0050ec70
add esp, 4
test eax, eax
jne 0x50f025
jmp 0x50f30e
push 0
push 0
push 0
push 0
push esi
push fcn.0050ec70
call fcn.0060403a
jmp 0x50f025
test esi, esi
je 0x50f025
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x15]
test al, al
je 0x50f149
cmp ebx, 0xc
ja case.0x50f15a.3
xor eax, eax
mov al, byte [ebx + 0x50f404]
jmp dword [eax*4 + 0x50f3f8]
mov edx, dword [0x6d2b38]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x144]
push 0x100
push ecx
push 0
push 0
push edx
push eax
call edi
mov eax, dword [esi + 0x50c]
test eax, eax
jle 0x50f109
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50f109
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
lea eax, [ebp + 8]
sar edx, 0x10
mov ecx, edx
push eax
shr ecx, 0x1f
push 4
push 0
lea edx, [edx + ecx + 1]
mov ecx, dword [ebp - 0x14]
push str.Version
push ecx
mov dword [ebp + 8], edx
call edi
lea edx, [ebp - 0x20]
push edx
call fcn.005e8a29
mov ecx, dword [ebp - 0x20]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
push 4
shr eax, 0x1f
add edx, eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], edx
jmp 0x50f1f5
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Version
push eax
call edi
mov ecx, dword [ebp - 0x14]
push str.Version32
push ecx
call edi
jmp case.0x50f15a.3
mov eax, dword [0x6d2b38]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x50f23b
cmp ebx, 0xc
ja case.0x50f15a.3
xor edx, edx
mov dl, byte [ebx + 0x50f424]
jmp dword [edx*4 + 0x50f414]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x144]
push 0x100
push eax
push 0
push 0
push str.MData
push ecx
call edi
mov eax, dword [esi + 0x50c]
test eax, eax
jle 0x50f109
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50f109
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push edx
push 4
push 0
push str.Version
push eax
call edi
lea ecx, [ebp - 0x44]
push ecx
call fcn.005e8a29
mov ecx, dword [ebp - 0x44]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
push 4
shr eax, 0x1f
add edx, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
push ecx
push 4
push 0
push str.Version32
push edx
call edi
jmp case.0x50f15a.3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
jmp 0x50f23b
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x144]
push 0x100
push ecx
push 0
push 0
push str.MData
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x50f2c8
test ebx, ebx
je 0x50f259
cmp ebx, 8
je 0x50f259
cmp ebx, 4
jne 0x50f2c8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov dword [esi + 0x514], 0
je 0x50f28a
mov eax, dword [esi + 8]
test eax, eax
je 0x50f28a
push esi
call fcn.0050ec70
add esp, 4
test eax, eax
jne 0x50f29d
jmp 0x50f30e
push 0
push 0
push 0
push 0
push esi
push fcn.0050ec70
call fcn.0060403a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x51c]
test eax, eax
jne 0x50f37a
cmp ebx, 8
jne 0x50f37a
mov ecx, dword [ebp - 0x14]
mov eax, 1
push ecx
mov dword [esi + 0x51c], eax
mov dword [esi + 0x514], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
test eax, eax
je 0x50f339
push esi
call fcn.0050ec70
add esp, 4
test eax, eax
jne 0x50f34c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push esi
push fcn.0050ec70
call fcn.0060403a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esi + 8]
test esi, esi
je 0x50f393
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
jne 0x50f3b8
cmp ebx, 1
je 0x50f3b0
cmp ebx, 2
je 0x50f3b0
cmp ebx, 0xa
je 0x50f3b0
cmp ebx, 7
je 0x50f3b0
cmp ebx, 0xc
jne 0x50f3b8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050e5f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050e5f0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret