Function at 0x582150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a2f29
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
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 dword [ebp - 0x120], edx
mov edi, ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x180], edi
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, 1
movq qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], esi
xor ecx, ecx
mov dword [ebp - 0x8c], 0x2d
mov dword [ebp - 0x88], 0xf600eb
mov dword [ebp - 0x84], 0xef00fc
mov dword [ebp - 0x80], 0xfc00eb
mov dword [ebp - 0x7c], 0xfa00ec
mov dword [ebp - 0x78], 0x8c009c
mov dword [ebp - 0x74], 0xa000ab
mov dword [ebp - 0x70], 0xaa00b6
mov dword [ebp - 0x6c], 0xa800b5
mov dword [ebp - 0x68], 0xbd00ae
mov dword [ebp - 0x64], 0x9c0096
mov dword [ebp - 0x60], 0xa300a5
mov dword [ebp - 0x5c], 0xa000aa
mov dword [ebp - 0x58], 0xa200a7
mov dword [ebp - 0x54], 0x90008e
mov dword [ebp - 0x50], 0xa700a1
mov dword [ebp - 0x4c], 0xb200a4
mov dword [ebp - 0x48], 0xad00b6
mov dword [ebp - 0x44], 0xbe008c
mov dword [ebp - 0x40], 0xae00ae
mov dword [ebp - 0x3c], 0xb000b7
mov dword [ebp - 0x38], 0xbd008e
mov dword [ebp - 0x34], 0x9600b0
mov dword [ebp - 0x30], 0xe5008a
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x88], ax
inc ecx
mov eax, dword [ebp - 0x8c]
cmp ecx, eax
jb 0x5822b0
xor ecx, ecx
mov dword [ebp - 0x2c], SysStringLen
mov word [ebp + eax*2 - 0x88], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5822f3
sub ecx, edx
lea eax, [ebp - 0x88]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa0]
call fcn.0045b290
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404490
lea eax, [ebp - 0x94]
push eax
call fcn.00582e70
mov edx, eax
xor ecx, ecx
lea eax, [edx + 4]
mov dword [ebp - 0x118], eax
mov eax, dword [edx]
test eax, eax
je 0x582376
mov esi, dword [ebp - 0x118]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov eax, dword [edx]
cmp ecx, eax
jb 0x582360
mov esi, 1
mov edx, dword [ebp - 0x118]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], SysStringLen
mov dword [ebp - 0x14], 7
mov word [edx + eax*2], cx
mov ecx, edx
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x11c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5823a4
sub ecx, dword [ebp - 0x11c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa0]
call fcn.0045b290
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404490
mov dword [ebp - 0x8c], 0x2d
xor ecx, ecx
mov dword [ebp - 0x88], 0xf600eb
mov dword [ebp - 0x84], 0xef00fc
mov dword [ebp - 0x80], 0xfc00eb
mov dword [ebp - 0x7c], 0xfa00ec
mov dword [ebp - 0x78], 0x8c009c
mov dword [ebp - 0x74], 0xa000ab
mov dword [ebp - 0x70], 0xaa00b6
mov dword [ebp - 0x6c], 0xa800b5
mov dword [ebp - 0x68], 0xbd00ae
mov dword [ebp - 0x64], 0x9c0096
mov dword [ebp - 0x60], 0xa300a5
mov dword [ebp - 0x5c], 0xa000aa
mov dword [ebp - 0x58], 0xa200a7
mov dword [ebp - 0x54], 0x90008e
mov dword [ebp - 0x50], 0xa700a1
mov dword [ebp - 0x4c], 0xb200a4
mov dword [ebp - 0x48], 0xad00b6
mov dword [ebp - 0x44], 0xbe008c
mov dword [ebp - 0x40], 0xae00ae
mov dword [ebp - 0x3c], 0xb000b7
mov dword [ebp - 0x38], 0xbd008e
mov dword [ebp - 0x34], 0x9600b0
mov dword [ebp - 0x30], 0xe5008a
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x88], ax
inc ecx
mov eax, dword [ebp - 0x8c]
cmp ecx, eax
jb 0x5824a0
xor ecx, ecx
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp + eax*2 - 0x88], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5824e3
sub ecx, edx
lea eax, [ebp - 0x88]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa0]
call fcn.0045b290
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404490
lea eax, [ebp - 0x94]
push eax
call fcn.00582e70
mov dword [ebp - 0x11c], eax
xor ecx, ecx
lea edx, [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x58255a
mov esi, dword [ebp - 0x11c]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x582544
mov esi, 1
xor ecx, ecx
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
mov ecx, edx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x11c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582582
sub ecx, dword [ebp - 0x11c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xa0]
call fcn.0045b290
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404490
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x140], eax
cmp ecx, eax
je 0x582e40
nop
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404120
push 0x30
lea eax, [ebp - 0x5c]
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
push 0xf003f
push 0x200
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e150
test al, al
je 0x582a09
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xc8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
push eax
movq qword [ebp - 0xd0], xmm0
call fcn.0057f440
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0xcc]
je 0x5829fa
nop word [eax + eax]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x138]
call fcn.00404120
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e2d0
mov dword [ebp - 0xfc], 0
xor ecx, ecx
mov dword [ebp - 0xf8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xfc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x170]
call fcn.00404490
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xe
call fcn.00404490
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x158]
movups xmmword [ebp - 0xc4], xmm0
movups xmmword [ebp - 0xb4], xmm0
call fcn.0041cd00
xor ecx, ecx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], cx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x11
call fcn.00403b80
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x13
call fcn.00404490
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0xc4]
call fcn.00402f00
test al, al
jne 0x58283f
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0xc4]
push eax
call fcn.00403a30
test al, al
jne 0x58283f
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00403720
push dword [ebp - 0x120]
mov byte [ebp - 4], 0x14
or esi, 2
mov ecx, eax
mov dword [ebp - 0x114], esi
call fcn.00403a30
mov byte [ebp - 0x10d], 0
test al, al
je 0x582846
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x114]
test al, 2
je 0x582876
and eax, 0xfffffffd
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x114], eax
call fcn.00404220
lea ecx, [ebp - 0x17c]
call fcn.00404490
cmp byte [ebp - 0x10d], 0
je 0x5829a9
push 0x7cd374
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.00421b40
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 8
push dword [ebp - 0xe4]
cmovae eax, dword [ebp - 0xf4]
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x114]
xor ecx, ecx
or esi, 8
mov dword [ebp - 0x114], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x198], xmm0
mov word [eax], cx
movq qword [ebp - 0x188], xmm1
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x13c], ecx
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x188], 0
movq qword [ebp - 0x128], xmm1
mov dword [ebp - 0x184], 7
mov word [ebp - 0x198], ax
mov byte [ebp - 4], 0x17
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x582977
mov dword [eax], ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
movups xmmword [eax + 4], xmm0
mov dword [ebp - 0x128], 0
movq qword [eax + 0x14], xmm1
xor eax, eax
add dword [edi + 4], 0x1c
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
jmp 0x582986
lea ecx, [ebp - 0x13c]
push ecx
push eax
mov ecx, edi
call fcn.0045c050
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0x198]
call fcn.00404490
lea ecx, [ebp - 0x170]
call fcn.00404490
jmp 0x5829af
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0xac]
call fcn.00404220
lea ecx, [ebp - 0xc4]
call fcn.00404490
lea ecx, [ebp - 0x10c]
call fcn.00404490
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 8
call fcn.00404490
mov eax, dword [ebp - 0x118]
add eax, 0x18
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0xcc]
jne 0x5826a0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.00404220
push 0xf003f
push 0x100
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e150
test al, al
je 0x582dd5
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd4], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
push eax
movq qword [ebp - 0xdc], xmm0
call fcn.0057f440
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0xd8]
je 0x582dca
nop word [eax + eax]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x138]
call fcn.00404120
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057e2d0
mov dword [ebp - 0xfc], 0
xor ecx, ecx
mov dword [ebp - 0xf8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xfc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x170]
call fcn.00404490
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x1e
call fcn.00404490
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x158]
movups xmmword [ebp - 0xc4], xmm0
movups xmmword [ebp - 0xb4], xmm0
call fcn.0041cd00
xor ecx, ecx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], cx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x21
call fcn.00403b80
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x23
call fcn.00404490
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0xc4]
call fcn.00402f00
test al, al
jne 0x582c0f
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0xc4]
push eax
call fcn.00403a30
test al, al
jne 0x582c0f
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00403720
push dword [ebp - 0x120]
mov byte [ebp - 4], 0x24
or esi, 4
mov ecx, eax
mov dword [ebp - 0x114], esi
call fcn.00403a30
mov byte [ebp - 0x10d], 0
test al, al
je 0x582c16
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 0x23
mov eax, dword [ebp - 0x114]
test al, 4
je 0x582c46
and eax, 0xfffffffb
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x114], eax
call fcn.00404220
lea ecx, [ebp - 0x17c]
call fcn.00404490
cmp byte [ebp - 0x10d], 0
je 0x582d79
push 0x7cd374
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.00421b40
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 8
push dword [ebp - 0xe4]
cmovae eax, dword [ebp - 0xf4]
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x114]
xor ecx, ecx
or esi, 0x10
mov dword [ebp - 0x114], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x1b0], xmm0
mov word [eax], cx
movq qword [ebp - 0x1a0], xmm1
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x13c], ecx
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x1a0], 0
movq qword [ebp - 0x128], xmm1
mov dword [ebp - 0x19c], 7
mov word [ebp - 0x1b0], ax
mov byte [ebp - 4], 0x27
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x582d47
mov dword [eax], ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
movups xmmword [eax + 4], xmm0
mov dword [ebp - 0x128], 0
movq qword [eax + 0x14], xmm1
xor eax, eax
add dword [edi + 4], 0x1c
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
jmp 0x582d56
lea ecx, [ebp - 0x13c]
push ecx
push eax
mov ecx, edi
call fcn.0045c050
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0x1b0]
call fcn.00404490
lea ecx, [ebp - 0x170]
call fcn.00404490
jmp 0x582d7f
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0xac]
call fcn.00404220
lea ecx, [ebp - 0xc4]
call fcn.00404490
lea ecx, [ebp - 0x10c]
call fcn.00404490
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x18
call fcn.00404490
mov eax, dword [ebp - 0x118]
add eax, 0x18
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0xd8]
jne 0x582a70
lea ecx, [ebp - 0xdc]
call fcn.00404220
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x582dea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x582e12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
call fcn.00404490
mov ecx, dword [ebp - 0x11c]
add ecx, 0x1c
mov dword [ebp - 0x11c], ecx
cmp ecx, dword [ebp - 0x140]
jne 0x5825e0
lea ecx, [ebp - 0xa0]
call fcn.0045b490
mov eax, edi
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