Function at 0x50b3b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
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.005f383a
push 0
lea ecx, [ebp - 0x1c]
call fcn.005f384d
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x50b41b
push 0
lea ecx, [ebp - 0x1c]
call fcn.005f384d
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x50b41b
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0
call fcn.00515db0
mov ebx, dword [ebp + 8]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x148]
push esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x148]
push 0x100
push ecx
mov ecx, ebx
call fcn.0050bc40
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jne 0x50b50a
mov edx, dword [0x6e7b6c]
mov dword [ebp + 8], edx
lea eax, [ebx + 0x43e]
lea ecx, [ebp + 8]
push eax
push eax
mov eax, dword [0x6ecd8c]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.005f368b
mov edx, dword [0x6ed66c]
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 0x50b4e8
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x148]
push esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x148]
push 0x100
push ecx
mov ecx, ebx
mov dword [ebx + 0x520], 0
call fcn.0050bc40
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
call fcn.005fa859
jmp 0x50b50a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.005fa859
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 - 0x34]
call fcn.0050ad00
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad00
mov ecx, dword [0x6ec774]
mov eax, dword [0x6ed268]
lea edx, [ebp - 0x14]
push 0
mov esi, 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 esi
mov edi, eax
test edi, edi
je 0x50b6f3
cmp edi, 2
je 0x50b62b
mov edx, dword [0x6e7b6c]
mov dword [ebp + 8], edx
mov eax, dword [0x6ec774]
mov byte [ebp - 4], 6
test eax, eax
mov eax, 0x6bf124
jne 0x50b587
mov eax, 0x6bf11c
mov ecx, dword [0x6ed268]
lea edx, [ebp + 8]
push ecx
push eax
push 0x6bcc6c
push edx
call fcn.005f368b
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
call fcn.0050adb0
test eax, eax
je 0x50b5dd
mov eax, dword [0x6ec774]
mov edx, dword [0x6ed268]
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 esi
mov edi, eax
test edi, edi
je 0x50b61f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0050ae70
test eax, eax
je 0x50b61f
mov ecx, dword [0x6ec774]
mov eax, dword [0x6ed268]
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 esi
mov edi, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.005fa859
test edi, edi
je 0x50b6f3
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6bf0d4
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x50b6f3
mov eax, dword [0x6e7b6c]
mov dword [ebp + 8], eax
push 0x6bf0d4
lea ecx, [ebp + 8]
push 0x6bf0c4
push ecx
mov byte [ebp - 4], 7
call fcn.005f368b
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x44]
push edx
call fcn.0050adb0
test eax, eax
je 0x50b6e7
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6bf0d4
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x50b6e7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.005fa859
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0050ad40
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.005fa859
lea ecx, [ebp - 0x24]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6bbf94
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x50b7db
mov ecx, dword [0x6ecfb4]
lea edx, [ebp + 8]
lea eax, [ebp - 0x17c]
push edx
mov edx, dword [ebp - 0x24]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp + 8], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50b7db
lea edx, [ebx + 0x470]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push 1
push eax
mov eax, dword [0x6ecfb0]
push eax
push ecx
call esi
lea edx, [ebx + 0x4a2]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [0x6ecfac]
push 1
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call esi
lea edx, [ebx + 0x4d4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x6ecfa8]
push edx
mov edx, dword [ebp - 0x24]
push 1
push eax
push ecx
push edx
call esi
lea edx, [ebx + 0x43e]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push 1
push eax
mov eax, dword [0x6ecfb4]
push eax
push ecx
call esi
jmp 0x50b7e1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebx + 0x51c]
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x50b82d
cmp edi, 4
jne 0x50b82d
test ebx, ebx
je 0x50b7ff
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0050ad40
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 0x50b927
cmp edi, 0xc
ja case.0x50b938.3
xor eax, eax
mov al, byte [edi + 0x50bb70]
jmp dword [eax*4 + 0x50bb64]
mov edx, dword [0x6eceac]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x148]
push 0x100
push ecx
push 0
push 0
push edx
push eax
call esi
mov eax, dword [ebx + 0x50c]
test eax, eax
jle 0x50b8e7
mov ecx, dword [ebx + 0x510]
test ecx, ecx
jle 0x50b8e7
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 0x6c26ac
push ecx
mov dword [ebp + 8], edx
call esi
lea edx, [ebp - 0x20]
push edx
call fcn.005df989
mov ecx, dword [ebp - 0x20]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
lea ecx, [ebp + 8]
shr eax, 0x1f
push 4
push ecx
add edx, eax
push 4
push 0
mov dword [ebp + 8], edx
push 0x6c26a0
jmp 0x50ba05
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x6c26ac
push eax
call esi
mov ecx, dword [ebp - 0x14]
push 0x6c26a0
push ecx
call esi
jmp case.0x50b938.3
mov eax, dword [0x6eceac]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x50ba09
cmp edi, 0xc
ja case.0x50b938.3
xor edx, edx
mov dl, byte [edi + 0x50bb90]
jmp dword [edx*4 + 0x50bb80]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x148]
push 0x100
push eax
push 0
push 0
push 0x6bf114
push ecx
call esi
mov eax, dword [ebx + 0x50c]
test eax, eax
jle 0x50b8e7
mov ecx, dword [ebx + 0x510]
test ecx, ecx
jle 0x50b8e7
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 0x6c26ac
push eax
call esi
lea ecx, [ebp - 0x48]
push ecx
call fcn.005df989
mov ecx, dword [ebp - 0x48]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
lea ecx, [ebp - 0x20]
shr eax, 0x1f
push 4
push ecx
add edx, eax
push 4
push 0
mov dword [ebp - 0x20], edx
push 0x6c26a0
jmp 0x50ba05
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push 0x100
push edx
push 0
push 0
push 0x6bf114
push eax
jmp 0x50ba09
lea ecx, [ebp - 0x148]
push 0x100
push ecx
push 0
push 0
push 0x6bf114
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebx + 0x518]
test eax, eax
je 0x50ba3a
test edi, edi
jne 0x50ba3a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
push ebx
push fcn.0050b3b0
mov dword [ebx + 0x514], edi
call fcn.005fae57
jmp 0x50ba79
mov eax, dword [ebx + 0x51c]
test eax, eax
jne 0x50bae5
cmp edi, 8
jne 0x50bae5
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x51c], 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 8]
test eax, eax
je 0x50baa4
push ebx
call fcn.0050b3b0
add esp, 4
test eax, eax
jne 0x50bab7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0050ad40
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 ebx
push fcn.0050b3b0
call fcn.005fae57
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0050ad40
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 esi, dword [ebx + 8]
test ebx, ebx
je 0x50bafe
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test esi, esi
jne 0x50bb23
cmp edi, 1
je 0x50bb1b
cmp edi, 2
je 0x50bb1b
cmp edi, 0xa
je 0x50bb1b
cmp edi, 7
je 0x50bb1b
cmp edi, 0xc
jne 0x50bb23
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0050ad40
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