Function at 0x10012c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
cmp ebx, 0x28
ja 0x10012df2
mov eax, dword [ebp + 8]
mov esi, ebx
shr esi, 5
mov edx, ebx
inc esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [eax + 0x38]
xor edi, ebx
mov dword [ebp - 8], edi
cmp ebx, esi
jb 0x10012cc9
mov ebx, dword [ebp + 0xc]
movzx ecx, byte [ebx + edx - 1]
mov eax, edi
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, edi
shr eax, 2
add ecx, eax
xor edi, ecx
cmp edx, esi
jae 0x10012ca5
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
lea ecx, [edx - 1]
and ecx, edi
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp + 0x10], eax
test edi, edi
je 0x10012d74
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x10012d43
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x10012d11
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10012d16
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10012d00
cmp esi, 0xfffffffc
je 0x10012d52
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10012d43
cmp esi, 0xfffffffd
je 0x10012d52
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10012d43
cmp esi, 0xfffffffe
je 0x10012d52
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10012d43
cmp esi, 0xffffffff
je 0x10012d52
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10012d52
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10012ce5
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x20]
jmp 0x10012d77
mov eax, dword [ebp - 4]
mov cl, byte [edi + 5]
xor cl, 3
mov al, byte [eax + 0x3c]
xor al, 3
test cl, al
jne 0x10012e30
mov byte [edi + 5], cl
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
cmp dword [edi + 0x1c], edx
jl 0x10012da7
cmp edx, 0x3fffffff
jg 0x10012da7
lea eax, [edx + edx]
push eax
push dword [ebp + 8]
call fcn.10012ee0
mov ecx, dword [edi + 0x20]
add esp, 8
mov esi, dword [ebp - 8]
dec ecx
mov eax, dword [edi + 0x18]
and ecx, esi
lea eax, [eax + ecx*4]
mov dword [ebp + 0x10], eax
jmp 0x10012daa
mov esi, dword [ebp - 8]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [ebp + 8]
call fcn.1000f270
mov edi, eax
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
mov dword [edi + 8], esi
push eax
mov byte [edi + 6], 0
call fcn.1002a5b0
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov byte [edi + ebx + 0x10], 0
mov byte [edi + 7], bl
mov ecx, dword [eax]
mov dword [edi + 0xc], ecx
mov dword [eax], edi
mov eax, dword [ebp - 4]
inc dword [eax + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 1]
cmp eax, 0xffffffef
ja 0x10012e39
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax + 0x38]
lea eax, [ebx + 0x11]
push eax
push 0x14
push ecx
call fcn.1000f270
mov edi, eax
push ebx
push dword [ebp + 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 8], esi
push ecx
mov byte [edi + 6], 0
call fcn.1002a5b0
mov byte [edi + ebx + 0x10], 0
add esp, 0x18
mov dword [edi + 0xc], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call fcn.1000d9c0
int3