Function at 0x591780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6316
mov eax, dword fs:[0]
push eax
sub esp, 0x198
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 - 0xd0], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x14c], 0x2d
mov dword [ebp - 0x148], 0xc500fa
mov dword [ebp - 0x144], 0xd800cd
mov dword [ebp - 0x140], 0xcf00da
mov dword [ebp - 0x13c], 0xd500dd
mov dword [ebp - 0x138], 0xff00ed
mov dword [ebp - 0x134], 0xd700da
mov dword [ebp - 0x130], 0xd900c7
mov dword [ebp - 0x12c], 0xd700c4
mov dword [ebp - 0x128], 0xce00df
mov dword [ebp - 0x124], 0xeb00e7
mov dword [ebp - 0x120], 0xd000d4
mov dword [ebp - 0x11c], 0xaf00db
mov dword [ebp - 0x118], 0xb100b6
mov dword [ebp - 0x114], 0x87009f
mov dword [ebp - 0x110], 0xb400b0
mov dword [ebp - 0x10c], 0xad00b5
mov dword [ebp - 0x108], 0xbe00a7
mov dword [ebp - 0x104], 0xa9009d
mov dword [ebp - 0x100], 0xbd00bf
mov dword [ebp - 0xfc], 0xbf00a6
mov dword [ebp - 0xf8], 0x8e00bf
mov dword [ebp - 0xf4], 0xa10081
mov dword [ebp - 0xf0], 0xd600bb
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x148], ax
inc ecx
mov eax, dword [ebp - 0x14c]
cmp ecx, eax
jb 0x5918e0
xor ecx, ecx
mov dword [ebp - 0xec], VariantCopy
mov word [ebp + eax*2 - 0x148], cx
xor eax, eax
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0xd4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xe8], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591930
sub ecx, edx
lea eax, [ebp - 0x148]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x154]
push eax
call fcn.00592100
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0xc8], eax
test edx, edx
je 0x5919b2
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x591995
mov esi, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
xor ecx, ecx
mov dword [ebp - 0xec], VariantCopy
mov word [eax + edx*2], cx
mov dword [ebp - 0xd8], ecx
mov word [ebp - 0xe8], cx
mov ecx, eax
mov dword [ebp - 0xd4], 7
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5919e0
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
mov dword [ebp - 0x14c], 0x2d
xor ecx, ecx
mov dword [ebp - 0x148], 0xc500fa
mov dword [ebp - 0x144], 0xd800cd
mov dword [ebp - 0x140], 0xcf00da
mov dword [ebp - 0x13c], 0xd500dd
mov dword [ebp - 0x138], 0xff00ed
mov dword [ebp - 0x134], 0xd700da
mov dword [ebp - 0x130], 0xd900c7
mov dword [ebp - 0x12c], 0xd700c4
mov dword [ebp - 0x128], 0xce00df
mov dword [ebp - 0x124], 0xeb00e7
mov dword [ebp - 0x120], 0xd000d4
mov dword [ebp - 0x11c], 0xaf00db
mov dword [ebp - 0x118], 0xb100b6
mov dword [ebp - 0x114], 0x87009f
mov dword [ebp - 0x110], 0xb400b0
mov dword [ebp - 0x10c], 0xad00b5
mov dword [ebp - 0x108], 0xbe00a7
mov dword [ebp - 0x104], 0xa9009d
mov dword [ebp - 0x100], 0xbd00bf
mov dword [ebp - 0xfc], 0xbf00a6
mov dword [ebp - 0xf8], 0x8e00bf
mov dword [ebp - 0xf4], 0xa10081
mov dword [ebp - 0xf0], 0xd600bb
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x148], ax
inc ecx
mov eax, dword [ebp - 0x14c]
cmp ecx, eax
jb 0x591b20
xor ecx, ecx
mov dword [ebp - 0xec], reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp + eax*2 - 0x148], cx
xor eax, eax
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0xd4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xe8], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591b70
sub ecx, edx
lea eax, [ebp - 0x148]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x154]
push eax
call fcn.00592100
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x591bea
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x591bd3
mov esi, dword [ebp - 0xd0]
xor eax, eax
mov dword [ebp - 0xec], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov word [edi + edx*2], ax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591c16
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x164]
push eax
call fcn.00458020
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x591c8a
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x591c73
mov esi, dword [ebp - 0xd0]
xor eax, eax
mov dword [ebp - 0xec], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov word [edi + edx*2], ax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591cb6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x16c]
push eax
call fcn.005921d0
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x591d2a
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x591d13
mov esi, dword [ebp - 0xd0]
xor eax, eax
mov dword [ebp - 0xec], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov word [edi + edx*2], ax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x591d56
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xe8]
call fcn.004044f0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bfa0
lea ecx, [ebp - 0xe8]
call fcn.00404490
push 0x30
lea eax, [ebp - 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x3c], 7
xor ecx, ecx
mov dword [ebp - 0x60], eax
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], cx
mov word [ebp - 0x38], ax
mov byte [ebp - 0x36], al
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x170], edx
cmp ecx, edx
je 0x592080
mov eax, dword [ecx]
mov dword [ebp - 0x94], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x90]
call fcn.00404120
push 0xf003f
push 0x100
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x60]
call fcn.0057f2d0
test al, al
je 0x59204d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
push eax
movq qword [ebp - 0x30], xmm0
call fcn.005805c0
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x30]
cmp edi, dword [ebp - 0x2c]
je 0x592045
nop word [eax + eax]
push edi
lea ecx, [ebp - 0xc4]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00404120
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x60]
call fcn.0057f450
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xe8]
call fcn.00404490
lea ecx, [ebp - 0x1a4]
call fcn.00404490
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xf
call fcn.00404490
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xac]
call fcn.0041cd00
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0x10
push eax
call fcn.0058fa50
test al, al
jne 0x592017
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x24], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0x174], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0x11
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0xac]
mov ecx, esi
push 0
push 1
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0058f5b0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24]
push dword [ebp - 0x174]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
call fcn.0059dcc0
mov edx, dword [ebp - 0xd0]
mov byte [ebp - 4], 0x12
mov eax, dword [edx + 0x3c]
cmp dword [edx + 0x40], eax
je 0x591fd4
mov esi, dword [ebp - 0x20]
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x591fc6
lock inc dword [esi + 4]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [eax + 4], esi
add dword [edx + 0x3c], 8
jmp 0x591fe4
lea ecx, [ebp - 0x24]
push ecx
push eax
lea ecx, [edx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0xd0]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0x13
test esi, esi
je 0x592017
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x592017
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x592017
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.00404490
lea ecx, [ebp - 0x78]
call fcn.00404490
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 9
call fcn.00404490
add edi, 0x18
cmp edi, dword [ebp - 0x2c]
jne 0x591e50
lea ecx, [ebp - 0x30]
call fcn.00404220
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
call fcn.00404490
mov ecx, dword [ebp - 0xc8]
add ecx, 0x1c
mov dword [ebp - 0xc8], ecx
cmp ecx, dword [ebp - 0x170]
jne 0x591de3
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0xd0]
mov cl, byte [esi + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xc9], cl
test eax, eax
je 0x59209d
push eax
call esi
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x38], 0
call fcn.00404490
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x5920c1
push ecx
call esi
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x5c], 0
call fcn.0045c1a0
mov al, byte [ebp - 0xc9]
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