Function at 0x100069a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], eax
mov edi, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov esi, eax
shr esi, 5
mov edx, eax
inc esi
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x30]
xor ebx, eax
cmp eax, esi
jb 0x100069ee
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x100069d0
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x10006a69
nop
cmp ebx, dword [edi + 8]
jne 0x10006a63
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0xc]
jne 0x10006a63
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x10006a31
nop word [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10006a36
add edx, 4
add eax, 4
sub esi, 4
jae 0x10006a20
cmp esi, 0xfffffffc
je 0x10006a9e
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10006a63
cmp esi, 0xfffffffd
je 0x10006a9e
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10006a63
cmp esi, 0xfffffffe
je 0x10006a9e
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10006a63
cmp esi, 0xffffffff
je 0x10006a9e
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10006a9e
mov edi, dword [edi]
test edi, edi
jne 0x10006a00
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x20]
lea esi, [eax + 0x18]
mov ecx, edx
mov dword [ebp - 0x10], esi
cmp dword [esi + 4], edx
jb 0x10006abc
mov dword [ebp - 4], eax
cmp edx, 0x3ffffffe
jg 0x10006abc
mov edi, dword [ebp - 8]
add edx, edx
mov ecx, edi
call fcn.10006870
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], edx
jmp 0x10006abe
mov edx, dword [ebp - 4]
mov al, byte [edi + 5]
xor al, 3
mov cl, byte [edx + 0x34]
xor cl, 3
test al, cl
jne 0x10006ab3
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, eax
mov eax, dword [esi]
dec ecx
mov edi, dword [ebp + 8]
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp + 8], eax
lea eax, [edi + 0x11]
push eax
mov eax, dword [edx]
push 4
push 0
push dword [edx + 4]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10006b19
lea eax, [edi + 0x11]
test eax, eax
je 0x10006b19
mov esi, dword [ebp - 4]
cmp byte [esi + 0x37], 0
je 0x10006b6d
mov ecx, dword [ebp - 8]
mov edx, 1
call fcn.10009030
lea eax, [edi + 0x11]
push eax
mov eax, dword [esi]
push 4
push 0
push dword [esi + 4]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10006b6d
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x11]
mov edx, dword [ebp + 8]
push edi
push dword [ebp - 0xc]
add dword [eax + 0xc], ecx
lea ecx, [eax + 0x3c]
mov al, byte [eax + 0x34]
test edx, edx
mov byte [esi + 4], 4
cmovne ecx, edx
and al, 3
mov byte [esi + 5], al
mov eax, dword [ecx]
mov dword [esi], eax
lea eax, [esi + 0x10]
mov dword [ecx], esi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
mov byte [esi + 6], 0
call fcn.10068e00
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [esi + edi + 0x10], 0
inc dword [eax + 4]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edx, 4
call fcn.100091d0
int3