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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6033d0
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.005d869a
push 0
lea ecx, [ebp - 0x1c]
call fcn.005d86ad
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x4fa92b
push 0
lea ecx, [ebp - 0x1c]
call fcn.005d86ad
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x4fa92b
mov byte [ebp - 0x15], 1
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x148]
mov dword [ebp - 4], 0
rep stosd dword es:[edi], eax
call fcn.00504170
mov ebx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x148]
push pe_nt_image_headers32
push ecx
mov ecx, ebx
call fcn.004fb060
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
call fcn.004fa3b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3b0
mov ecx, dword [0x6cce44]
mov eax, dword [0x6cd89c]
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.WS2_32.dll_bind
push eax
push ecx
mov byte [ebp - 4], 4
call edi
mov esi, eax
test esi, esi
je 0x4fab0e
cmp esi, 2
je 0x4faa3f
mov edx, dword [0x6c826c]
mov dword [ebp + 8], edx
mov eax, dword [0x6cce44]
mov byte [ebp - 4], 5
test eax, eax
mov eax, str.CURRENT_USER
jne 0x4fa9dd
mov eax, str.MACHINE
mov ecx, dword [0x6cd89c]
lea edx, [ebp + 8]
push ecx
push eax
push 0x69eb9c
push edx
call fcn.005d809b
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0x44]
push eax
call fcn.004fa460
test eax, eax
je 0x4faa33
mov eax, dword [0x6cce44]
mov edx, dword [0x6cd89c]
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 edi
mov esi, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.005df266
test esi, esi
je 0x4fab0e
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.WS2_32.dll_accept
call edi
test eax, eax
je 0x4fab0e
mov edx, dword [0x6c826c]
mov dword [ebp + 8], edx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea eax, [ebp + 8]
push str.CURRENT_USER_s
push eax
mov byte [ebp - 4], 6
call fcn.005d809b
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x34]
call fcn.004fa460
test eax, eax
je 0x4fab02
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 edi
test eax, eax
je 0x4fab02
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.005df266
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004fa3f0
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], 4
call fcn.005df266
lea eax, [ebp - 0x24]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x69def0
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4fabf4
lea ecx, [ebp + 8]
lea edx, [ebp - 0x17c]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push eax
push eax
mov eax, dword [0x6cd5e8]
push eax
push ecx
mov dword [ebp + 8], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4fabf4
lea edx, [ebx + 0x260]
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 [0x6cd5e4]
push 1
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call esi
lea edx, [ebx + 0x292]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x6cd5e0]
push edx
mov edx, dword [ebp - 0x24]
push 1
push eax
push ecx
push edx
call esi
lea edx, [ebx + 0x2c4]
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 [0x6cd5dc]
push eax
push ecx
call esi
lea edx, [ebx + 0x22e]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [0x6cd5e8]
push 1
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call esi
jmp 0x4fabfa
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebx + 0x30c]
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x4fac46
cmp edi, 4
jne 0x4fac46
test ebx, ebx
je 0x4fac18
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004fa3f0
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 0x4fad38
cmp edi, 7
ja case.0x4fad41.4
jmp dword [edi*4 + 0x4faf74]
mov ecx, dword [0x6cd4e0]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x148]
push pe_nt_image_headers32
push eax
push 0
push 0
push ecx
push edx
call esi
mov eax, dword [ebx + 0x2fc]
test eax, eax
jle 0x4facf8
mov ecx, dword [ebx + 0x300]
test ecx, ecx
jle 0x4facf8
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 + 8]
mov dword [ebp + 8], ecx
push edx
push 4
push 0
push str.Version
push eax
call esi
lea ecx, [ebp - 0x20]
push ecx
call fcn.005c449b
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 str.Version32
jmp 0x4fae0a
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.0x4fad41.4
mov eax, dword [0x6cd4e0]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push pe_nt_image_headers32
push edx
push 0
push 0
push eax
push ecx
jmp 0x4fae0e
cmp edi, 7
ja case.0x4fad41.4
jmp dword [edi*4 + 0x4faf94]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push pe_nt_image_headers32
push edx
push 0
push 0
push str.MData
push eax
call esi
mov eax, dword [ebx + 0x2fc]
test eax, eax
jle 0x4facf8
mov ecx, dword [ebx + 0x300]
test ecx, ecx
jle 0x4facf8
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 - 0x48]
push edx
call fcn.005c449b
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 str.Version32
jmp 0x4fae0a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x148]
push pe_nt_image_headers32
push edx
push 0
push 0
push str.MData
push eax
jmp 0x4fae0e
lea ecx, [ebp - 0x148]
push pe_nt_image_headers32
push ecx
push 0
push 0
push str.MData
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebx + 0x308]
test eax, eax
je 0x4fae3f
test edi, edi
jne 0x4fae3f
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.004fa8c0
mov dword [ebx + 0x304], edi
call fcn.005df864
jmp 0x4fae7e
mov eax, dword [ebx + 0x30c]
test eax, eax
jne 0x4faeea
cmp edi, 8
jne 0x4faeea
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x30c], 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4faea9
push ebx
call fcn.004fa8c0
add esp, 4
test eax, eax
jne 0x4faebc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004fa3f0
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.004fa8c0
call fcn.005df864
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004fa3f0
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 0x4faf03
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test esi, esi
jne 0x4faf1e
cmp edi, 1
je 0x4faf16
cmp edi, 2
je 0x4faf16
cmp edi, 7
jne 0x4faf1e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004fa3f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004fa3f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret