Function at 0x5b1fa0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716b50
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x7f8618]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x90], edi
test al, 1
jne 0x5b1ffa
or eax, 1
mov dword [0x7f8614], edx
mov dword [0x7f8618], eax
xor ebx, ebx
cmp dword [ecx + 0x14], 8
jb 0x5b2004
mov ecx, dword [ecx]
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b2380
push eax
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x8c], ebx
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x74], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x5b2380
push 0x74e800
lea ecx, [ebp - 0x58]
call fcn.00424600
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x5b207a
mov esi, dword [esi]
cmp word [esi], 0
jne 0x5b2084
xor ecx, ecx
jmp 0x5b209f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b2090
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004267c0
push 3
push 0x74e808
lea ecx, [ebp - 0x58]
call fcn.004267c0
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push edi
cmovae ecx, dword [ebp - 0x58]
lea eax, [eax*2 - 2]
push eax
push 1
push ecx
call fcn.006b5539
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
inc dword [ebp - 0x74]
mov edx, 2
mov dword [0x7f8614], eax
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006b1920
push dword [ebp - 0x74]
mov esi, eax
call fcn.006b1920
mov edi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push dword [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.006b47d0
push dword [ebp - 0x78]
push 0
push esi
call fcn.006b47d0
mov eax, dword [ebp - 0x78]
add esp, 0x30
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
push eax
push edi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
push 0
lea eax, [ebp - 0x88]
push eax
push esi
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x5b2316
mov edi, edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x84]
push edi
push dword [ebp - 0x80]
call fcn.005b2f40
xor eax, eax
mov dword [ebp - 0x5c], 7
add esp, 0x10
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [esi], ax
je 0x5b21d3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b21c4
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00424cc0
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 3
jne 0x5b21f8
push 2
push 0x74e810
lea ecx, [ebp - 0x28]
call fcn.00424cc0
jmp 0x5b226c
mov ecx, dword [ebp - 0x14]
cmp ecx, 1
jae 0x5b2210
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 1
call fcn.00425090
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, 0x22
cmovae eax, dword [ebp - 0x28]
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], 1
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + 2], cx
cmp word [esi], cx
je 0x5b2253
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b2244
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004267c0
push 2
push 0x74e818
lea ecx, [ebp - 0x28]
call fcn.004267c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004266f0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x90]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 - 2]
push eax
push 1
push ecx
call fcn.006b5539
add esp, 0x10
mov byte [ebp - 4], 2
inc ebx
cmp dword [ebp - 0x5c], 8
jb 0x5b22b9
push dword [ebp - 0x70]
call fcn.00428680
add esp, 4
push dword [ebp - 0x74]
push 0
push edi
call fcn.006b47d0
push dword [ebp - 0x78]
push 0
push esi
call fcn.006b47d0
mov eax, dword [ebp - 0x78]
add esp, 0x18
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
push eax
push edi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
push 0
lea eax, [ebp - 0x88]
push eax
push esi
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x5b2190
push esi
call fcn.00428680
push edi
call fcn.00428680
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x5b2336
push dword [ebp - 0x28]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x5b235b
push dword [ebp - 0x40]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x5b2380
push dword [ebp - 0x58]
call fcn.00428680
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret