Function at 0x100bf950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], esi
test byte [edi + 0x104], 1
jne 0x100bf986
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 7]
shl ecx, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
or ecx, eax
xor ebx, dword [edi]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x24], ebx
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
xor ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
xor ecx, dword [edi + 8]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x24]
xor ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x100]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
je 0x100bfb3b
nop word [eax + eax]
mov ecx, dword [eax + 4]
add edi, 0x10
movzx edx, byte [eax + 0xa]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101c91e0]
xor esi, dword [edx*4 + 0x101c95e0]
movzx ecx, byte [eax + 0xf]
xor esi, dword [ecx*4 + 0x101c99e0]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x101c8de0]
mov ecx, dword [ebp - 0x28]
mov ebx, esi
xor ebx, dword [edi]
mov dword [ecx], ebx
mov ecx, dword [eax + 8]
movzx edx, byte [eax + 0xe]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101c91e0]
xor esi, dword [edx*4 + 0x101c95e0]
movzx ecx, byte [eax + 3]
xor esi, dword [ecx*4 + 0x101c99e0]
movzx ecx, byte [eax + 4]
xor esi, dword [ecx*4 + 0x101c8de0]
xor esi, dword [edi + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], esi
mov ecx, dword [eax + 0xc]
movzx edx, byte [eax + 7]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101c91e0]
xor esi, dword [edx*4 + 0x101c99e0]
movzx ecx, byte [eax + 2]
xor esi, dword [ecx*4 + 0x101c95e0]
movzx ecx, byte [eax + 8]
xor esi, dword [ecx*4 + 0x101c8de0]
xor esi, dword [edi + 8]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], esi
mov ecx, dword [eax]
movzx edx, byte [eax + 6]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101c91e0]
movzx ecx, byte [eax + 0xb]
xor esi, dword [edx*4 + 0x101c95e0]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
xor esi, dword [ecx*4 + 0x101c99e0]
movzx ecx, byte [eax + 0xc]
mov eax, edx
xor esi, dword [ecx*4 + 0x101c8de0]
xor esi, dword [edi + 0xc]
sub dword [ebp - 0x2c], 1
mov dword [edx + 0xc], esi
jne 0x100bfa40
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x101ca1e0]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
xor ecx, dword [eax*4 + 0x101ca5e0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101ca9e0]
movzx eax, dl
xor ecx, dword [eax*4 + str.cwko0]
xor ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0xc]
shr eax, 8
mov dword [ebp - 0x30], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x101ca1e0]
xor ecx, dword [eax*4 + 0x101ca5e0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101ca9e0]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + str.cwko0]
mov eax, edx
xor ecx, dword [edi + 0x14]
shr eax, 0x10
mov dword [ebp - 0x2c], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*4 + 0x101ca5e0]
xor ecx, dword [eax*4 + 0x101ca1e0]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101ca9e0]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + str.cwko0]
xor ecx, dword [edi + 0x18]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x28], ecx
movzx ecx, dl
mov edx, dword [ebp - 0x30]
mov ecx, dword [ecx*4 + 0x101ca1e0]
xor ecx, dword [eax*4 + 0x101ca5e0]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101ca9e0]
movzx eax, bl
xor ecx, dword [eax*4 + str.cwko0]
mov eax, edx
xor ecx, dword [edi + 0x1c]
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi], dl
shr edx, 0x18
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov edx, dword [ebp - 0x2c]
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 4], dl
mov byte [esi + 6], al
shr edx, 0x18
mov byte [esi + 7], dl
mov edx, dword [ebp - 0x28]
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ecx
mov byte [esi + 0xc], cl
shr ecx, 0x18
mov byte [esi + 0xf], cl
mov ecx, dword [ebp - 4]
mov byte [esi + 8], dl
xor ecx, ebp
shr eax, 0x10
pop ebx
shr edx, 0x18
mov byte [esi + 0xe], al
mov eax, 1
pop edi
mov byte [esi + 0xb], dl
pop esi
call fcn.1018a722
mov esp, ebp
pop ebp
ret