Function at 0x591520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4c44
mov eax, dword fs:[0]
push eax
sub esp, 0x130
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 edi, ecx
mov dword [ebp - 0xd0], edi
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x110], esi
movq qword [ebp - 0x24], xmm0
mov byte [edi + 4], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov eax, 8
mov dword [ebp - 0xe8], eax
xor ecx, ecx
mov dword [ebp - 0xe4], 0xd600eb
mov dword [ebp - 0xe0], 0xcf00dc
mov dword [ebp - 0xdc], 0xdc00cb
mov dword [ebp - 0xd8], 0xda00cc
mov dword [ebp - 0xd4], 0xc0
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xe4], ax
inc ecx
mov eax, dword [ebp - 0xe8]
cmp ecx, eax
jb 0x5915c0
xor ecx, ecx
mov dword [ebp - 0x104], SysStringLen
mov word [ebp + eax*2 - 0xe4], cx
xor eax, eax
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xec], 7
lea edx, [ecx + 2]
mov word [ebp - 0x100], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591610
sub ecx, edx
lea eax, [ebp - 0xe4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.004044f0
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0045b290
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0
call fcn.00404490
mov eax, 8
mov dword [ebp - 0xe4], 0xd600eb
mov dword [ebp - 0xe8], eax
xor ecx, ecx
mov dword [ebp - 0xe0], 0xcf00dc
mov dword [ebp - 0xdc], 0xdc00cb
mov dword [ebp - 0xd8], 0xda00cc
mov dword [ebp - 0xd4], 0xc0
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xe4], ax
inc ecx
mov eax, dword [ebp - 0xe8]
cmp ecx, eax
jb 0x5916a0
xor ecx, ecx
mov dword [ebp - 0x104], reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp + eax*2 - 0xe4], cx
xor eax, eax
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xec], 7
lea edx, [ecx + 2]
mov word [ebp - 0x100], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5916f0
sub ecx, edx
lea eax, [ebp - 0xe4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.004044f0
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0045b290
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0
call fcn.00404490
mov eax, 0x14
mov dword [ebp - 0x50], 0xd600eb
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov dword [ebp - 0x4c], 0xcf00dc
mov dword [ebp - 0x48], 0xdc00cb
mov dword [ebp - 0x44], 0xda00cc
mov dword [ebp - 0x40], 0x96009c
mov dword [ebp - 0x3c], 0xb400ad
mov dword [ebp - 0x38], 0xf100f2
mov dword [ebp - 0x34], 0xf500f5
mov dword [ebp - 0x30], 0xa60086
mov dword [ebp - 0x2c], 0xae00ae
mov dword [ebp - 0x28], 0xcc
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x50], ax
inc ecx
mov eax, dword [ebp - 0x54]
cmp ecx, eax
jb 0x591790
xor ecx, ecx
mov dword [ebp - 0x104], reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp + eax*2 - 0x50], cx
xor eax, eax
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xec], 7
lea edx, [ecx + 2]
mov word [ebp - 0x100], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5917d3
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.004044f0
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.0045b290
lea ecx, [ebp - 0x100]
call fcn.00404490
push 0x30
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x6c], 7
xor ecx, ecx
mov dword [ebp - 0x90], eax
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x70], eax
mov word [ebp - 0x80], cx
mov word [ebp - 0x68], ax
mov byte [ebp - 0x66], al
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], edx
cmp ecx, edx
je 0x591bf2
mov eax, dword [ecx]
mov dword [ebp - 0xc4], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00404120
push 0xf003f
push 0x100
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x90]
call fcn.0057e150
test al, al
je 0x591bc2
lea eax, [ebp - 0x60]
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x90]
push eax
movq qword [ebp - 0x60], xmm0
call fcn.0057f200
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x108], eax
cmp eax, dword [ebp - 0x5c]
je 0x591bba
nop word [eax + eax]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404120
push 0x7cd374
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
push dword [ebp - 0x98]
cmovae ecx, dword [ebp - 0xa8]
push ecx
mov ecx, eax
call fcn.00407c50
xor ecx, ecx
or esi, 4
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 - 0xc4]
mov dword [ebp - 0x40], eax
xor eax, eax
movq qword [ebp - 0x120], xmm0
movups xmmword [ebp - 0x130], xmm1
mov dword [ebp - 0x120], ecx
movups xmmword [ebp - 0x3c], xmm1
mov dword [ebp - 0x11c], 7
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x130], ax
lea ecx, [ebp - 0x130]
call fcn.00404490
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xa
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0057e150
test al, al
je 0x591b8b
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f200
mov byte [ebp - 4], 0xb
or esi, 1
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0xcc], esi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x110], esi
shr eax, 0x1f
add eax, edx
jne 0x591a48
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f440
or esi, 2
mov byte [ebp - 0xc5], 1
mov dword [ebp - 0xcc], esi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x591a4f
mov byte [ebp - 0xc5], 0
mov eax, dword [ebp - 0xcc]
test al, 2
je 0x591a73
and eax, 0xfffffffd
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0xcc], eax
call fcn.00404220
mov eax, dword [ebp - 0xcc]
and eax, 0xfffffffe
mov dword [ebp - 4], 0xa
mov esi, eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xcc], esi
call fcn.00404220
cmp byte [ebp - 0xc5], 0
je 0x591b8b
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076d2e3
mov esi, eax
mov dword [ebp - 0x118], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0xc
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0xa8]
mov ecx, esi
push 0
push 0
push eax
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0058e5c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push dword [ebp - 0x118]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059ccc0
lea edx, [edi + 0x38]
mov byte [ebp - 4], 0xd
mov eax, dword [edx + 4]
cmp dword [edx + 8], eax
je 0x591b3b
mov edi, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x591b2d
lock inc dword [edi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edi
add dword [edx + 4], 8
jmp 0x591b4a
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, edx
call fcn.00413880
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xd0]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xcc]
mov esi, eax
test edi, edi
je 0x591b85
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x591b85
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x591b85
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0xd0]
lea ecx, [ebp - 0x3c]
call fcn.00404490
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.00404490
mov eax, dword [ebp - 0x108]
add eax, 0x18
mov dword [ebp - 0x108], eax
cmp eax, dword [ebp - 0x5c]
jne 0x5918f0
lea ecx, [ebp - 0x60]
call fcn.00404220
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00404490
mov ecx, dword [ebp - 0x10c]
add ecx, 0x1c
mov dword [ebp - 0x10c], ecx
cmp ecx, dword [ebp - 0x114]
jne 0x591872
mov eax, dword [ebp - 0x90]
mov cl, byte [edi + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xc5], cl
test eax, eax
je 0x591c12
push eax
call esi
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x68], 0
call fcn.00404490
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x591c3f
push ecx
call esi
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x8c], 0
call fcn.0045b490
mov al, byte [ebp - 0xc5]
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