Function at 0x5d1f60
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ac896
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x188
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
lea eax, [ebp - 0x70]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 7
add esp, 0xc
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], al
cmp byte [ebx + 8], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
je 0x5d2083
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d2011
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d2000
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2030
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.0057f200
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0xbd], 0
jmp 0x5d2109
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d20a6
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d2095
xor eax, eax
mov dword [ebp - 0x20], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d20c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f380
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0xbd], 0
je 0x5d280e
xor eax, eax
mov dword [ebp - 0x24], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.004044f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x70]
movq qword [ebp - 0x40], xmm0
call fcn.00580380
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x3c]
je 0x5d25b6
lea eax, [ebp - 0x198]
push eax
call fcn.005d2870
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x5d2198
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d2181
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push esi
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x8c]
push eax
call fcn.0041ee30
add esp, 0xc
cmp byte [ebx + 8], 0
lea eax, [ebp - 0x8c]
push 0xf003f
push 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push eax
je 0x5d21dd
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0057f200
test al, al
jne 0x5d21ea
jmp 0x5d2568
call fcn.0057f380
test al, al
je 0x5d2568
mov dword [ebp - 0x10c], 7
xor eax, eax
mov dword [ebp - 0x108], 0xcf00ed
mov dword [ebp - 0x104], 0xc900c7
mov dword [ebp - 0x100], 0xcb00d9
mov dword [ebp - 0xfc], 0xb000cb
nop
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x5d2220
xor eax, eax
mov word [ebp + ecx*2 - 0x108], ax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xc8], eax
lea edx, [ecx + 2]
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2263
sub ecx, edx
lea eax, [ebp - 0x108]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xd8]
call fcn.004044f0
cmp byte [ebp - 0x48], 0
je 0x5d22d4
cmp dword [ebp - 0xc4], 8
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], 4
push ecx
lea eax, [ebp - 0xd8]
cmovae eax, dword [ebp - 0xd8]
push 0
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d22d4
cmp dword [ebp - 0x74], 4
jne 0x5d22d4
mov edi, dword [ebp - 0x18]
jmp 0x5d22d6
xor edi, edi
lea ecx, [ebp - 0xd8]
call fcn.00404490
cmp edi, 1
je 0x5d2568
mov dword [ebp - 0xf4], 0xb
xor ecx, ecx
mov dword [ebp - 0xf0], 0xc300ed
mov dword [ebp - 0xec], 0xdc00d8
mov dword [ebp - 0xe8], 0xcf00c1
mov dword [ebp - 0xe4], 0xfe00d6
mov dword [ebp - 0xe0], 0xdf00d0
mov dword [ebp - 0xdc], 0xb400d6
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xf0], ax
inc ecx
mov eax, dword [ebp - 0xf4]
cmp ecx, eax
jb 0x5d2340
xor ecx, ecx
mov word [ebp + eax*2 - 0xf0], cx
xor eax, eax
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xc4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xd8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2385
sub ecx, edx
lea eax, [ebp - 0xf0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xd8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f450
mov dword [ebp - 0xac], 0
xor ecx, ecx
mov dword [ebp - 0xa8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xbc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x128]
call fcn.00404490
lea ecx, [ebp - 0x110]
call fcn.00404490
lea ecx, [ebp - 0xd8]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd8]
push 3
push 0x7da86c
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
call fcn.004044f0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f450
mov dword [ebp - 0x94], 0
xor ecx, ecx
mov dword [ebp - 0x90], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x94], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x128]
call fcn.00404490
lea ecx, [ebp - 0xd8]
call fcn.00404490
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0xf
call fcn.00404490
cmp dword [ebp - 0xac], 0
je 0x5d2552
cmp dword [ebp - 0x94], 0
je 0x5d2552
call fcn.00451ae0
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
call fcn.0058b550
test al, al
jne 0x5d2552
call fcn.00451ae0
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.0058b550
test al, al
je 0x5d2588
lea ecx, [ebp - 0xa4]
call fcn.00404490
lea ecx, [ebp - 0xbc]
call fcn.00404490
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00404490
add esi, 0x18
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x3c]
jne 0x5d2163
jmp 0x5d25b6
push esi
lea ecx, [ebp - 0x34]
call fcn.0041a340
lea ecx, [ebp - 0xa4]
call fcn.00404490
lea ecx, [ebp - 0xbc]
call fcn.00404490
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00404490
cmp byte [ebx + 8], 0
lea eax, [ebp - 0x198]
push eax
je 0x5d2653
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d25f1
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d25e0
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2613
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xd8]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.0057f200
jmp 0x5d26d6
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d2676
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d2665
xor eax, eax
mov dword [ebp - 0xc4], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0xc8], eax
mov word [ebp - 0xd8], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d26a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xd8]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f380
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00404490
cmp dword [ebp - 0x24], 0
je 0x5d27f5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404120
mov byte [ebp - 4], 0x12
mov eax, 0xc
mov dword [ebp - 0xf8], eax
xor ecx, ecx
mov dword [ebp - 0xf4], 0xcf00ed
mov dword [ebp - 0xf0], 0xcd00cd
mov dword [ebp - 0xec], 0xc200d8
mov dword [ebp - 0xe8], 0xe300db
mov dword [ebp - 0xe4], 0xdd00d2
mov dword [ebp - 0xe0], 0xd100c3
mov dword [ebp - 0xdc], 0xb5
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xf4], ax
inc ecx
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
jb 0x5d2760
xor ecx, ecx
mov word [ebp + eax*2 - 0xf4], cx
xor eax, eax
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xc4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xd8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d27a5
sub ecx, edx
lea eax, [ebp - 0xf4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xd8]
call fcn.004044f0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f630
lea ecx, [ebp - 0xd8]
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
jmp 0x5d27fe
lea eax, [ebp - 0x70]
push eax
call fcn.005d3d30
lea ecx, [ebp - 0x40]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov eax, dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5d2825
push eax
call esi
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x48], 0
call fcn.00404490
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5d2842
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4