Function at 0x10031b97
Capabilities:
Encode data using xor

Disassembly:
push 0x104
mov eax, 0x100a2adc
call fcn.1009e14c
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x10113814]
mov esi, 0x1013b9ec
mov edi, dword [eax + ecx*4]
mov eax, dword [0x1013ba34]
cmp eax, dword [edi + 4]
jle 0x10031c2c
push 0x1013ba34
call fcn.1009cfcc
cmp dword [0x1013ba34], 0xffffffff
pop ecx
jne 0x10031c2c
mov dword [ebp - 4], ebx
mov cl, 0xe
mov dword [ebp - 0x14], 0x6f664d0e
mov eax, ebx
mov word [ebp - 0x10], 0x7d63
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 5
jae 0x10031c03
mov cl, byte [ebp - 0x14]
jmp 0x10031bf4
lea eax, [ebp - 0x13]
mov byte [ebp - 0xe], bl
push eax
mov ecx, esi
call fcn.1000801c
push 0x100a59a8
call fcn.1009d3d7
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x1013ba34
call fcn.1009cf82
pop ecx
mov eax, dword [0x1013ba80]
cmp eax, dword [edi + 4]
jle 0x10031c69
mov edi, 0x1013ba80
push edi
call fcn.1009cfcc
cmp dword [0x1013ba80], 0xffffffff
pop ecx
jne 0x10031c69
cmp dword [0x1013ba00], 0x10
push edi
cmovae esi, dword [0x1013b9ec]
mov dword [0x1013ba30], esi
call fcn.1009cf82
pop ecx
push dword [0x1013ba30]
lea ecx, [ebp - 0xb0]
call fcn.1000801c
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 1
mov edi, 0x1013ae90
push eax
mov ecx, edi
call fcn.1004270b
movaps xmm0, xmmword [0x100ff370]
mov esi, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x375a0718
mov ecx, ebx
mov dword [ebp - 0x20], 0x719151c
mov dword [ebp - 0x1c], 0x40d205a
mov word [ebp - 0x18], 0x11
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x1c
jb 0x10031cbe
lea eax, [ebp - 0x33]
mov byte [ebp - 0x17], bl
push eax
lea ecx, [ebp - 0x98]
call fcn.1000801c
push ecx
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.10045a90
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1004270b
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.1004a9a5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov dword [0x101129e0], eax
call fcn.10007ff9
lea ecx, [ebp - 0x98]
call fcn.10007ff9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.10007ff9
push dword [0x1013ba30]
lea ecx, [ebp - 0xe0]
call fcn.1000801c
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.1004270b
movaps xmm0, xmmword [0x100ff4b0]
mov esi, eax
movups xmmword [ebp - 0x5c], xmm0
mov ecx, ebx
movaps xmm0, xmmword [0x100ff100]
movups xmmword [ebp - 0x4c], xmm0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x1e
jb 0x10031d71
lea eax, [ebp - 0x5b]
mov byte [ebp - 0x3d], bl
push eax
lea ecx, [ebp - 0xc8]
call fcn.1000801c
push ecx
lea edx, [ebp - 0xc8]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10045a90
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.1004270b
mov ecx, eax
call fcn.10045e06
lea ecx, [ebp - 0x30]
mov byte [0x101129dc], al
call fcn.10007ff9
lea ecx, [ebp - 0xc8]
call fcn.10007ff9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.10007ff9
push dword [0x1013ba30]
lea ecx, [ebp - 0x98]
call fcn.1000801c
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 7
push eax
mov ecx, edi
call fcn.1004270b
movaps xmm0, xmmword [0x100ff700]
mov esi, eax
movups xmmword [ebp - 0x38], xmm0
mov ecx, ebx
movaps xmm0, xmmword [0x100ff110]
movups xmmword [ebp - 0x28], xmm0
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1e
jb 0x10031e1e
lea eax, [ebp - 0x37]
mov byte [ebp - 0x19], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.1000801c
push ecx
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.10045a90
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.1004270b
mov ecx, eax
call fcn.10045e06
lea ecx, [ebp - 0x54]
mov byte [0x101129dd], al
call fcn.10007ff9
lea ecx, [ebp - 0xb0]
call fcn.10007ff9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.10007ff9
push dword [0x1013ba30]
lea ecx, [ebp - 0xc8]
call fcn.1000801c
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.1004270b
movaps xmm0, xmmword [0x100ff920]
mov esi, eax
movups xmmword [ebp - 0x80], xmm0
mov ecx, ebx
mov word [ebp - 0x60], 0x353d
movaps xmm0, xmmword [0x100ff950]
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x5e], bl
mov al, byte [ebp - 0x80]
xor byte [ebp + ecx - 0x7f], al
inc ecx
cmp ecx, 0x21
jb 0x10031ed4
lea eax, [ebp - 0x7f]
mov byte [ebp - 0x5e], bl
push eax
lea ecx, [ebp - 0xe0]
call fcn.1000801c
push ecx
lea edx, [ebp - 0xe0]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
call fcn.10045a90
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.1004270b
mov ecx, eax
call fcn.10045e06
lea ecx, [ebp - 0x30]
mov byte [0x101129de], al
call fcn.10007ff9
lea ecx, [ebp - 0xe0]
call fcn.10007ff9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.10007ff9
push dword [0x1013ba30]
lea ecx, [ebp - 0x110]
call fcn.1000801c
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.1004270b
movaps xmm0, xmmword [0x100fff10]
mov esi, eax
movups xmmword [ebp - 0x3c], xmm0
mov ecx, ebx
mov dword [ebp - 0x1c], 0x56547551
movaps xmm0, xmmword [0x100ffed0]
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x18], 0x43
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x24
jb 0x10031f8e
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x17], bl
push eax
lea ecx, [ebp - 0xf8]
call fcn.1000801c
push ecx
lea edx, [ebp - 0xf8]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x78]
call fcn.10045a90
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.1004270b
mov ecx, eax
call fcn.10045e06
lea ecx, [ebp - 0x78]
mov byte [0x101129df], al
call fcn.10007ff9
lea ecx, [ebp - 0xf8]
call fcn.10007ff9
lea ecx, [ebp - 0x110]
call fcn.10007ff9
call fcn.1009e115
ret