Function at 0x1002bdc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
cmp byte [0x100923a6], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
jne 0x1002bddb
call fcn.10030500
cmp byte [0x100933b0], 0
je 0x1002be08
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0
push 0x10
push eax
push ecx
push edx
mov ecx, esi
call fcn.1002cf10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
mov esi, dword [esi + 0x118]
mov eax, dword [esp + 0x40]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0x1c]
lea ecx, [eax + 4]
mov eax, dword [eax]
xor eax, dword [esi]
mov edi, ecx
xor edx, dword [edi]
mov edi, dword [esi + 8]
xor edi, dword [ecx + 4]
add ecx, 4
mov dword [esp + 0x40], edi
mov edi, dword [esi + 0xc]
xor edi, dword [ecx + 4]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
add esi, 0x20
cmp byte [0x100923a6], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
jne 0x1002be70
call fcn.10030500
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x1008c2b4]
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor ebp, ebp
mov edi, edi
and ecx, dword [ebp + 0x10091b90]
add ebp, dword [esp + 0x24]
cmp ebp, 0x800
jb 0x1002be80
and ecx, dword [0x10092388]
or dword [esp + 0x40], ecx
or eax, ecx
or edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x20]
movzx ebp, cl
shr ecx, 8
mov dword [esp + 0x1c], ecx
xor ebx, dword [ebp*8 + 0x10091b94]
movzx ecx, cl
mov ecx, dword [ecx*8 + 0x10091b91]
xor dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0x40]
mov ecx, dword [ecx*8 + 0x10091b94]
xor dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
shr dword [esp + 0x1c], 8
movzx ebp, byte [esp + 0x1c]
shr ecx, 8
mov dword [esp + 0x40], ecx
movzx ecx, cl
mov ecx, dword [ecx*8 + 0x10091b91]
xor ecx, dword [ebp*8 + 0x10091b92]
shr dword [esp + 0x40], 8
xor edi, ecx
movzx ecx, dl
xor edi, dword [ecx*8 + 0x10091b94]
shr edx, 8
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
shr edi, 8
mov ebp, dword [edi*8 + 0x10091b93]
movzx ecx, dl
xor ebp, dword [ecx*8 + 0x10091b91]
mov ecx, dword [esp + 0x40]
movzx edi, cl
xor ebp, dword [edi*8 + 0x10091b92]
mov edi, dword [esp + 0x18]
xor edi, ebp
movzx ebp, al
xor edi, dword [ebp*8 + 0x10091b94]
shr eax, 8
shr ecx, 8
mov ecx, dword [ecx*8 + 0x10091b93]
mov dword [esp + 0x18], edi
movzx edi, al
xor ecx, dword [edi*8 + 0x10091b91]
shr edx, 8
movzx edi, dl
xor ecx, dword [edi*8 + 0x10091b92]
shr eax, 8
xor ebx, ecx
movzx ecx, al
shr edx, 8
mov edx, dword [edx*8 + 0x10091b93]
xor edx, dword [ecx*8 + 0x10091b92]
mov ecx, dword [esp + 0x28]
xor dword [esp + 0x10], edx
shr eax, 8
mov eax, dword [eax*8 + 0x10091b93]
xor dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
shr eax, 1
sub eax, 1
mov dword [esp + 0x1c], eax
movzx edx, bl
mov eax, dword [edx*8 + 0x10091b93]
shr ebx, 8
movzx ecx, bl
mov edi, dword [ecx*8 + 0x10091b92]
xor edi, dword [esi + 4]
movzx ebp, byte [esp + 0x10]
shr ebx, 8
xor eax, dword [esi]
movzx edx, bl
shr ebx, 8
mov ecx, dword [ebx*8 + 0x10091b94]
xor ecx, dword [ebp*8 + 0x10091b93]
mov ebx, dword [esp + 0x10]
mov edx, dword [edx*8 + 0x10091b91]
shr ebx, 8
xor edx, dword [esi + 8]
movzx ebp, bl
xor eax, dword [ebp*8 + 0x10091b92]
shr ebx, 8
movzx ebp, bl
xor edi, dword [ebp*8 + 0x10091b91]
movzx ebp, byte [esp + 0x14]
xor ecx, dword [esi + 0xc]
shr ebx, 8
mov ebx, dword [ebx*8 + 0x10091b94]
xor ebx, dword [ebp*8 + 0x10091b93]
xor edx, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 8
movzx ebp, bl
xor ecx, dword [ebp*8 + 0x10091b92]
shr ebx, 8
movzx ebp, bl
xor eax, dword [ebp*8 + 0x10091b91]
movzx ebp, byte [esp + 0x18]
shr ebx, 8
mov ebx, dword [ebx*8 + 0x10091b94]
xor ebx, dword [ebp*8 + 0x10091b93]
xor edi, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*8 + 0x10091b92]
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*8 + 0x10091b91]
shr ebx, 8
xor eax, dword [ebx*8 + 0x10091b94]
movzx edi, cl
mov edi, dword [edi*8 + 0x10091b93]
xor edi, dword [esi + 0x10]
shr ecx, 8
movzx ebx, cl
mov ebx, dword [ebx*8 + 0x10091b92]
xor ebx, dword [esi + 0x14]
shr ecx, 8
mov dword [esp + 0x14], ebx
mov ebx, ecx
movzx ebp, dl
shr ebx, 8
mov ebx, dword [ebx*8 + 0x10091b94]
xor ebx, dword [ebp*8 + 0x10091b93]
shr edx, 8
xor ebx, dword [esi + 0x1c]
movzx ebp, dl
xor edi, dword [ebp*8 + 0x10091b92]
shr edx, 8
mov dword [esp + 0x18], edi
mov edi, edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
shr edi, 8
mov edi, dword [edi*8 + 0x10091b94]
movzx ebp, dl
xor edi, dword [ebp*8 + 0x10091b93]
movzx ecx, cl
xor edi, dword [ecx*8 + 0x10091b91]
xor edi, dword [esi + 0x18]
mov ecx, edi
shr edx, 8
movzx edi, dl
xor ebx, dword [edi*8 + 0x10091b92]
shr edx, 8
movzx ebp, al
mov edi, edx
shr edi, 8
mov edi, dword [edi*8 + 0x10091b94]
xor edi, dword [ebp*8 + 0x10091b93]
movzx ebp, byte [esp + 0x40]
xor edi, dword [ebp*8 + 0x10091b91]
shr eax, 8
xor dword [esp + 0x14], edi
movzx edi, al
xor ecx, dword [edi*8 + 0x10091b92]
shr eax, 8
mov dword [esp + 0x10], ecx
movzx ecx, al
xor ebx, dword [ecx*8 + 0x10091b91]
shr eax, 8
mov eax, dword [eax*8 + 0x10091b94]
movzx edx, dl
xor eax, dword [edx*8 + 0x10091b91]
add esi, 0x20
xor dword [esp + 0x18], eax
sub dword [esp + 0x1c], 1
jne 0x1002bfb2
mov eax, dword [esp + 0x10]
movzx ecx, al
movzx edx, byte [ecx*8 + 0x10091b91]
shr eax, 8
movzx ecx, al
shr eax, 8
mov byte [esp + 0x3b], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x10091b91]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2e], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x31], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x37], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x10091b91]
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3a], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x2d], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
mov byte [esp + 0x33], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, al
shr eax, 8
movzx eax, byte [eax*8 + 0x10091b91]
mov byte [esp + 0x36], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, bl
shr ebx, 8
mov byte [esp + 0x2c], al
movzx eax, bl
mov byte [esp + 0x39], dl
movzx edx, byte [ecx*8 + 0x10091b91]
movzx ecx, byte [eax*8 + 0x10091b91]
shr ebx, 8
mov byte [esp + 0x2f], dl
movzx edx, bl
movzx eax, byte [edx*8 + 0x10091b91]
mov byte [esp + 0x32], cl
shr ebx, 8
movzx ecx, byte [ebx*8 + 0x10091b91]
mov byte [esp + 0x38], cl
mov ecx, dword [esi]
xor ecx, dword [esp + 0x2c]
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1002c2ad
mov edx, dword [eax]
jmp 0x1002c2af
xor edx, edx
xor edx, ecx
test eax, eax
mov ecx, dword [esp + 0x48]
mov dword [ecx], edx
lea edx, [ecx + 4]
je 0x1002c2c1
add eax, 4
mov edi, dword [esi + 4]
xor edi, dword [esp + 0x30]
test eax, eax
je 0x1002c2d0
mov ecx, dword [eax]
jmp 0x1002c2d2
xor ecx, ecx
xor ecx, edi
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x1002c2e0
add eax, 4
mov edi, dword [esi + 8]
xor edi, dword [esp + 0x34]
test eax, eax
je 0x1002c2ef
mov ecx, dword [eax]
jmp 0x1002c2f1
xor ecx, ecx
xor ecx, edi
mov dword [edx], ecx
add edx, 4
test eax, eax
je 0x1002c2ff
add eax, 4
mov esi, dword [esi + 0xc]
xor esi, dword [esp + 0x38]
test eax, eax
je 0x1002c31a
mov eax, dword [eax]
xor eax, esi
mov dword [edx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
pop edi
xor eax, eax
xor eax, esi
pop esi
pop ebp
mov dword [edx], eax
pop ebx
add esp, 0x2c
ret 0xc