Function at 0x1002f030
Capabilities:
Encode data using xor

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