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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4e92
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xfc], esi
push 0x30
lea eax, [ebp - 0x5c]
mov byte [esi + 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x5c], 0
add esp, 0xc
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x154], 0x21
mov dword [ebp - 0x150], 0xe000eb
mov dword [ebp - 0x14c], 0xef00e9
mov dword [ebp - 0x148], 0xf000f9
mov dword [ebp - 0x144], 0xfc00e2
mov dword [ebp - 0x140], 0xb300b5
mov dword [ebp - 0x13c], 0xa600b0
mov dword [ebp - 0x138], 0xb100aa
mov dword [ebp - 0x134], 0xa80085
mov dword [ebp - 0x130], 0xbd00a6
mov dword [ebp - 0x12c], 0xa400b8
mov dword [ebp - 0x128], 0x9e00a0
mov dword [ebp - 0x124], 0xbb00ab
mov dword [ebp - 0x120], 0x82008c
mov dword [ebp - 0x11c], 0xa100b7
mov dword [ebp - 0x118], 0xbc00a2
mov dword [ebp - 0x114], 0xb200b5
mov dword [ebp - 0x110], 0xd900ab
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x150], ax
inc ecx
mov eax, dword [ebp - 0x154]
cmp ecx, eax
jb 0x593790
xor ecx, ecx
mov word [ebp + eax*2 - 0x150], cx
xor eax, eax
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x150]
mov dword [ebp - 0xa8], reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ecx + 2]
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5937e0
sub ecx, edx
lea eax, [ebp - 0x150]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e150
test al, al
je 0x593cca
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
push eax
movq qword [ebp - 0x28], xmm0
call fcn.0057f200
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x24]
je 0x593cc2
nop
push edi
lea ecx, [ebp - 0x8c]
call fcn.00404120
push 0x7cd374
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
push dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00407c50
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc4], eax
xor eax, eax
movq qword [ebp - 0x160], xmm0
movups xmmword [ebp - 0x170], xmm1
mov dword [ebp - 0x160], ecx
movups xmmword [ebp - 0xc0], xmm1
mov dword [ebp - 0x15c], 7
movq qword [ebp - 0xb0], xmm0
mov word [ebp - 0x170], ax
lea ecx, [ebp - 0x170]
call fcn.00404490
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 6
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e150
test al, al
je 0x593c96
mov ecx, 4
mov dword [ebp - 0x108], 0xc000ec
mov dword [ebp - 0x10c], ecx
xor eax, eax
mov dword [ebp - 0x104], 0xde00ca
mov dword [ebp - 0x100], 0xbc
nop dword [eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x593960
xor eax, eax
mov word [ebp + ecx*2 - 0x108], ax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xe8], eax
lea edx, [ecx + 2]
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5939a3
sub ecx, edx
lea eax, [ebp - 0x108]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xf8]
call fcn.004044f0
cmp byte [ebp - 0x34], 0
je 0x593a14
cmp dword [ebp - 0xe4], 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 4
push ecx
lea eax, [ebp - 0xf8]
cmovae eax, dword [ebp - 0xf8]
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x593a14
cmp dword [ebp - 0x2c], 4
jne 0x593a14
mov esi, dword [ebp - 0x1c]
jmp 0x593a16
xor esi, esi
lea ecx, [ebp - 0xf8]
call fcn.00404490
cmp esi, 0x10
je 0x593a2f
cmp esi, 0x20
jne 0x593c96
mov dword [ebp - 0xf8], 9
xor ecx, ecx
mov dword [ebp - 0xf4], 0xd400f1
mov dword [ebp - 0xf0], 0xdc00db
mov dword [ebp - 0xec], 0xed00d9
mov dword [ebp - 0xe8], 0xcb00df
mov dword [ebp - 0xe4], 0xc100a8
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xf4], ax
inc ecx
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
jb 0x593a70
xor ecx, ecx
mov word [ebp + eax*2 - 0xf4], cx
xor eax, eax
mov dword [ebp - 0x178], ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x174], 7
lea edx, [ecx + 2]
mov word [ebp - 0x188], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x593ab5
sub ecx, edx
lea eax, [ebp - 0xf4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x188]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e2d0
mov dword [ebp - 0x64], 0
xor ecx, ecx
mov dword [ebp - 0x60], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x1d0]
call fcn.00404490
lea ecx, [ebp - 0x1a0]
call fcn.00404490
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0xb
call fcn.00404490
cmp dword [ebp - 0x64], 0
je 0x593c8e
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0xdc]
call fcn.0041cd00
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xc
push eax
call fcn.0058ea60
test al, al
jne 0x593c83
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076d2e3
mov esi, eax
mov dword [ebp - 0x158], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0xd
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x74]
mov ecx, esi
push 0
push 0
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0058e5c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
push dword [ebp - 0x158]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059ccc0
mov edx, dword [ebp - 0xfc]
mov byte [ebp - 4], 0xe
mov ecx, dword [edx + 0x3c]
cmp dword [edx + 0x40], ecx
je 0x593c40
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x593c32
lock inc dword [esi + 4]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
add dword [edx + 0x3c], 8
jmp 0x593c50
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [edx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xfc]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0xf
test esi, esi
je 0x593c83
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x593c83
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x593c83
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xdc]
call fcn.00404490
lea ecx, [ebp - 0x74]
call fcn.00404490
lea ecx, [ebp - 0xc0]
call fcn.00404490
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00404490
add edi, 0x18
cmp edi, dword [ebp - 0x24]
jne 0x593850
mov esi, dword [ebp - 0xfc]
lea ecx, [ebp - 0x28]
call fcn.00404220
mov al, byte [esi + 4]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xdd], al
call fcn.00404490
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x593cf5
push eax
call esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x34], 0
call fcn.00404490
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x593d12
push eax
call esi
mov al, byte [ebp - 0xdd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret