Function at 0x101cd2c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x10597da4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push 1
mov esi, dword [ebx + 0x2c]
mov eax, esi
mov ebp, dword [ebx + 0x28]
imul eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebp
cdq
push edx
push eax
call fcn.101b5d30
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x101cd4dc
dec esi
mov dword [esp + 0x28], esi
push edi
cmp esi, 1
jle 0x101cd4cf
lea eax, [ebp - 1]
add ebp, ecx
mov ecx, dword [esp + 0x10]
lea edx, [esi - 1]
shl ecx, 3
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
lea edi, [ecx + 8]
mov dword [esp + 0x14], edi
nop dword [eax]
nop dword [eax + eax]
mov esi, 1
cmp eax, esi
jle 0x101cd431
lea eax, [ecx - 8]
mov dword [esp + 0x28], eax
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [ebx + 0x588c]
xorps xmm0, xmm0
mov ebp, dword [esp + 0x10]
add edx, edi
mov ecx, edx
movups xmmword [esp + 0x30], xmm0
lea eax, [ebp*8]
mov ebx, dword [edx]
sub ecx, eax
shr ebx, 5
and ebx, 3
mov eax, dword [ecx - 8]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [ecx]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [ecx + 8]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [edx - 8]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [edx + 8]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + edx]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, ebp
mov ebp, dword [esp + 0x18]
lea ecx, [eax*8]
mov eax, dword [ecx + edx]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
mov eax, dword [ecx + edx + 8]
shr eax, 5
and eax, 3
inc dword [esp + eax*4 + 0x30]
xor eax, eax
cmp dword [esp + eax*4 + 0x30], 5
jge 0x101cd411
inc eax
cmp eax, 4
jl 0x101cd402
jmp 0x101cd413
mov ebx, eax
mov edx, dword [esp + 0x10]
add edi, 8
mov byte [esi + ebp], bl
inc esi
mov ebx, dword [esp + 0x20]
lea eax, [edx - 1]
cmp esi, eax
jl 0x101cd360
mov edi, dword [esp + 0x14]
add edi, ecx
add ebp, edx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
jne 0x101cd340
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp esi, 1
jle 0x101cd4cf
lea eax, [ebp*8]
lea edi, [ecx + ebp]
mov dword [esp + 0x1c], eax
mov ecx, eax
lea ebx, [ebp - 1]
lea ebp, [eax + 8]
lea eax, [esi - 1]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov edx, 1
cmp ebx, edx
jle 0x101cd4bc
mov esi, ebp
mov ebp, dword [esp + 0x20]
nop
mov ecx, dword [ebp + 0x588c]
lea esi, [esi + 8]
movzx eax, byte [edi + edx]
inc edx
shl eax, 5
xor eax, dword [ecx + esi - 8]
and eax, 0x60
xor dword [ecx + esi - 8], eax
cmp edx, ebx
jl 0x101cd490
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add edi, dword [esp + 0x10]
add ebp, ecx
sub eax, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
jne 0x101cd480
push dword [esp + 0x24]
call fcn.101b5df0
add esp, 4
pop edi
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026a6d5
add esp, 0x34
ret