Function at 0x5d0f30
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 0x7ab106
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x188
mov eax, dword [0x82f184]
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 0x5d1053
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d0fe1
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d0fd0
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 0x5d1000
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.0057e080
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0xbd], 0
jmp 0x5d10d9
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d1076
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d1065
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 0x5d1090
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.0057e200
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0xbd], 0
je 0x5d17de
xor eax, eax
mov dword [ebp - 0x24], 0
push eax
push 0x7cd378
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.0057f200
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x3c]
je 0x5d1586
lea eax, [ebp - 0x198]
push eax
call fcn.005d1840
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x5d1168
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d1151
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 0x5d11ad
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0057e080
test al, al
jne 0x5d11ba
jmp 0x5d1538
call fcn.0057e200
test al, al
je 0x5d1538
mov dword [ebp - 0x10c], 7
xor eax, eax
mov dword [ebp - 0x108], 0xdc00fc
mov dword [ebp - 0x104], 0xde00d6
mov dword [ebp - 0x100], 0xd800c8
mov dword [ebp - 0xfc], 0xbf00da
nop
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x5d11f0
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 0x5d1233
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 0x5d12a4
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 0x5d12a4
cmp dword [ebp - 0x74], 4
jne 0x5d12a4
mov edi, dword [ebp - 0x18]
jmp 0x5d12a6
xor edi, edi
lea ecx, [ebp - 0xd8]
call fcn.00404490
cmp edi, 1
je 0x5d1538
mov dword [ebp - 0xf4], 0xb
xor ecx, ecx
mov dword [ebp - 0xf0], 0xd000fc
mov dword [ebp - 0xec], 0xcb00c9
mov dword [ebp - 0xe8], 0xdc00d0
mov dword [ebp - 0xe4], 0xf100c7
mov dword [ebp - 0xe0], 0xac00a1
mov dword [ebp - 0xdc], 0xc300a7
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xf0], ax
inc ecx
mov eax, dword [ebp - 0xf4]
cmp ecx, eax
jb 0x5d1310
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 0x5d1355
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.0057e2d0
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 0x7d8820
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.0057e2d0
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 0x5d1522
cmp dword [ebp - 0x94], 0
je 0x5d1522
call fcn.00451010
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
jne 0x5d1522
call fcn.00451010
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
je 0x5d1558
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 0x5d1133
jmp 0x5d1586
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 0x5d1623
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d15c1
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d15b0
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 0x5d15e3
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.0057e080
jmp 0x5d16a6
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d1646
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d1635
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 0x5d1670
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.0057e200
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00404490
cmp dword [ebp - 0x24], 0
je 0x5d17c5
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], 0xdc00fc
mov dword [ebp - 0xf0], 0xda00dc
mov dword [ebp - 0xec], 0xd100c9
mov dword [ebp - 0xe8], 0xec00ca
mov dword [ebp - 0xe4], 0xae00a3
mov dword [ebp - 0xe0], 0xa600b2
mov dword [ebp - 0xdc], 0xc4
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xf4], ax
inc ecx
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
jb 0x5d1730
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 0x5d1775
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.0057e4b0
lea ecx, [ebp - 0xd8]
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
jmp 0x5d17ce
lea eax, [ebp - 0x70]
push eax
call fcn.005d2d00
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 0x5d17f5
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 0x5d1812
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.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4