Function at 0x590790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4b76
mov eax, dword fs:[0]
push eax
sub esp, 0x198
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 - 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], 0xd600eb
mov dword [ebp - 0x144], 0xcf00dc
mov dword [ebp - 0x140], 0xdc00cb
mov dword [ebp - 0x13c], 0xda00cc
mov dword [ebp - 0x138], 0x8c009c
mov dword [ebp - 0x134], 0xa000ab
mov dword [ebp - 0x130], 0xaa00b6
mov dword [ebp - 0x12c], 0xa800b5
mov dword [ebp - 0x128], 0xbd00ae
mov dword [ebp - 0x124], 0x9c0096
mov dword [ebp - 0x120], 0xa300a5
mov dword [ebp - 0x11c], 0xa000aa
mov dword [ebp - 0x118], 0xa200a7
mov dword [ebp - 0x114], 0x90008e
mov dword [ebp - 0x110], 0xa700a1
mov dword [ebp - 0x10c], 0xb200a4
mov dword [ebp - 0x108], 0xad00b6
mov dword [ebp - 0x104], 0xbe008c
mov dword [ebp - 0x100], 0xae00ae
mov dword [ebp - 0xfc], 0xb000b7
mov dword [ebp - 0xf8], 0xbd008e
mov dword [ebp - 0xf4], 0x9600b0
mov dword [ebp - 0xf0], 0xe5008a
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x148], ax
inc ecx
mov eax, dword [ebp - 0x14c]
cmp ecx, eax
jb 0x5908f0
xor ecx, ecx
mov dword [ebp - 0xec], SysStringLen
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 0x590940
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.0045b290
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x154]
push eax
call fcn.00591110
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0xc8], eax
test edx, edx
je 0x5909c2
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5909a5
mov esi, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
xor ecx, ecx
mov dword [ebp - 0xec], SysStringLen
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 0x5909f0
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.0045b290
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
mov dword [ebp - 0x14c], 0x2d
xor ecx, ecx
mov dword [ebp - 0x148], 0xd600eb
mov dword [ebp - 0x144], 0xcf00dc
mov dword [ebp - 0x140], 0xdc00cb
mov dword [ebp - 0x13c], 0xda00cc
mov dword [ebp - 0x138], 0x8c009c
mov dword [ebp - 0x134], 0xa000ab
mov dword [ebp - 0x130], 0xaa00b6
mov dword [ebp - 0x12c], 0xa800b5
mov dword [ebp - 0x128], 0xbd00ae
mov dword [ebp - 0x124], 0x9c0096
mov dword [ebp - 0x120], 0xa300a5
mov dword [ebp - 0x11c], 0xa000aa
mov dword [ebp - 0x118], 0xa200a7
mov dword [ebp - 0x114], 0x90008e
mov dword [ebp - 0x110], 0xa700a1
mov dword [ebp - 0x10c], 0xb200a4
mov dword [ebp - 0x108], 0xad00b6
mov dword [ebp - 0x104], 0xbe008c
mov dword [ebp - 0x100], 0xae00ae
mov dword [ebp - 0xfc], 0xb000b7
mov dword [ebp - 0xf8], 0xbd008e
mov dword [ebp - 0xf4], 0x9600b0
mov dword [ebp - 0xf0], 0xe5008a
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x148], ax
inc ecx
mov eax, dword [ebp - 0x14c]
cmp ecx, eax
jb 0x590b30
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 0x590b80
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.0045b290
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x154]
push eax
call fcn.00591110
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x590bfa
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x590be3
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 0x590c26
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.0045b290
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x164]
push eax
call fcn.00457320
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x590c9a
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x590c83
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 0x590cc6
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.0045b290
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x16c]
push eax
call fcn.005911e0
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax]
lea edi, [eax + 4]
test edx, edx
je 0x590d3a
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x590d23
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 0x590d66
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.0045b290
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 0x591090
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.0057e150
test al, al
je 0x59105d
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.0057f440
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x30]
cmp edi, dword [ebp - 0x2c]
je 0x591055
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.0057e2d0
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.0058ea60
test al, al
jne 0x591027
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x24], xmm0
call fcn.0076d2e3
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.0058e5c0
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.0059ccc0
mov edx, dword [ebp - 0xd0]
mov byte [ebp - 4], 0x12
mov eax, dword [edx + 0x3c]
cmp dword [edx + 0x40], eax
je 0x590fe4
mov esi, dword [ebp - 0x20]
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x590fd6
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 0x590ff4
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 0x591027
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x591027
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x591027
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 0x590e60
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 0x590df3
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 0x5910ad
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 0x5910d1
push ecx
call esi
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x5c], 0
call fcn.0045b490
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.0076d59e
mov esp, ebp
pop ebp
ret