Function at 0x1001fa00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x134]
mov eax, dword [ecx + 0x140]
sub esp, 8
push ebx
mov ebx, edx
push esi
xor esi, esi
and ebx, 0xf
test eax, eax
jl 0x1001fbea
cmp eax, 0xb
jne 0x1001fa3c
mov eax, 0xfffffffa
pop esi
mov dword [ecx + 0x140], eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
add edx, edi
cmp edx, dword [ecx + 0x128]
jbe 0x1001fa5c
pop edi
mov eax, 0xfffffff9
pop esi
mov dword [ecx + 0x140], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, eax
sub edx, ebx
sub edx, ecx
test dl, 7
jne 0x1001fb1d
test edi, edi
jbe 0x1001fa88
test bl, 7
je 0x1001fa88
mov dl, byte [esi + eax]
xor byte [ebx + ecx + 0x20], dl
add esi, 1
add ebx, 1
cmp esi, edi
jb 0x1001fa72
lea edx, [esi + 8]
cmp edx, edi
ja 0x1001fab5
nop
cmp ebx, 8
ja 0x1001fab5
mov edi, dword [eax + edx - 8]
xor dword [ebx + ecx + 0x20], edi
mov edi, dword [eax + edx - 4]
xor dword [ebx + ecx + 0x24], edi
mov edi, dword [ebp + 0xc]
add edx, 8
add esi, 8
add ebx, 8
cmp edx, edi
jbe 0x1001fa90
lea edx, [esi + 0x10]
cmp edx, edi
ja 0x1001fb8a
lea edx, [esi + eax]
mov dword [ebp - 4], edx
mov edx, 0x10
sub edx, eax
lea edi, [ecx + 0x20]
mov dword [ebp - 8], edx
lea eax, [ecx + 0x30]
push eax
push edi
push edi
call fcn.10020e7d
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
xor ecx, dword [eax]
mov edx, dword [edi + 4]
xor edx, dword [eax + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor ecx, dword [edi + 8]
mov edx, dword [eax + 0xc]
xor edx, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 8]
add eax, 0x10
add ecx, eax
add esp, 0xc
add esi, 0x10
cmp ecx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc], edx
mov dword [ebp - 4], eax
jbe 0x1001fad3
jmp 0x1001fb84
test edi, edi
jbe 0x1001fb37
cmp ebx, 0x10
jae 0x1001fb37
mov dl, byte [esi + eax]
xor byte [ebx + ecx + 0x20], dl
add esi, 1
add ebx, 1
cmp esi, edi
jb 0x1001fb21
lea edx, [esi + 0x10]
cmp edx, edi
ja 0x1001fb8a
lea eax, [ecx + 0x30]
mov dword [ebp - 8], eax
lea edi, [ecx + 0x20]
mov dword [ebp - 4], edx
lea ebx, [ebx]
mov ecx, dword [ebp - 8]
push ecx
push edi
push edi
call fcn.10020e7d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ecx, [edx + eax - 0x10]
push ecx
push edi
push edi
call fcn.1001f400
mov eax, dword [ebp - 4]
add eax, 0x10
add esp, 0x18
add esi, 0x10
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jbe 0x1001fb50
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp esi, edi
jae 0x1001fbc8
lea edx, [ecx + 0x20]
mov dword [ebp - 4], edx
jmp 0x1001fb99
mov edx, dword [ebp - 4]
cmp ebx, 0x10
jne 0x1001fbb4
add ecx, 0x30
push ecx
push edx
push edx
call fcn.10020e7d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
xor ebx, ebx
mov dl, byte [esi + eax]
mov edi, dword [ebp - 4]
xor byte [edi + ebx], dl
add esi, 1
add ebx, 1
cmp esi, dword [ebp + 0xc]
jb 0x1001fb96
cmp ebx, 0x10
jne 0x1001fbe1
lea eax, [ecx + 0x20]
add ecx, 0x30
push ecx
push eax
push eax
call fcn.10020e7d
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ecx + 0x134], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret