Function at 0x10029bf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
push edi
test eax, eax
je 0x10029c0d
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
xor edi, edi
add eax, 4
je 0x10029c16
mov edi, dword [eax]
mov esi, dword [esi + 0x3c]
mov eax, dword [esi]
mov dword [esp + 0x30], eax
lea edx, [eax + ecx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1009e2f8]
xor ebx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ebx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 4]
xor ebx, edi
mov dword [esp + 0x28], eax
lea edx, [eax + ebx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x1009e2f8]
xor edi, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor edi, dword [eax*4 + 0x1009daf8]
xor edi, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
lea edx, [eax + edi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 0xc]
xor ebx, ecx
mov dword [esp + 0x20], eax
lea edx, [eax + ebx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 0x10]
xor edi, ecx
mov dword [esp + 0x1c], eax
lea edx, [eax + edi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
mov ebp, dword [esp + 0x30]
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 0x14]
xor ebx, ecx
mov dword [esp + 0x18], eax
lea edx, [eax + ebx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 0x18]
xor edi, ecx
mov dword [esp + 0x14], eax
lea edx, [eax + edi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
mov eax, dword [esi + 0x1c]
xor ebx, ecx
mov dword [esp + 0x10], eax
mov esi, 3
lea edx, [eax + ebx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
xor edi, ecx
mov edx, dword [esp + 0x10]
add edx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x14]
xor ecx, dword [eax*4 + 0x1009daf8]
xor ebx, ecx
add edx, ebx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x18]
xor ecx, dword [eax*4 + 0x1009daf8]
xor edi, ecx
add edx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x1c]
xor ecx, dword [eax*4 + 0x1009daf8]
xor ebx, ecx
add edx, ebx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x1009daf8]
xor edi, ecx
add edx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x24]
xor ecx, dword [eax*4 + 0x1009daf8]
xor ebx, ecx
add edx, ebx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
mov edx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x1009daf8]
xor edi, ecx
add edx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
xor ebx, ecx
lea edx, [ebx + ebp]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1009e2f8]
xor ecx, dword [eax*4 + 0x1009def8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1009e6f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009daf8]
xor edi, ecx
sub esi, 1
jne 0x10029e23
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x1002a014
xor ebx, dword [ebp]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002a01e
mov dword [eax], ebx
lea ecx, [eax + 4]
test ebp, ebp
lea eax, [ebp + 4]
cmove eax, ebp
test eax, eax
je 0x1002a031
mov eax, dword [eax]
xor edi, eax
test ecx, ecx
je 0x1002a037
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc