Function at 0x101b63d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x160
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
lea eax, [ebp + 0x27]
mov ecx, ebp
sub ecx, eax
add ecx, 0x26
mov dword [esp + 0xc], ecx
mov edx, ebp
mov ecx, ebp
push esi
sub edx, eax
sub ecx, eax
add edx, 0x28
add ecx, 0x29
lea esi, [esp + 0x2c]
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
sub esi, eax
mov edi, 0x10
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dh, byte [ecx + eax]
xor ecx, ecx
mov cl, byte [ebx + eax]
mov ebx, dword [esp + 0x18]
add eax, 4
mov dl, byte [eax - 4]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [ebx + eax - 4]
shl edx, 8
or edx, ecx
dec edi
mov dword [esi + eax - 4], edx
jne 0x101b6410
lea ecx, [esp + 0x38]
mov edx, 0x40
mov eax, dword [ecx + 0x2c]
mov ebx, dword [ecx + 0x18]
mov edi, dword [ecx - 8]
mov esi, dword [ecx]
xor eax, ebx
xor eax, edi
xor eax, esi
mov esi, eax
shr esi, 0x1f
add eax, eax
or esi, eax
mov dword [ecx + 0x38], esi
add ecx, 4
dec edx
jne 0x101b644c
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x18]
lea eax, [esp + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x14
mov eax, ecx
not eax
and eax, esi
mov ebx, edx
and ebx, ecx
or eax, ebx
mov ebx, edi
shr ebx, 0x1b
mov ebp, edi
shl ebp, 5
or ebx, ebp
add eax, ebx
mov ebx, dword [esp + 0x10]
add eax, dword [ebx]
add eax, dword [0x1034cd9c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov esi, edx
mov edx, ecx
add ebx, 4
shr ecx, 2
shl edx, 0x1e
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
add eax, ebp
or edx, ecx
dec ebx
mov ecx, edi
mov edi, eax
mov dword [esp + 0x14], ebx
jne 0x101b64a6
lea ebx, [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x14
mov ebp, dword [0x1034cda0]
mov ebx, eax
shl eax, 5
shr ebx, 0x1b
or ebx, eax
add ebp, ebx
mov ebx, dword [esp + 0x18]
mov eax, esi
xor eax, edx
xor eax, ecx
add eax, ebp
add eax, ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [ebx]
mov dword [esp + 0x18], esi
mov esi, edx
mov edx, ecx
add ebx, 4
shr ecx, 2
shl edx, 0x1e
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add eax, ebp
or edx, ecx
dec ebx
mov ecx, edi
mov edi, eax
mov dword [esp + 0x10], ebx
jne 0x101b650b
lea ebx, [esp + 0xd0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x14
mov ebp, edx
or ebp, ecx
and ebp, esi
mov ebx, edx
and ebx, ecx
or ebp, ebx
mov ebx, eax
shl eax, 5
shr ebx, 0x1b
or ebx, eax
add ebp, ebx
mov ebx, dword [esp + 0x14]
add ebp, dword [ebx]
add ebp, dword [0x1034cda4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov esi, edx
mov edx, ecx
add ebx, 4
shr ecx, 2
shl edx, 0x1e
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add eax, ebp
or edx, ecx
dec ebx
mov ecx, edi
mov edi, eax
mov dword [esp + 0x10], ebx
jne 0x101b656c
lea ebx, [esp + 0x120]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x14
mov ebp, dword [0x1034cda8]
mov ebx, eax
shl eax, 5
shr ebx, 0x1b
or ebx, eax
add ebp, ebx
mov ebx, dword [esp + 0x18]
mov eax, esi
xor eax, edx
xor eax, ecx
add eax, ebp
add eax, ebx
mov ebx, dword [esp + 0x14]
add eax, dword [ebx]
mov ebp, esi
mov esi, edx
mov edx, ecx
add ebx, 4
shr ecx, 2
shl edx, 0x1e
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
or edx, ecx
dec ebx
mov ecx, edi
mov dword [esp + 0x18], ebp
mov edi, eax
mov dword [esp + 0x10], ebx
jne 0x101b65cf
mov edi, dword [esp + 0x24]
add edi, eax
mov eax, dword [esp + 0x174]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x1c]
add edi, ecx
mov ecx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], edi
pop edi
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
add edx, esi
pop esi
add ecx, ebp
pop ebp
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov word [eax + 0x24], 0
pop ebx
add esp, 0x160
ret