Function at 0x1002f2f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x1c], esi
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 4]
movzx ecx, byte [esi + 8]
shl edx, 8
or edx, eax
movzx edi, byte [esi + 0xc]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
shl ebx, 8
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 5]
or ebx, eax
shl edi, 8
movzx eax, byte [esi + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 7]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 9]
or ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
or edi, eax
mov dword [esp + 0xc], ecx
movzx eax, byte [esi + 0xe]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0xf]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x44]
shr eax, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x44], eax
test eax, eax
je 0x1002f500
mov esi, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x40]
movzx ecx, byte [ebp]
lea ebp, [ebp + 0x10]
movzx eax, byte [ebp - 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xb]
xor ecx, edx
mov dword [esp + 0x28], ecx
movzx ecx, byte [ebp - 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 7]
xor ecx, ebx
mov dword [esp + 0x2c], ecx
movzx ecx, byte [ebp - 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
push dword [esp + 0x18]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 3]
xor ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x2c]
xor ecx, edi
push eax
mov dword [esp + 0x3c], ecx
call dword [esp + 0x24]
mov edx, dword [esp + 0x30]
add esp, 8
mov ebx, dword [esp + 0x2c]
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
mov ecx, dword [esp + 0x30]
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x18
mov byte [esi], al
mov eax, ebx
shr eax, 8
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
mov byte [esi + 7], bl
mov dword [esp + 0x10], ecx
mov byte [esi + 0xb], cl
shr eax, 8
mov edi, dword [esp + 0x34]
lea esi, [esi + 0x10]
mov byte [esi - 6], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 7], al
mov eax, ecx
shr eax, 0x18
mov byte [esi - 8], al
mov eax, dword [esp + 0x34]
mov byte [esi - 1], al
mov dword [esp + 0x14], eax
shr eax, 8
mov byte [esi - 2], al
mov eax, edi
shr eax, 0x10
mov byte [esi - 3], al
mov eax, edi
shr eax, 0x18
dec dword [esp + 0x48]
mov byte [esi - 4], al
jne 0x1002f3c0
mov esi, dword [esp + 0x20]
pop ebp
mov byte [esi + 3], dl
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ebx
shr eax, 8
shr edx, 0x18
mov byte [esi], dl
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 7], bl
shr eax, 8
shr ebx, 0x18
mov byte [esi + 4], bl
mov byte [esi + 0xa], al
mov eax, ecx
mov byte [esi + 0xb], cl
shr eax, 0x10
mov byte [esi + 9], al
shr ecx, 0x18
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, ecx
mov byte [esi + 0xf], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 0xc], cl
mov ecx, dword [esp + 0x34]
pop edi
mov byte [esi + 0xd], al
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.10043356
add esp, 0x2c
ret