Function at 0x101fbef8
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x10023110]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov ebx, ebp
cmp esi, edi
je 0x101fbff6
cmp eax, 0x10
jb 0x101fbf93
shr eax, 4
mov dword [esp + 0x14], eax
mov edi, edi
mov edx, dword [esp + 0x18]
push edx
push edi
mov eax, esi
call fcn.101fb808
add esp, 8
lea ecx, [ebx + 2]
mov eax, edi
sub ebx, edi
mov dword [esp + 0x1c], 4
nop
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub dword [esp + 0x1c], 1
jne 0x101fbf58
sub dword [esp + 0x10], 0x10
mov ebx, esi
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
jne 0x101fbf38
cmp dword [esp + 0x10], 0
je 0x101fbfdd
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, esi
call fcn.101fb808
xor ecx, ecx
add esp, 8
cmp dword [esp + 0x10], ecx
jbe 0x101fbfdb
lea edx, [esp + 0x20]
mov eax, edx
sub ebx, edx
sub edi, eax
jmp 0x101fbfc8
lea eax, [esp + ecx + 0x20]
mov dl, byte [ebx + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
cmp ecx, dword [esp + 0x10]
jb 0x101fbfc8
mov ebx, esi
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
jmp 0x101fc11f
cmp eax, 0x10
jb 0x101fc096
sub ebx, edi
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xc]
push edx
mov dword [esp + 0x2c], eax
push edi
mov eax, esi
mov dword [esp + 0x34], ecx
call fcn.101fb808
mov eax, edi
add esp, 8
lea ecx, [ebp + 2]
mov edi, 4
movzx edx, byte [eax + ebx]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x101fc03d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub dword [esp + 0x10], 0x10
mov dword [ebp], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x2c]
add esi, 0x10
sub ebx, 0x10
sub dword [esp + 0x14], 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov edi, eax
jne 0x101fc008
cmp dword [esp + 0x10], 0
je 0x101fc122
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x30], eax
push edi
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
call fcn.101fb808
mov ecx, dword [esp + 0x18]
add esp, 8
test ecx, ecx
jbe 0x101fc0e9
mov esi, ebp
mov eax, edi
sub esi, edi
mov edx, ecx
mov bl, byte [esi + eax]
xor byte [eax], bl
inc eax
sub edx, 1
jne 0x101fc0de
cmp ecx, 0x10
jae 0x101fc106
mov edx, 0x10
sub edx, ecx
push edx
lea eax, [esp + ecx + 0x24]
add edi, ecx
push eax
push edi
call fcn.10201be8
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebp], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101fd539
add esp, 0x24
ret