Function at 0x10182cd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x18
test eax, eax
jne 0x10182ce4
mov eax, 1
add esp, 0x18
ret
jle 0x10182cf2
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0xc]
add eax, 0x4c
jmp 0x10182d07
neg eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x8c]
add eax, 0xcc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
mov eax, ecx
shr eax, 0x10
and eax, 0xff
shl eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov ebx, eax
mov edx, eax
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
shl ebp, 2
push esi
mov dword [esp + 0x10], ebp
push edi
mov edi, eax
movzx eax, al
mov esi, ecx
mov ebp, dword [eax*4 + 0x10651978]
mov eax, dword [eax*4 + 0x10653978]
movzx ecx, cl
shr ebx, 0x10
or ebp, dword [ecx*4 + 0x10650978]
or eax, dword [ecx*4 + 0x10652978]
shr edx, 0x18
mov ecx, dword [esp + 0x18]
or ebp, dword [edx*4 + 0x10650d78]
or eax, dword [edx*4 + 0x10652d78]
and ebx, 0xff
shr esi, 0x18
shl ebx, 2
or ebp, dword [esi*4 + 0x1064fd78]
or eax, dword [esi*4 + 0x10651d78]
shr edi, 8
and edi, 0xff
mov dword [esp + 0x24], ebx
or ebp, dword [edi*4 + 0x10651578]
or eax, dword [edi*4 + 0x10653578]
or ebp, dword [ebx + 0x10651178]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
or ebx, dword [ebp + 0x10650578]
mov ebp, dword [esp + 0x18]
or ebx, dword [ebp + 0x10650178]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
or eax, dword [ebx + 0x10653178]
mov ebx, dword [esp + 0x10]
or eax, dword [ebp + 0x10652578]
mov ebp, dword [esp + 0x3c]
or eax, dword [ecx + 0x10652178]
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x24], ecx
test ebp, ebp
je 0x10182f31
mov ecx, dword [esp + 0x20]
dec ebp
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, 0x10
dec ecx
mov dword [esp + 0x18], ecx
mov edi, eax
shr edi, 2
and edi, 0x7e000
mov ecx, eax
and ecx, 0x1f80000
or edi, ecx
shr edi, 2
mov ecx, eax
and ecx, 0x1f800000
or edi, ecx
shr edi, 2
mov ecx, eax
and ecx, 0xf80001ff
or edi, ecx
mov ecx, eax
and ecx, 1
shl ecx, 0x17
shr edi, 9
or edi, ecx
mov esi, eax
and esi, 0x1f800
shl esi, 2
mov ecx, eax
and ecx, 0x1f80
or esi, ecx
shl esi, 2
mov ecx, eax
and ecx, 0x1f8
or esi, ecx
shl esi, 2
mov ecx, eax
and ecx, 0x1f
or esi, ecx
add esi, esi
mov ecx, eax
shr ecx, 0x1f
or esi, ecx
mov ecx, dword [ebp]
mov edx, esi
xor edx, edi
and edx, dword [esp + 0x24]
lea ebp, [ebp + 4]
xor ecx, edx
xor edi, ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 4
mov ecx, dword [ecx]
xor ecx, edx
xor esi, ecx
mov ecx, esi
shr ecx, 0xc
and esi, 0xfff
movzx edx, byte [ecx + 0x1064cd78]
mov ecx, edi
mov edx, dword [edx*4 + 0x1064f578]
shr ecx, 0xc
and edi, 0xfff
movzx ecx, byte [ecx + 0x1064ad78]
or edx, dword [ecx*4 + 0x1064ed78]
movzx ecx, byte [esi + 0x1064dd78]
or edx, dword [ecx*4 + 0x1064f978]
movzx ecx, byte [edi + 0x1064bd78]
or edx, dword [ecx*4 + 0x1064f178]
mov ecx, dword [esp + 0x18]
xor edx, ebx
mov ebx, eax
mov eax, edx
test ecx, ecx
jne 0x10182e26
mov ebp, dword [esp + 0x3c]
mov eax, ebx
mov ebx, edx
test ebp, ebp
jne 0x10182e10
mov dword [esp + 0x10], ebx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shl ecx, 2
mov dword [esp + 0x1c], ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
shl ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
shl ecx, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x10]
movzx edx, cl
mov edi, ecx
movzx esi, al
mov ebp, ebx
mov ecx, dword [esi*4 + 0x10655978]
or ecx, dword [edx*4 + 0x10654978]
mov ebx, eax
mov eax, dword [esp + 0x20]
shr edi, 0x18
shr ebx, 0x18
or ecx, dword [edi*4 + 0x10653d78]
shr ebp, 8
or ecx, dword [ebx*4 + 0x10654d78]
and ebp, 0xff
or ecx, dword [ebp*4 + 0x10654578]
or ecx, dword [eax + 0x10655578]
mov eax, dword [esp + 0x1c]
or ecx, dword [eax + 0x10655178]
mov eax, dword [esp + 0x3c]
or ecx, dword [eax + 0x10654178]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [edx*4 + 0x10656978]
or ecx, dword [esi*4 + 0x10657978]
mov eax, dword [esp + 0x3c]
or ecx, dword [ebx*4 + 0x10656d78]
or ecx, dword [ebp*4 + 0x10656578]
or ecx, dword [edi*4 + 0x10655d78]
pop edi
or ecx, dword [eax + 0x10656178]
mov eax, dword [esp + 0x1c]
pop esi
or ecx, dword [eax + 0x10657578]
mov eax, dword [esp + 0x14]
pop ebp
or ecx, dword [eax + 0x10657178]
mov eax, dword [esp + 0x2c]
pop ebx
mov dword [eax], ecx
xor eax, eax
add esp, 0x18
ret