Function at 0x100023c1
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x51b184], 0
mov eax, edx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, ecx
jne 0x100023ea
call fcn.100021b3
mov eax, dword [esp + 0x10]
mov dword [0x51b184], 1
lea edi, [esi + 8]
mov dword [esi], 0xe
xor ebp, ebp
mov dword [esi + 4], edi
mov ebx, ebp
lea edx, [eax + 2]
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, 8
jb 0x100023fd
mov eax, dword [esi]
sub eax, 0xa
je 0x10002583
dec eax
dec eax
je 0x1000250a
dec eax
dec eax
jne 0x100025ea
mov ebx, dword [edi + 0x1c]
movzx eax, bl
mov edx, dword [edi + 0xc]
movzx ecx, byte [eax + 0x51d2c0]
movzx eax, byte [edi + 0x1f]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0x1e]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0x1d]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [ebp + 0x51ca90]
add ebp, 4
xor ecx, dword [edi]
lea edi, [edi + 0x20]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x18]
xor ecx, eax
mov dword [edi + 4], eax
xor edx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
movzx eax, byte [edi + 0xf]
movzx ecx, byte [eax + 0x51d2c0]
movzx eax, byte [edi + 0xe]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
mov eax, dword [edi - 0xc]
xor ecx, dword [edi - 0x10]
xor eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
xor ecx, ebx
mov dword [edi + 0x1c], ecx
cmp ebp, 0x1c
jb 0x10002442
jmp 0x100025ea
mov ebx, dword [edi + 0x14]
movzx eax, bl
movzx ecx, byte [eax + 0x51d2c0]
movzx eax, byte [edi + 0x17]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0x15]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [ebp + 0x51ca90]
add ebp, 4
xor ecx, dword [edi]
lea edi, [edi + 0x18]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x10]
xor ecx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0xc]
xor eax, ecx
mov dword [edi + 8], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
xor ecx, ebx
mov dword [edi + 0x14], ecx
cmp ebp, 0x20
jb 0x1000250a
jmp 0x100025ea
mov ebx, dword [edi + 0xc]
movzx eax, bl
movzx ecx, byte [eax + 0x51d2c0]
movzx eax, byte [edi + 0xf]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
movzx eax, byte [eax + 0x51d2c0]
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [ebp + 0x51ca90]
add ebp, 4
xor ecx, dword [edi]
lea edi, [edi + 0x10]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 8]
xor ecx, eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
xor ecx, ebx
mov dword [edi + 0xc], ecx
cmp ebp, 0x28
jb 0x10002583
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret