Function at 0x50fb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xd08]
sub esp, 0xd08
push 0xfffffffffffffffe
push 0x6732d8
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xd04], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0xd10]
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 0xd14]
mov dword [ebp - 0x30], ebx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp], 0
push 0x3ff
push esi
lea eax, [ebp + 1]
push eax
call fcn.005dfd60
mov byte [ebp + 0x800], 0
push 0x3ff
push esi
lea ecx, [ebp + 0x801]
push ecx
call fcn.005dfd60
add esp, 0x18
cmp dword [0x74ac64], esi
jne 0x50fc41
mov dword [0x74ac64], 1
push 0x74c73c
push 0x74c638
call fcn.0050a790
mov byte [ebx], 0
cmp byte [edi], 0x5c
jne 0x50fdb6
cmp byte [edi + 1], 0x5c
jne 0x50fdb6
mov byte [ebp + 0x400], 0
push 0x3ff
push esi
lea edx, [ebp + 0x401]
push edx
call fcn.005dfd60
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov cl, byte [edi + eax + 2]
test cl, cl
je 0x50fc9f
cmp eax, 0x400
jge 0x50fc9f
mov byte [ebp + eax + 0x400], cl
inc eax
mov dword [ebp - 0x1c], eax
cmp byte [edi + eax + 2], 0x5c
jne 0x50fc78
lea ecx, [eax + 3]
mov dword [ebp - 0x20], ecx
mov byte [ebp + eax + 0x400], 0
cmp byte [ebp + 0x400], 0
je 0x50fdb6
push str.127.
call fcn.004dd6c0
push eax
push str.127.
lea edx, [ebp + 0x400]
push edx
call fcn.004dd670
add esp, 0x10
test eax, eax
je 0x50fdab
push str.localhost
lea eax, [ebp + 0x400]
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50fdab
push 0x74c638
lea ecx, [ebp + 0x400]
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50fdab
mov esi, dword [0x74c73c]
test esi, esi
je 0x50fdb4
mov dword [ebp - 0x1c], 0
mov byte [ebp + 0xc00], 0
push 0x103
push 0
lea edx, [ebp + 0xc01]
push edx
call fcn.005dfd60
push 1
push 0
push 0x2c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc00]
push ecx
push esi
call fcn.004e1380
add esp, 0x24
or esi, 0xffffffff
nop
cmp dword [ebp - 0x1c], esi
je 0x50fdb4
lea edx, [ebp + 0xc00]
push edx
lea eax, [ebp + 0x400]
push eax
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50fd8a
mov dword [ebp - 0x2c], 1
xor esi, esi
jmp 0x50fdbf
push 1
push 0
push 0x2c
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0xc00]
push edx
mov eax, dword [0x74c73c]
push eax
call fcn.004e1380
add esp, 0x18
jmp 0x50fd60
mov dword [ebp - 0x2c], 1
jmp 0x50fdbf
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x50ff92
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov al, byte [edi + edx]
test al, al
je 0x50fde0
cmp al, 0x5c
je 0x50fde0
mov byte [ebp + ecx + 0x800], al
inc edx
mov dword [ebp - 0x20], edx
inc ecx
jmp 0x50fdc4
mov byte [ebp + ecx + 0x800], 0
lea ecx, [ebp - 0x24]
push ecx
push 1
push esi
push str.SystemCurrentControlSetServicesLanmanServerShares
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dc0a0
add esp, 0x14
cmp eax, esi
jne 0x50ff19
mov dword [ebp - 0x34], esi
lea edx, [ebp - 0x34]
push edx
push esi
push esi
push esi
lea eax, [ebp + 0x800]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
je 0x50fe35
cmp eax, 0xea
jne 0x50ff19
mov edx, dword [ebp - 0x34]
add edx, 0x104
push edx
call fcn.004d9470
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x24]
test ebx, ebx
jne 0x50fe5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50ff16
lea ecx, [ebp - 0x34]
push ecx
push ebx
push 0
push 0
lea edx, [ebp + 0x800]
push edx
push eax
call esi
test eax, eax
jne 0x50ff03
xor edi, edi
lea esp, [esp]
lea esi, [edi + ebx]
cmp byte [esi], 0
je 0x50fed1
push 0x64d468
call fcn.004dd6c0
push eax
push 0x64d468
push esi
call fcn.004dd670
add esp, 0x10
test eax, eax
jne 0x50ff68
push 0x64d468
call fcn.004dd6c0
add esp, 4
add eax, edi
add eax, ebx
push eax
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp]
push edx
call fcn.004e1290
add esp, 4
cmp byte [ebp], 0
je 0x50ff00
lea eax, [ebp]
push eax
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004e24e0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx + 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005e0865
add esp, 4
mov ebx, dword [ebp - 0x30]
cmp byte [ebx], 0
jne 0x50ff5a
cmp byte [ebp + 0x801], 0x24
jne 0x50ff92
cmp byte [ebp + 0x802], 0
jne 0x50ff92
lea edx, [ebp + 0x800]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebx + 1], 0x3a
push ebx
call fcn.004e24e0
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [edi + eax + 1]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x50ff9b
push esi
call fcn.004dd6c0
add esp, 4
lea edi, [edi + eax + 1]
jmp 0x50fe80
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd04]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0xd08
mov esp, ebp
pop ebp
ret 8