Function at 0x45eef0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [0x6a3f5c]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
jne 0x45f4eb
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.004fc150
mov edx, dword [0x6cee54]
mov ecx, dword [0x6cf8ac]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
neg edx
push eax
push 1
sbb edx, edx
push esi
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
je 0x45efef
cmp edi, 2
je 0x45efe7
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6cee54]
mov byte [ebp - 4], 2
test eax, eax
mov eax, str.CURRENT_USER
jne 0x45ef90
mov eax, str.MACHINE
mov ecx, dword [0x6cf8ac]
lea edx, [ebp - 0x14]
push ecx
push eax
push 0x6a0b7c
push edx
call fcn.005d9fbb
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebp - 0x54]
push eax
call fcn.004fc200
test eax, eax
je 0x45efdb
mov eax, dword [0x6cee54]
mov edx, dword [0x6cf8ac]
lea ecx, [ebp - 0x20]
neg eax
push ecx
push 1
sbb eax, eax
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call ebx
mov edi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005e118c
test edi, edi
jne 0x45f072
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x164]
push ecx
push edx
push 0
push 0
push str.MData
push eax
mov dword [ebp - 0x1c], pe_nt_image_headers32
call ebx
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov esi, eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
neg esi
push 0
push 0
sbb esi, esi
mov edi, 4
push str.Version
push eax
inc esi
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
jne 0x45f058
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x20]
push str.Version32
push eax
mov dword [ebp - 0x1c], edi
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x45f072
mov dword [ebp - 0x2c], 1
jmp 0x45f1a1
lea ecx, [ebp - 0x44]
call fcn.004fc150
lea edx, [ebp - 0x20]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
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
mov edi, eax
test edi, edi
je 0x45f108
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x14], eax
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea ecx, [ebp - 0x14]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 4
call fcn.005d9fbb
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x44]
push edx
call fcn.004fc200
test eax, eax
je 0x45f0f8
lea eax, [ebp - 0x20]
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
mov edi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.005e118c
test edi, edi
jne 0x45f180
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x164]
push ecx
push edx
push 0
push 0
push str.MData
push eax
mov dword [ebp - 0x1c], pe_nt_image_headers32
call edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov esi, eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
neg esi
push 0
push 0
sbb esi, esi
mov ebx, 4
push str.Version
push eax
inc esi
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
jne 0x45f171
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x20]
push str.Version32
push eax
mov dword [ebp - 0x1c], ebx
call edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], esi
jmp 0x45f187
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004fc190
test esi, esi
je 0x45f4c5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x45f1b3
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x45f28e
mov dword [ebp - 0x30], 0x61a4b4
mov edx, dword [0x6d0124]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 5
push ecx
push edx
lea edx, [ebp - 0x164]
push pe_nt_image_headers32
push edx
lea ecx, [ebp - 0x30]
call fcn.00445290
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebp + ecx - 0x162]
lea esi, [ebp + ecx - 0x162]
test al, al
je 0x45f287
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x6a6138
push esi
call fcn.005c670c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
inc ecx
add esi, ecx
cmp byte [esi], 0
je 0x45f247
lea ecx, [ebp - 0x14]
push ecx
push 0x6a6138
push esi
call fcn.005c670c
add esp, 0xc
mov esi, dword [ebp - 0x18]
test esi, esi
jle 0x45f287
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x45f287
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov eax, 0xc22e4507
imul esi
add edx, esi
mov dword [ebp - 0x28], ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, ecx
mov dword [ebp - 0x24], edx
jmp 0x45f28a
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test edx, edx
jbe 0x45f4c5
lea ecx, [ebp - 0x30]
push ecx
call fcn.005c63ab
mov eax, 0xc22e4507
add esp, 4
mul dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov esi, edx
mov edx, dword [ebp - 0x24]
shr esi, 0x10
add eax, edx
cmp esi, eax
jb 0x45f454
lea ecx, [ebp - 0x64]
call fcn.004fc150
mov bl, 6
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004fc150
mov eax, dword [0x6cee54]
mov edx, dword [0x6cf8ac]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x14]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
test esi, esi
je 0x45f38b
cmp esi, 2
je 0x45f387
mov ecx, dword [0x6ca27c]
mov dword [ebp - 0x18], ecx
mov eax, dword [0x6cee54]
mov byte [ebp - 4], 8
test eax, eax
mov eax, str.CURRENT_USER
jne 0x45f32c
mov eax, str.MACHINE
mov edx, dword [0x6cf8ac]
push edx
push eax
lea eax, [ebp - 0x18]
push 0x6a0b7c
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
lea ecx, [ebp - 0x64]
call fcn.004fc200
test eax, eax
je 0x45f37b
mov ecx, dword [0x6cee54]
mov eax, dword [0x6cf8ac]
lea edx, [ebp - 0x14]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call edi
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.005e118c
test esi, esi
jne 0x45f3a4
mov edx, dword [ebp - 0x14]
push str.MData
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
test esi, esi
je 0x45f422
cmp esi, 2
je 0x45f41e
mov edx, dword [0x6ca27c]
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], 9
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x44]
call fcn.004fc200
test eax, eax
je 0x45f412
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.005e118c
test esi, esi
jne 0x45f43b
mov eax, dword [ebp - 0x14]
push str.MData
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004fc190
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004fc190
jmp 0x45f4c5
lea edx, [esi + 5]
cmp edx, eax
jb 0x45f4c5
mov edx, dword [0x6cee7c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push str.bshexmsg
push edx
mov dword [ebp - 0x14], 4
call ebx
test eax, eax
je 0x45f4c5
mov ecx, dword [0x6cee7c]
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push str.bshexmsg
push ecx
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
sub eax, esi
add eax, ebx
push eax
mov eax, dword [edx + 0x1c]
push 0x146c
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004fc190
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret