Function at 0x5e1cf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x654571
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
push ebx
push ebp
push esi
mov esi, dword [esp + 0x65c]
push edi
mov edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x240]
xor ebp, ebp
push eax
push ecx
push ebp
push ebp
push str.EncLNFSW
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0x410
call ebx
test eax, eax
jne 0x5e1d95
lea edx, [esp + 0x240]
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e1d95
lea eax, [esp + 0x240]
mov dword [esp + 0x18], 1
push eax
call fcn.005de310
add esp, 4
lea ecx, [esp + 0x240]
push ecx
mov ecx, edi
call fcn.005e3ff0
cmp eax, ebp
je 0x5e1f9b
xor eax, eax
jmp 0x5e1f9f
lea edx, [esp + 0x14]
lea eax, [esp + 0x38]
push edx
push eax
push ebp
push ebp
push str.EncLNFS
push esi
mov dword [esp + 0x2c], 0x208
call ebx
test eax, eax
jne 0x5e1e3e
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e1e3e
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 1
push ecx
call fcn.005de2e0
add esp, 4
lea edx, [esp + 0x38]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
push ebp
push edx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x38], bp
call fcn.004027e0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x658], ebp
cmp eax, ebp
jne 0x5e1e0b
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
call fcn.005e3ff0
cmp eax, ebp
mov dword [esp + 0x658], 0xffffffff
lea ecx, [esp + 0x2c]
je 0x5e1e34
call fcn.00401070
xor eax, eax
jmp 0x5e1f9f
call fcn.00401070
jmp 0x5e1f9b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
push ebp
push ebp
push str.LocalNameForSave
push esi
mov dword [esp + 0x2c], 0x410
call ebx
test eax, eax
jne 0x5e1f9b
or ebx, 0xffffffff
lea edi, [esp + 0x38]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e1f9b
mov edx, dword [0x6f7b78]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x658], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push 0x6c910c
push ecx
call fcn.0061fae1
mov edx, dword [esp + 0x1c]
push edx
call fcn.005de2e0
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push ebp
push ebp
push str.EncLNFS
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov word [esp + 0x20], bp
call fcn.00401070
lea eax, [esp + 0x38]
test eax, eax
je 0x5e1f3f
lea edi, [esp + 0x38]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e1f3f
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
lea ecx, [esp + 0x40]
push ebx
push ecx
push ebp
push ebp
call esi
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x5e1f3f
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x5e1f3f
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push eax
push ebx
push edx
push ebp
push ebp
call esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x658], 2
cmp eax, ebp
jne 0x5e1f53
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
call fcn.005e3ff0
cmp eax, ebp
mov byte [esp + 0x658], 1
lea ecx, [esp + 0x1c]
je 0x5e1f86
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x658], ebx
call fcn.00622d8a
xor eax, eax
jmp 0x5e1f9f
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x658], ebx
call fcn.00622d8a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64c
ret 4