Function at 0x100528a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064127
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10075604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 2
push dword [esi + 0x54]
call fcn.10012a70
mov ecx, dword [0x10075f2c]
add esp, 8
test ecx, ecx
je 0x10052911
mov edx, dword [esi + 0x68]
cmp edx, 1
jne 0x100528f7
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x64]
jb 0x10052904
cmp edx, 2
jne 0x10052911
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x64]
jae 0x10052911
push 7
push dword [esi + 0x54]
call fcn.10012a70
add esp, 8
push dword [esi + 0x60]
call fcn.10007eb0
mov edi, eax
add esp, 4
test edi, edi
je 0x10052cf7
mov dword [ebp - 0x2c], 0xf
push dword [esi + 0x60]
movzx eax, byte [edi + 4]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10007ef0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x10052983
cmp dword [ebx + 0x48], 0
je 0x10052983
push dword [esi + 0x60]
lea eax, [ebp - 0x74]
push ebx
push 0
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x74]
call fcn.10001840
jmp 0x100529ee
push dword [esi + 0x60]
lea eax, [ebp - 0x28]
push 0
push edi
push eax
call fcn.10009560
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x100529d0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x100529b5
inc eax
push 1
push eax
push dword [ebp - 0x40]
call fcn.10002610
add esp, 0xc
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10003770
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x100529eb
inc eax
push 1
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov ebx, dword [ebp - 0x44]
push ebx
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10009890
push eax
push dword [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.10013630
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10052a24
inc eax
push 1
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov eax, dword [esi + 0x68]
cmp eax, 1
jne 0x10052ae5
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x10052a4d
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bc80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
nop
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x10052a60
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x28]
push eax
call fcn.10031980
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 4
call fcn.10013630
mov eax, dword [ebp - 0x14]
add esp, 0x28
cmp eax, 0x10
jb 0x10052aaf
inc eax
push 1
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10052b6c
inc eax
push 1
push eax
push dword [ebp - 0x74]
call fcn.10002610
add esp, 0xc
jmp 0x10052b6c
cmp eax, 2
jne 0x10052b6c
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x28]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x10052b0b
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bcd0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x10052b20
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x74]
push eax
call fcn.10031980
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 6
call fcn.10013630
add esp, 0x28
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10001840
push 0x2e
push dword [esi + 0x6c]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x10052b89
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bbf0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x4c
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x10052ba0
sub esp, 0x18
mov byte [ebp - 0x47], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10052bdc
mov eax, dword [edx]
jmp 0x10052bde
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x57], 0
jne 0x10052beb
xor ecx, ecx
jmp 0x10052bfe
lea ecx, [ebp - 0x57]
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052bf4
sub ecx, dword [ebp - 0x44]
push ecx
lea eax, [ebp - 0x57]
mov ecx, edx
push eax
call fcn.10002800
lea eax, [ebp - 0x28]
push eax
call fcn.10031980
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 8
call fcn.10013630
mov eax, dword [ebp - 0x14]
add esp, 0x28
cmp eax, 0x10
jb 0x10052c3a
inc eax
push 1
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10052c67
inc eax
push 1
push eax
push dword [ebp - 0x74]
call fcn.10002610
add esp, 0xc
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10052cd0
lea ecx, [ebp - 0x40]
add eax, 4
push ecx
push eax
call fcn.1000d800
mov eax, dword [esi + 0x50]
add esp, 8
mov dword [eax + 0x50], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test ebx, ebx
je 0x10052ca4
movsx ecx, word [ebx + 0x56]
movsx eax, word [edi + 0x66]
add ecx, eax
jmp 0x10052ca8
movsx ecx, word [edi + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
mov eax, dword [eax]
test eax, eax
je 0x10052cd0
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.100131b0
mov eax, dword [esi + 0x50]
push 1
push dword [eax]
call fcn.10012b10
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10052ffa
push 1
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10002610
add esp, 0xc
jmp 0x10052ffa
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10052ffa
cmp eax, 0x5f5e100
jae 0x10052ffa
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x70]
sar eax, 2
push eax
push 1
call fcn.1000dc90
mov ecx, dword [esi + 0x70]
add esp, 8
mov edi, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], edi
test edi, edi
je 0x10052ffa
mov eax, dword [esi + 0x68]
cmp eax, 1
jne 0x10052dbf
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x8c]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 9
jb 0x10052d62
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bc10]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x10052d74
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x74]
push eax
call fcn.10031980
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 0xa
call fcn.10013630
add esp, 0x28
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x8c]
jmp 0x10052e49
cmp eax, 2
jne 0x10052e55
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0xb
jb 0x10052de8
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bd70]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
nop word [eax + eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x10052e00
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x8c]
push eax
call fcn.10031980
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 0xc
call fcn.10013630
add esp, 0x28
lea ecx, [ebp - 0x8c]
call fcn.10001840
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
push 0x2e
push dword [esi + 0x6c]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0xd
jb 0x10052e75
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bce0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x10
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x10052e90
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x8c]
push eax
call fcn.10031980
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 0xe
call fcn.10013630
add esp, 0x28
lea ecx, [ebp - 0x8c]
call fcn.10001840
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
push edi
call fcn.10007eb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10052ffa
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xf
call fcn.100568c0
movzx eax, byte [ebx + 4]
push edi
push eax
call fcn.10007ef0
mov edi, eax
add esp, 8
test edi, edi
je 0x10052f59
cmp dword [edi + 0x48], 0
je 0x10052f59
push dword [ebp - 0x44]
lea eax, [ebp - 0x8c]
push edi
push 0
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x8c]
jmp 0x10052f7d
push dword [ebp - 0x44]
lea eax, [ebp - 0xa4]
push 0
push ebx
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007d70
lea ecx, [ebp - 0xa4]
call fcn.10001840
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10052feb
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000d800
mov eax, dword [esi + 0x50]
add esp, 8
mov dword [eax + 0x50], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test edi, edi
je 0x10052fbf
movsx ecx, word [edi + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x10052fc3
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
mov eax, dword [eax]
test eax, eax
je 0x10052feb
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.100131b0
mov eax, dword [esi + 0x50]
push 1
push dword [eax]
call fcn.10012b10
add esp, 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
mov ecx, esi
call fcn.10054b50
mov ecx, esi
call fcn.10054ed0
push 1
push dword [esi + 0x1c]
call fcn.10012b10
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e77e
mov esp, ebp
pop ebp
ret