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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 1
call fcn.005a7017
push 0
lea ecx, [ebp - 0x18]
call fcn.005a702a
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x4dfd1b
push 0
lea ecx, [ebp - 0x18]
call fcn.005a702a
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x4dfd1b
mov byte [ebp - 0x19], 1
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x148]
mov dword [ebp - 4], 0
rep stosd dword es:[edi], eax
call fcn.004e8660
mov ebx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x148]
push 0x100
push ecx
mov ecx, ebx
call fcn.004e0360
lea ecx, [ebp - 0x48]
mov dword [ebp + 8], eax
call fcn.004df7a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004df7a0
mov ecx, dword [0x691b68]
mov eax, dword [0x692480]
lea edx, [ebp - 0x14]
push 0
mov edi, 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.WSOCK32.dll_bind
push eax
push ecx
mov byte [ebp - 4], 4
call edi
mov esi, eax
test esi, esi
je 0x4dfefe
cmp esi, 2
je 0x4dfe2f
mov edx, dword [0x68d01c]
mov dword [ebp - 0x18], edx
mov eax, dword [0x691b68]
mov byte [ebp - 4], 5
test eax, eax
mov eax, str.CURRENT_USER
jne 0x4dfdcd
mov eax, str.MACHINE
mov ecx, dword [0x692480]
lea edx, [ebp - 0x18]
push ecx
push eax
push 0x666b3c
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [ebp - 0x48]
push eax
call fcn.004df850
test eax, eax
je 0x4dfe23
mov eax, dword [0x691b68]
mov edx, dword [0x692480]
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.WSOCK32.dll_bind
push edx
push eax
call edi
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005adc4d
test esi, esi
je 0x4dfefe
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
je 0x4dfefe
mov edx, dword [0x68d01c]
mov dword [ebp - 0x18], edx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea eax, [ebp - 0x18]
push str.CURRENT_USER_s
push eax
mov byte [ebp - 4], 6
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x38]
call fcn.004df850
test eax, eax
je 0x4dfef2
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.WSOCK32.dll_accept
call edi
test eax, eax
je 0x4dfef2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005adc4d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004df7e0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004df7e0
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 - 0x18]
mov byte [ebp - 4], 4
call fcn.005adc4d
lea eax, [ebp - 0x24]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x665e5c
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x4dffe4
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x17c]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push eax
push eax
mov eax, dword [0x6921cc]
push eax
push ecx
mov dword [ebp - 0x20], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4dffe4
lea edx, [ebx + 0x200]
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
push edx
mov edx, dword [0x6921c8]
push 1
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call esi
lea edx, [ebx + 0x232]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x6921c4]
push edx
mov edx, dword [ebp - 0x24]
push 1
push eax
push ecx
push edx
call esi
lea edx, [ebx + 0x264]
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 [0x6921c0]
push eax
push ecx
call esi
lea edx, [ebx + 0x1ce]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [0x6921cc]
push 1
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call esi
jmp 0x4dffea
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov al, byte [ebp - 0x19]
test al, al
mov eax, dword [ebp + 8]
je 0x4e00df
cmp eax, 7
ja case.0x4e00e8.4
jmp dword [eax*4 + 0x4e027c]
mov edx, dword [0x6920c4]
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 + 0x29c]
test eax, eax
jle 0x4e009f
mov ecx, dword [ebx + 0x2a0]
test ecx, ecx
jle 0x4e009f
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
lea eax, [ebp - 0x18]
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 - 0x18], edx
call esi
lea edx, [ebp - 0x20]
push edx
call fcn.00592e63
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 - 0x18]
shr eax, 0x1f
push 4
push ecx
add edx, eax
push 4
push 0
mov dword [ebp - 0x18], edx
push str.Version32
jmp 0x4e01b1
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Version
push eax
call esi
mov ecx, dword [ebp - 0x14]
push str.Version32
push ecx
call esi
jmp case.0x4e00e8.4
mov eax, dword [0x6920c4]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x4e01b5
cmp eax, 7
ja case.0x4e00e8.4
jmp dword [eax*4 + 0x4e029c]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
call esi
mov eax, dword [ebx + 0x29c]
test eax, eax
jle 0x4e009f
mov ecx, dword [ebx + 0x2a0]
test ecx, ecx
jle 0x4e009f
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
lea eax, [ebp - 0x20]
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 - 0x20], edx
call esi
lea edx, [ebp - 0x28]
push edx
call fcn.00592e63
mov ecx, dword [ebp - 0x28]
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 str.Version32
jmp 0x4e01b1
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
jmp 0x4e01b5
lea ecx, [ebp - 0x148]
push 0x100
push ecx
push 0
push 0
push str.MData
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x2a8]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4e0212
test edi, edi
jne 0x4e0212
push edi
push edi
push edi
push edi
push ebx
push fcn.004dfcb0
mov dword [ebx + 0x2a4], edi
call fcn.005ae24b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004df7e0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004df7e0
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
mov esi, dword [ebx + 8]
test ebx, ebx
je 0x4e0221
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
test esi, esi
jne 0x4e023c
cmp edi, 1
je 0x4e0234
cmp edi, 2
je 0x4e0234
cmp edi, 7
jne 0x4e023c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004df7e0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004df7e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret