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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626718
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.005fbaba
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fbacd
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x50df8b
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fbacd
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x50df8b
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0
call fcn.00519020
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.0050e790
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jne 0x50e07a
mov edx, dword [0x6cc708]
mov dword [ebp + 8], edx
lea eax, [esi + 0x43e]
lea ecx, [ebp + 8]
push eax
push eax
mov eax, dword [0x6d19b0]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.005fb90b
mov edx, dword [0x6d2290]
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 0x50e058
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.0050e790
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
call fcn.00602ad6
jmp 0x50e07a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00602ad6
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.0050d870
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d870
mov ecx, dword [0x6d12c4]
mov eax, dword [0x6d1e8c]
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 0x50e263
cmp edi, 2
je 0x50e19b
mov edx, dword [0x6cc708]
mov dword [ebp + 8], edx
mov eax, dword [0x6d12c4]
mov byte [ebp - 4], 6
test eax, eax
mov eax, str.CURRENT_USER
jne 0x50e0f7
mov eax, str.MACHINE
mov ecx, dword [0x6d1e8c]
lea edx, [ebp + 8]
push ecx
push eax
push 0x6a0c6c
push edx
call fcn.005fb90b
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.0050d920
test eax, eax
je 0x50e14d
mov eax, dword [0x6d12c4]
mov edx, dword [0x6d1e8c]
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 0x50e18f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0050d9e0
test eax, eax
je 0x50e18f
mov ecx, dword [0x6d12c4]
mov eax, dword [0x6d1e8c]
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.00602ad6
test edi, edi
je 0x50e263
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x50e263
mov eax, dword [0x6cc708]
mov dword [ebp + 8], eax
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea ecx, [ebp + 8]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 7
call fcn.005fb90b
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.0050d920
test eax, eax
je 0x50e257
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x50e257
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00602ad6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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.00602ad6
mov eax, dword [esi + 0x51c]
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x50e303
cmp ebx, 4
jne 0x50e303
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x50e2c9
mov eax, dword [esi + 8]
mov dword [esi + 0x514], 0
test eax, eax
je 0x50e2b4
push esi
call fcn.0050df20
add esp, 4
test eax, eax
jne 0x50e2d5
jmp 0x50e5be
push 0
push 0
push 0
push 0
push esi
push fcn.0050df20
call fcn.006030d4
jmp 0x50e2d5
test esi, esi
je 0x50e2d5
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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 0x50e3f9
cmp ebx, 0xc
ja case.0x50e40a.3
xor eax, eax
mov al, byte [ebx + 0x50e6b4]
jmp dword [eax*4 + 0x50e6a8]
mov edx, dword [0x6d1ad0]
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 0x50e3b9
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50e3b9
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.005e7c09
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 0x50e4a5
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.0x50e40a.3
mov eax, dword [0x6d1ad0]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x50e4eb
cmp ebx, 0xc
ja case.0x50e40a.3
xor edx, edx
mov dl, byte [ebx + 0x50e6d4]
jmp dword [edx*4 + 0x50e6c4]
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 0x50e3b9
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50e3b9
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.005e7c09
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.0x50e40a.3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
jmp 0x50e4eb
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 0x50e578
test ebx, ebx
je 0x50e509
cmp ebx, 8
je 0x50e509
cmp ebx, 4
jne 0x50e578
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov dword [esi + 0x514], 0
je 0x50e53a
mov eax, dword [esi + 8]
test eax, eax
je 0x50e53a
push esi
call fcn.0050df20
add esp, 4
test eax, eax
jne 0x50e54d
jmp 0x50e5be
push 0
push 0
push 0
push 0
push esi
push fcn.0050df20
call fcn.006030d4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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 0x50e62a
cmp ebx, 8
jne 0x50e62a
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 0x50e5e9
push esi
call fcn.0050df20
add esp, 4
test eax, eax
jne 0x50e5fc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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.0050df20
call fcn.006030d4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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 0x50e643
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
jne 0x50e668
cmp ebx, 1
je 0x50e660
cmp ebx, 2
je 0x50e660
cmp ebx, 0xa
je 0x50e660
cmp ebx, 7
je 0x50e660
cmp ebx, 0xc
jne 0x50e668
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050d8b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050d8b0
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