Function at 0x10158970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101ebae0
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1015902a
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x10159029
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x10159028
mov eax, dword [edi + 0x110]
cmp eax, 0xc
je 0x101589ba
cmp eax, 0xe
je 0x101589ba
cmp eax, 0x10
jne 0x10159028
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
xor ecx, eax
movzx edx, byte [esi + 8]
movzx eax, byte [esi + 2]
shl ecx, 8
xor ecx, eax
shl edx, 8
movzx eax, byte [esi + 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 5]
xor ecx, dword [edi]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 9]
xor edx, eax
xor ecx, dword [edi + 4]
movzx eax, byte [esi + 0xa]
push ebx
movzx ebx, byte [esi + 0xc]
shl edx, 8
xor edx, eax
shl ebx, 8
movzx eax, byte [esi + 0xb]
shl edx, 8
xor edx, eax
mov dword [esp + 0x28], ecx
movzx eax, byte [esi + 0xd]
xor edx, dword [edi + 8]
xor ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
xor ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
xor ebx, eax
lea eax, [edi + 0x10]
xor ebx, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x1025f2e8]
xor edi, dword [eax*4 + 0x1025f6e8]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x1025eee8]
movzx eax, dl
xor edi, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x1025f2e8]
xor esi, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x1025eee8]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor esi, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
mov edx, dword [ecx*4 + 0x1025f2e8]
movzx eax, al
xor edx, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1025eee8]
movzx eax, bl
mov ebx, dword [esp + 0x20]
xor edx, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
xor edx, edi
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1025f2e8]
xor ecx, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1025eee8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x1025fae8]
mov eax, esi
xor eax, edx
xor ecx, edx
bswap eax
mov dword [esp + 0x28], eax
xor esi, edi
mov edi, dword [esp + 0x14]
xor esi, ecx
xor edx, esi
mov ebx, esi
mov eax, edx
shr ebx, 0x10
and eax, 0xffff00ff
shr edx, 8
shl eax, 8
and edx, 0xff00ff
xor eax, edx
shl esi, 0x10
mov edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
or ebx, esi
mov esi, dword [esp + 0x30]
xor edx, ebx
xor ebx, eax
xor ecx, edx
xor eax, edx
xor ebx, ecx
xor ecx, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 4]
xor eax, ebx
mov dword [esp + 0x18], ecx
xor ebx, dword [edi + 8]
xor edx, eax
mov eax, dword [esp + 0x28]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x110]
sub eax, 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x10158e66
dec eax
mov ebp, edi
shr eax, 1
inc eax
mov dword [esp + 0x20], eax
nop dword [eax]
mov eax, ebx
mov edi, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1025fae8]
mov ecx, dword [esp + 0x1c]
xor ebx, dword [eax*4 + 0x1025eee8]
mov eax, ecx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1025f6e8]
movzx eax, cl
xor ebx, dword [eax*4 + 0x1025f2e8]
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x28]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x1025fae8]
mov ecx, dword [esp + 0x28]
xor esi, dword [eax*4 + 0x1025eee8]
mov eax, ecx
shr eax, 0x18
xor esi, dword [eax*4 + 0x1025f6e8]
movzx eax, cl
xor esi, dword [eax*4 + 0x1025f2e8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x1025fae8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax*4 + 0x1025eee8]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1025f6e8]
movzx eax, cl
xor edx, dword [eax*4 + 0x1025f2e8]
mov eax, edi
shr eax, 0x10
xor edx, ebx
movzx ecx, al
xor ebx, esi
mov eax, edi
xor esi, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1025fae8]
xor ecx, dword [eax*4 + 0x1025eee8]
mov eax, edi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1025f6e8]
mov eax, edi
movzx eax, al
xor ecx, dword [eax*4 + 0x1025f2e8]
xor ecx, edx
xor ebx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov ecx, dword [esp + 0x1c]
and ebx, 0xffff00ff
xor ecx, edx
shr esi, 8
mov edx, dword [esp + 0x1c]
and esi, 0xff00ff
shl ebx, 8
xor ebx, esi
ror eax, 0x10
bswap ecx
xor ecx, edx
xor edx, ebx
xor eax, ecx
xor ebx, ecx
xor edx, eax
xor eax, dword [ebp]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
xor eax, edx
xor ebx, dword [ebp + 0xc]
xor ecx, eax
xor edx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x1c], ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x1025f2e8]
xor edi, dword [eax*4 + 0x1025f6e8]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x1025eee8]
movzx eax, dl
xor edi, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x1025f2e8]
xor esi, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x1025eee8]
movzx eax, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x1025f2e8]
xor edx, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1025eee8]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor edx, dword [eax*4 + 0x1025fae8]
mov eax, ebx
shr eax, 0x10
xor edx, edi
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1025f2e8]
xor ecx, dword [eax*4 + 0x1025f6e8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1025eee8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x1025fae8]
mov eax, esi
xor eax, edx
xor ecx, edx
xor esi, edi
xor esi, ecx
bswap eax
xor edx, esi
mov dword [esp + 0x28], eax
mov eax, edx
mov ebx, esi
and eax, 0xffff00ff
shr edx, 8
shr ebx, 0x10
and edx, 0xff00ff
shl esi, 0x10
shl eax, 8
or ebx, esi
xor eax, edx
mov edx, dword [esp + 0x28]
xor eax, ebx
xor ecx, eax
mov dword [esp + 0x10], eax
xor ebx, edx
xor edx, eax
mov eax, dword [ebp + 0x14]
xor ebx, ecx
xor ecx, dword [ebp + 0x10]
xor eax, ebx
xor ebx, dword [ebp + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
xor edx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x28]
xor eax, dword [ebp + 0x1c]
add ebp, 0x20
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
jne 0x10158bc0
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
movzx eax, cl
mov esi, dword [esp + 0x28]
mov eax, dword [eax*4 + 0x1025fae8]
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x1025f6e8]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x1025eee8]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax*4 + 0x1025f2e8]
or ecx, eax
xor ecx, dword [edi]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x1025fae8]
shr eax, 8
movzx ebx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x1025f6e8]
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax*4 + 0x1025eee8]
or ebx, eax
movzx eax, cl
mov ecx, dword [esp + 0x1c]
shl ebx, 8
movzx eax, byte [eax*4 + 0x1025f2e8]
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor ebx, dword [edi + 4]
mov eax, dword [eax*4 + 0x1025fae8]
shr eax, 8
movzx edx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x1025f6e8]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax*4 + 0x1025eee8]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax*4 + 0x1025f2e8]
or edx, eax
mov eax, esi
xor edx, dword [edi + 8]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x1025fae8]
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x18
movzx eax, byte [eax*4 + 0x1025f6e8]
shl eax, 8
or ecx, eax
mov eax, esi
shl ecx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x1025eee8]
or ecx, eax
mov eax, esi
mov esi, dword [esp + 0x20]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x1025f2e8]
or ecx, eax
mov eax, esi
xor ecx, dword [edi + 0xc]
shr eax, 0x18
mov byte [ebp], al
mov eax, esi
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, esi
shr eax, 8
mov byte [ebp + 2], al
mov eax, esi
mov byte [ebp + 3], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 5], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 9], al
mov eax, edx
shr eax, 8
mov byte [ebp + 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 7], bl
mov byte [ebp + 0xb], dl
mov byte [ebp + 0xe], al
mov byte [ebp + 0xf], cl
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x14
ret