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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626b58
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.005fa8aa
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fa8bd
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x50d4fb
push 0
lea ecx, [ebp - 0x1c]
call fcn.005fa8bd
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x50d4fb
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0
call fcn.00518440
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.0050dd00
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jne 0x50d5ea
mov edx, dword [0x6f175c]
mov dword [ebp + 8], edx
lea eax, [esi + 0x43e]
lea ecx, [ebp + 8]
push eax
push eax
mov eax, dword [0x6f69f8]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.005fa6fb
mov edx, dword [0x6f72d8]
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 0x50d5c8
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.0050dd00
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
call fcn.006018cc
jmp 0x50d5ea
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.006018cc
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.0050cde0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050cde0
mov ecx, dword [0x6f6334]
mov eax, dword [0x6f6ed4]
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 0x50d7d3
cmp edi, 2
je 0x50d70b
mov edx, dword [0x6f175c]
mov dword [ebp + 8], edx
mov eax, dword [0x6f6334]
mov byte [ebp - 4], 6
test eax, eax
mov eax, str.CURRENT_USER
jne 0x50d667
mov eax, str.MACHINE
mov ecx, dword [0x6f6ed4]
lea edx, [ebp + 8]
push ecx
push eax
push 0x6c5c64
push edx
call fcn.005fa6fb
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.0050ce90
test eax, eax
je 0x50d6bd
mov eax, dword [0x6f6334]
mov edx, dword [0x6f6ed4]
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 0x50d6ff
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0050cf50
test eax, eax
je 0x50d6ff
mov ecx, dword [0x6f6334]
mov eax, dword [0x6f6ed4]
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.006018cc
test edi, edi
je 0x50d7d3
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 0x50d7d3
mov eax, dword [0x6f175c]
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.005fa6fb
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.0050ce90
test eax, eax
je 0x50d7c7
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 0x50d7c7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.006018cc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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.006018cc
mov eax, dword [esi + 0x51c]
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x50d873
cmp ebx, 4
jne 0x50d873
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x50d839
mov eax, dword [esi + 8]
mov dword [esi + 0x514], 0
test eax, eax
je 0x50d824
push esi
call fcn.0050d490
add esp, 4
test eax, eax
jne 0x50d845
jmp 0x50db2e
push 0
push 0
push 0
push 0
push esi
push fcn.0050d490
call fcn.00601eca
jmp 0x50d845
test esi, esi
je 0x50d845
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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 0x50d969
cmp ebx, 0xc
ja case.0x50d97a.3
xor eax, eax
mov al, byte [ebx + 0x50dc24]
jmp dword [eax*4 + 0x50dc18]
mov edx, dword [0x6f6b18]
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 0x50d929
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50d929
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.005e6a09
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 0x50da15
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.0x50d97a.3
mov eax, dword [0x6f6b18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x50da5b
cmp ebx, 0xc
ja case.0x50d97a.3
xor edx, edx
mov dl, byte [ebx + 0x50dc44]
jmp dword [edx*4 + 0x50dc34]
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 0x50d929
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x50d929
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.005e6a09
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.0x50d97a.3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
jmp 0x50da5b
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 0x50dae8
test ebx, ebx
je 0x50da79
cmp ebx, 8
je 0x50da79
cmp ebx, 4
jne 0x50dae8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov dword [esi + 0x514], 0
je 0x50daaa
mov eax, dword [esi + 8]
test eax, eax
je 0x50daaa
push esi
call fcn.0050d490
add esp, 4
test eax, eax
jne 0x50dabd
jmp 0x50db2e
push 0
push 0
push 0
push 0
push esi
push fcn.0050d490
call fcn.00601eca
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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 0x50db9a
cmp ebx, 8
jne 0x50db9a
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 0x50db59
push esi
call fcn.0050d490
add esp, 4
test eax, eax
jne 0x50db6c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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.0050d490
call fcn.00601eca
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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 0x50dbb3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
jne 0x50dbd8
cmp ebx, 1
je 0x50dbd0
cmp ebx, 2
je 0x50dbd0
cmp ebx, 0xa
je 0x50dbd0
cmp ebx, 7
je 0x50dbd0
cmp ebx, 0xc
jne 0x50dbd8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0050ce20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0050ce20
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