Function at 0x1007aba4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x30]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
cmp esi, 0xc
ja case.default.0x1007ac3b
movzx edx, byte [esi + 0x1007ae50]
jmp dword [edx*4 + 0x1007ae3c]
mov eax, 8
jmp 0x1007ab72
mov eax, 0x10
jmp 0x1007ab72
mov eax, 0x18
jmp 0x1007ab72
mov eax, 0x20
push 0
cdq
push ecx
push edx
push eax
call fcn.100c5f60
shrd eax, edx, 3
shr edx, 3
imul eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp esi, 0xc
ja case.default.0x1007ac3b
movzx ecx, byte [esi + 0x1007ae74]
jmp dword [ecx*4 + 0x1007ae60]
jmp dword [esi*4 + 0x1007ae84]
mov eax, 8
jmp 0x1007ac0e
mov eax, 0x10
jmp 0x1007ac0e
mov eax, 0x18
jmp 0x1007ac0e
mov eax, 0x20
mov ecx, dword [ebp + 0x14]
push 0
cdq
push ecx
push edx
push eax
call fcn.100c5f60
shrd eax, edx, 3
shr edx, 3
imul eax, dword [ebp + 0x1c]
mov ebx, eax
xor eax, eax
cmp esi, 0xc
ja case.default.0x1007ac3b
movzx edx, byte [esi + 0x1007aecc]
jmp dword [edx*4 + 0x1007aeb8]
jmp dword [esi*4 + 0x1007aedc]
mov eax, 8
jmp 0x1007acb5
mov eax, 0x10
jmp 0x1007acb5
mov eax, 0x18
jmp 0x1007acb5
mov eax, 0x20
cdq
shrd eax, edx, 3
shr edx, 3
imul eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x1007acd0
lea eax, [ecx + 0x1c]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xc]
push ebx
push edx
push edi
push eax
mov eax, dword [ecx + 0x148]
call eax
test eax, eax
jne 0x1007ae32
cmp dword [edi + 0x30], 1
jne 0x1007ad3a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007ad1b
mov edx, dword [ebp - 8]
test edx, edx
je 0x1007ad1b
xor ecx, ecx
test edx, edx
je 0x1007ad1b
xor byte [eax], 0x80
inc ecx
inc eax
cmp ecx, dword [ebp - 8]
jb 0x1007ad11
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007ad3a
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x1007ad3a
xor ecx, ecx
test edx, edx
je 0x1007ad3a
nop
xor byte [eax], 0x80
inc ecx
inc eax
cmp ecx, dword [ebp - 0x10]
jb 0x1007ad30
cmp dword [ebp - 0x18], 0
je 0x1007adb8
mov eax, dword [ebp - 8]
test eax, eax
je 0x1007adb8
mov esi, dword [ebp - 4]
fld1
xor edx, edx
div esi
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [edi + 0x30]
fstp dword [esp]
push 1
push 1
imul eax, ebx
push eax
mov eax, dword [ebp + 0x10]
push ecx
push 5
push edx
push eax
call fcn.1004d720
mov eax, dword [ebp - 8]
xor edx, edx
div esi
mov ecx, dword [ebp + 0x10]
add esp, 0x20
imul eax, ebx
lea ecx, [ecx + eax*4]
jmp 0x1007adc1
jmp dword [esi*4 + 0x1007af10]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
cmp dword [ebp - 0x14], 0
je 0x1007adf3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1007adf3
xor edx, edx
fld1
div esi
mov edx, dword [edi + 0x30]
push ecx
fstp dword [esp]
push 1
push 1
imul eax, ebx
push eax
mov eax, dword [ebp - 0x14]
push edx
push 5
push eax
push ecx
call fcn.1004d720
add esp, 0x20
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14c]
test ecx, ecx
je 0x1007ae1b
mov edx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push edx
add eax, 0x1c
push edi
push eax
call ecx
test eax, eax
jne 0x1007ae32
mov eax, dword [ebp + 0x14]
add dword [edi + 0x34], eax
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
cmp eax, ecx
jb 0x1007ae30
sub eax, ecx
mov dword [edi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18