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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6632
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x831184]
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], 0xf300fa
mov dword [ebp - 0x14c], 0xf800f8
mov dword [ebp - 0x148], 0xe300e8
mov dword [ebp - 0x144], 0xf300f3
mov dword [ebp - 0x140], 0xc000c4
mov dword [ebp - 0x13c], 0xd100c1
mov dword [ebp - 0x138], 0xc200db
mov dword [ebp - 0x134], 0xd700f4
mov dword [ebp - 0x130], 0xce00d7
mov dword [ebp - 0x12c], 0xd300c9
mov dword [ebp - 0x128], 0xed00d1
mov dword [ebp - 0x124], 0xb400da
mov dword [ebp - 0x120], 0x91009d
mov dword [ebp - 0x11c], 0xb600a6
mov dword [ebp - 0x118], 0xaf00b3
mov dword [ebp - 0x114], 0xad00a4
mov dword [ebp - 0x110], 0xca00ba
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x150], ax
inc ecx
mov eax, dword [ebp - 0x154]
cmp ecx, eax
jb 0x594780
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 0x5947d0
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.0057f2d0
test al, al
je 0x594cba
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.00580380
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x24]
je 0x594cb2
nop
push edi
lea ecx, [ebp - 0x8c]
call fcn.00404120
push 0x7cf384
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.0057f2d0
test al, al
je 0x594c86
mov ecx, 4
mov dword [ebp - 0x108], 0xd300fd
mov dword [ebp - 0x10c], ecx
xor eax, eax
mov dword [ebp - 0x104], 0xc900db
mov dword [ebp - 0x100], 0xad
nop dword [eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x594950
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 0x594993
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 0x594a04
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 0x594a04
cmp dword [ebp - 0x2c], 4
jne 0x594a04
mov esi, dword [ebp - 0x1c]
jmp 0x594a06
xor esi, esi
lea ecx, [ebp - 0xf8]
call fcn.00404490
cmp esi, 0x10
je 0x594a1f
cmp esi, 0x20
jne 0x594c86
mov dword [ebp - 0xf8], 9
xor ecx, ecx
mov dword [ebp - 0xf4], 0xc700e0
mov dword [ebp - 0xf0], 0xcb00ca
mov dword [ebp - 0xec], 0xfe00c8
mov dword [ebp - 0xe8], 0xc400ce
mov dword [ebp - 0xe4], 0xb200d9
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xf4], ax
inc ecx
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
jb 0x594a60
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 0x594aa5
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.0057f450
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 0x594c7e
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0xdc]
call fcn.0041cd00
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xc
push eax
call fcn.0058fa50
test al, al
jne 0x594c73
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
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.0058f5b0
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.0059dcc0
mov edx, dword [ebp - 0xfc]
mov byte [ebp - 4], 0xe
mov ecx, dword [edx + 0x3c]
cmp dword [edx + 0x40], ecx
je 0x594c30
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x594c22
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 0x594c40
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 0x594c73
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x594c73
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x594c73
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 0x594840
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 0x594ce5
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 0x594d02
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.0076eb7e
mov esp, ebp
pop ebp
ret