Function at 0x10002e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x204], 0x22
movzx ecx, byte [eax + 2]
movzx edx, byte [eax + 1]
push edi
movzx edi, byte [eax + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [eax]
shl edi, 8
or edi, edx
shl edi, 8
or edi, ecx
mov dword [esi], edi
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
shl ecx, 8
or ecx, edx
mov dword [esi + 4], ecx
movzx edx, byte [eax + 0xa]
mov dword [ebp - 0x24], ecx
movzx ecx, byte [eax + 0xb]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 9]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 8]
shl ecx, 8
or ecx, edx
mov dword [esi + 8], ecx
movzx edx, byte [eax + 0xe]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [eax + 0xf]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xd]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xc]
mov dword [esi + 0x200], 0xe
shl ecx, 8
or ecx, edx
mov dword [esi + 0xc], ecx
movzx edx, byte [eax + 0x13]
movzx ebx, byte [eax + 0x12]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0x11]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0x10]
shl edx, 8
or edx, ebx
mov dword [esi + 0x10], edx
movzx ebx, byte [eax + 0x16]
mov dword [ebp - 0x18], edx
movzx edx, byte [eax + 0x17]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0x15]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0x14]
shl edx, 8
or edx, ebx
mov dword [esi + 0x14], edx
movzx ebx, byte [eax + 0x1a]
mov dword [ebp - 0x14], edx
movzx edx, byte [eax + 0x1b]
shl edx, 8
or edx, ebx
shl edx, 8
movzx ebx, byte [eax + 0x19]
or edx, ebx
movzx ebx, byte [eax + 0x18]
shl edx, 8
or edx, ebx
mov dword [esi + 0x18], edx
movzx ebx, byte [eax + 0x1e]
mov dword [ebp - 0x10], edx
movzx edx, byte [eax + 0x1f]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0x1d]
movzx eax, byte [eax + 0x1c]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, eax
mov dword [esi + 0x1c], edx
add esi, 0x24
mov dword [ebp - 4], 0
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x1003af38]
xor eax, dword [ebx*4 + 0x1003ab38]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor eax, dword [ebx*4 + str.cwko0]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x1003b338]
mov ebx, dword [ebp - 4]
xor eax, dword [ebx + 0x100396c0]
mov ebx, dword [ebp - 0x20]
xor edi, eax
mov eax, dword [ebp - 0x24]
xor eax, edi
xor ebx, eax
mov dword [esi + 4], ebx
xor ecx, ebx
mov dword [esi], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov dword [esi - 4], edi
mov dword [esi + 8], ecx
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x1003b338]
xor eax, dword [ebx*4 + 0x1003af38]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor eax, dword [ebx*4 + 0x1003ab38]
movzx ebx, cl
xor eax, dword [ebx*4 + str.cwko0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 8]
add esi, 0x20
xor ebx, eax
mov dword [esi - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
xor eax, ebx
xor edx, eax
mov dword [esi - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [esi - 0x10], ebx
mov dword [esi - 8], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
cmp eax, 0x38
jb 0x10002fa7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x200]
add edx, edx
add edx, edx
mov eax, 8
add edx, edx
cmp edx, eax
jbe 0x100030dd
mov edi, edi
mov esi, dword [ecx + eax*4]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x1003e338]
movzx edi, bl
xor edx, dword [edi*4 + 0x1003df38]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x1003db38]
movzx esi, byte [ecx + eax*4]
xor edx, dword [esi*4 + 0x1003d738]
inc eax
mov dword [ecx + eax*4 - 4], edx
mov edx, dword [ecx + 0x200]
add edx, edx
add edx, edx
add edx, edx
cmp eax, edx
jb 0x10003090
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret