Function at 0x100537c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065137
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10077604]
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.10012b40
mov ecx, dword [0x10077f2c]
add esp, 8
test ecx, ecx
je 0x10053831
mov edx, dword [esi + 0x68]
cmp edx, 1
jne 0x10053817
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x64]
jb 0x10053824
cmp edx, 2
jne 0x10053831
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x64]
jae 0x10053831
push 7
push dword [esi + 0x54]
call fcn.10012b40
add esp, 8
push dword [esi + 0x60]
call fcn.10007f40
mov edi, eax
add esp, 4
test edi, edi
je 0x10053c17
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.10007f80
mov ebx, eax
add esp, 8
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x100538a3
cmp dword [ebx + 0x48], 0
je 0x100538a3
push dword [esi + 0x60]
lea eax, [ebp - 0x74]
push ebx
push 0
push eax
call fcn.100095f0
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.10007e10
lea ecx, [ebp - 0x74]
call fcn.10001840
jmp 0x1005390e
push dword [esi + 0x60]
lea eax, [ebp - 0x28]
push 0
push edi
push eax
call fcn.100095f0
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x100538f0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x100538d5
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 0x1005390b
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.10009920
push eax
push dword [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.100136d0
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10053944
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 0x10053a05
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x1005396d
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006ccb0]
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 0x10053980
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.100322e0
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 4
call fcn.100136d0
mov eax, dword [ebp - 0x14]
add esp, 0x28
cmp eax, 0x10
jb 0x100539cf
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 0x10053a8c
inc eax
push 1
push eax
push dword [ebp - 0x74]
call fcn.10002610
add esp, 0xc
jmp 0x10053a8c
cmp eax, 2
jne 0x10053a8c
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x28]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x10053a2b
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006cd20]
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 0x10053a40
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.100322e0
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 6
call fcn.100136d0
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.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x10053aa9
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006cc30]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x79
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x10053ac0
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 0x10053afc
mov eax, dword [edx]
jmp 0x10053afe
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x57], 0
jne 0x10053b0b
xor ecx, ecx
jmp 0x10053b1e
lea ecx, [ebp - 0x57]
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10053b14
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.100322e0
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 8
call fcn.100136d0
mov eax, dword [ebp - 0x14]
add esp, 0x28
cmp eax, 0x10
jb 0x10053b5a
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 0x10053b87
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 0x10053bf0
lea ecx, [ebp - 0x40]
add eax, 4
push ecx
push eax
call fcn.1000d880
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 0x10053bc4
movsx ecx, word [ebx + 0x56]
movsx eax, word [edi + 0x66]
add ecx, eax
jmp 0x10053bc8
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 0x10053bf0
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.10013250
mov eax, dword [esi + 0x50]
push 1
push dword [eax]
call fcn.10012be0
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10053f1a
push 1
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10002610
add esp, 0xc
jmp 0x10053f1a
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10053f1a
cmp eax, 0x5f5e100
jae 0x10053f1a
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x70]
sar eax, 2
push eax
push 1
call fcn.1000dd10
mov ecx, dword [esi + 0x70]
add esp, 8
mov edi, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], edi
test edi, edi
je 0x10053f1a
mov eax, dword [esi + 0x68]
cmp eax, 1
jne 0x10053cdf
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x8c]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 9
jb 0x10053c82
mov eax, dword [eax]
movaps xmm0, xmmword [str.rR_R91R_]
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 0x10053c94
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.100322e0
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 0xa
call fcn.100136d0
add esp, 0x28
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x8c]
jmp 0x10053d69
cmp eax, 2
jne 0x10053d75
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x74]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0xb
jb 0x10053d08
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006cca0]
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 0x10053d20
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.100322e0
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 0xc
call fcn.100136d0
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.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0xd
jb 0x10053d95
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006ccc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x1c
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x10053db0
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.100322e0
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 0xe
call fcn.100136d0
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.10007f40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10053f1a
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.100577e0
movzx eax, byte [ebx + 4]
push edi
push eax
call fcn.10007f80
mov edi, eax
add esp, 8
test edi, edi
je 0x10053e79
cmp dword [edi + 0x48], 0
je 0x10053e79
push dword [ebp - 0x44]
lea eax, [ebp - 0x8c]
push edi
push 0
push eax
call fcn.100095f0
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007e10
lea ecx, [ebp - 0x8c]
jmp 0x10053e9d
push dword [ebp - 0x44]
lea eax, [ebp - 0xa4]
push 0
push ebx
push eax
call fcn.100095f0
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007e10
lea ecx, [ebp - 0xa4]
call fcn.10001840
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10053f0b
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000d880
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 0x10053edf
movsx ecx, word [edi + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x10053ee3
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 0x10053f0b
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.10013250
mov eax, dword [esi + 0x50]
push 1
push dword [eax]
call fcn.10012be0
add esp, 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
mov ecx, esi
call fcn.10055a70
mov ecx, esi
call fcn.10055df0
push 1
push dword [esi + 0x1c]
call fcn.10012be0
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.1005f6be
mov esp, ebp
pop ebp
ret