Function at 0x102a7d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10402048
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
lea edx, [eax + 7]
shr edx, 3
lea ecx, [esi*8 + 9]
mov dword [ebp - 0x14], edx
cmp eax, ecx
jb 0x102a8071
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, esi
jne 0x102a8071
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov eax, edi
sub eax, dword [ecx]
cmp eax, edx
ja 0x102a8071
cmp eax, 1
jbe 0x102a8071
cmp byte [edi - 1], 0xbc
jne 0x102a8071
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1030c5a0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x28]
mov eax, ebx
mov edi, dword [ebp - 0x2c]
sub eax, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
cmp eax, ecx
jae 0x102a7eb8
push ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.1030c640
mov byte [ebp - 4], 1
sub edi, ebx
add edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.10316e70
add esp, 4
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x10]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10320150
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x102a7eaf
mov ecx, dword [ebp - 0x30]
sub ecx, edx
je 0x102a7e91
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x102a7e86
push edx
call fcn.103b6396
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
mov edx, 8
shl eax, 3
sub eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov ah, byte [edi]
nop dword [eax + eax]
lea ecx, [edx - 1]
mov al, ah
shr al, cl
test al, 1
jne 0x102a7ee0
sub edx, 1
jne 0x102a7ed0
mov eax, 8
sub eax, edx
cmp dword [ebp + 0x10], eax
ja 0x102a7f31
mov ecx, dword [ebp - 0x10]
sub ebx, edi
sub ebx, esi
dec ebx
push ebx
mov ecx, dword [ecx + 8]
push edi
lea edx, [edi + ebx]
push esi
mov dword [ebp - 0x14], edx
call fcn.102ad070
mov ecx, dword [ebp + 0x10]
mov eax, 0xff
sar eax, cl
add esp, 0xc
and byte [edi], al
xor eax, eax
test ebx, ebx
je 0x102a7f31
nop word [eax + eax]
mov cl, byte [edi + eax]
cmp cl, 1
je 0x102a7f82
test cl, cl
jne 0x102a7f31
inc eax
cmp eax, ebx
jne 0x102a7f20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0x24]
sub ecx, edi
je 0x102a7f4e
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x102a7f43
push edi
call fcn.103b6396
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov al, bl
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add eax, 1
mov dword [ebp + 0x10], eax
je 0x102a7f31
mov edi, dword [ebp - 0x10]
mov esi, 8
mov ecx, dword [edi + 8]
lea edx, [ebp + 8]
push 1
push edx
mov byte [ebp + 8], 0
mov eax, dword [ecx]
call dword [eax + 8]
sub esi, 1
jne 0x102a7f92
mov eax, edi
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
push eax
push edx
call dword [esi + 8]
mov eax, dword [ebp + 0x10]
mov esi, edi
sub ebx, eax
add eax, dword [ebp - 0x18]
push ebx
push eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.1026e3d0
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x1c]
mov byte [ebp + 0x13], 0
test ebx, ebx
je 0x102a801d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x14], eax
nop dword [eax]
movzx ecx, byte [eax + edx]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov al, byte [ebp + 0x13]
or eax, ecx
mov byte [ebp + 0x13], al
mov eax, dword [ebp - 0x14]
sub ebx, 1
jne 0x102a8000
cmp byte [ebp + 0x13], 0
sete bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x102a8069
mov ecx, dword [ebp - 0x3c]
sub ecx, edx
je 0x102a804b
mov eax, edx
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x102a8040
push edx
call fcn.103b6396
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x2c]
jmp 0x102a7f33
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc