Function at 0x100a2ef5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ebp + 0x14]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x14]
and ecx, 0x1000000
shr eax, 0xf
mov dword [ebp - 0x1c], ecx
movzx ecx, word [ebp + 0x14]
not eax
and eax, 8
test ecx, ecx
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x14], ecx
lea ebx, [esi + edx]
jne 0x100a2f82
mov edi, dword [ebp + 0xc]
jmp 0x100a2f42
mov cl, byte [esi]
cmp cl, 0x7f
ja 0x100a2f46
movzx cx, cl
mov word [edi], cx
inc edi
inc edi
inc esi
cmp esi, ebx
jb 0x100a2f31
mov ebx, edi
sub ebx, dword [ebp + 0xc]
sar ebx, 1
sub edx, ebx
test edx, edx
jle 0x100a2f77
push dword [ebp + 0x10]
push edi
push edx
push esi
push eax
push dword [ebp + 8]
call dword [0x100e2be4]
test eax, eax
jg 0x100a2f72
xor eax, eax
cmp dword [ebp - 0x1c], eax
jne 0x100a318e
add ebx, eax
lea edi, [edi + eax*2]
and word [edi], 0
mov eax, ebx
jmp 0x100a318e
and dword [ebp - 0x5c], 0
mov al, cl
xor al, 0xa
mov byte [ebp - 1], al
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x48]
stosd dword es:[edi], eax
call fcn.10050060
mov dword [ebp - 8], 1
jmp 0x100a2fd5
mov eax, esi
jmp 0x100a2fb3
mov cl, byte [esi]
inc esi
cmp byte [ebp - 1], cl
je 0x100a2fb7
cmp esi, ebx
jb 0x100a2fab
mov edi, esi
sub edi, eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], edi
call fcn.1005007a
cmp dword [ebp - 8], edi
jge 0x100a2fd5
mov dword [ebp - 8], edi
cmp esi, ebx
jb 0x100a2fa7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
call fcn.10046141
mov eax, dword [ebp - 0x28]
push dword [ebp - 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.10045fcc
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
and dword [ebp - 0x14], 0
test eax, eax
mov esi, dword [ebp - 0x48]
mov ebx, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], ebx
jle 0x100a3133
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
call fcn.1004211f
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push edx
push eax
call fcn.100b69d0
cmp eax, ebx
jge 0x100a3127
lea ecx, [eax + eax*4]
lea ecx, [esi + ecx*4]
cmp dword [ecx], 0
je 0x100a304e
inc eax
add ecx, 0x14
cmp eax, ebx
jl 0x100a303c
jmp 0x100a3127
inc dword [ebp - 0x14]
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
mov ebx, dword [esi + 8]
push ebx
push dword [esi + 4]
mov dword [esi], 1
push edi
call fcn.100144ff
lea ecx, [ebx + edi]
add esp, 0xc
cmp edi, ecx
mov eax, edi
jae 0x100a3080
mov dl, byte [ebp + 0x14]
xor byte [eax], dl
inc eax
cmp eax, ecx
jb 0x100a3076
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x30], 0
cmp edi, ecx
mov dword [ebp - 8], eax
mov edx, edi
jae 0x100a30a9
mov al, byte [edx]
cmp al, 0x7f
ja 0x100a30a9
mov edi, dword [ebp - 8]
add dword [ebp - 8], 2
movzx ax, al
inc edx
cmp edx, ecx
mov word [edi], ax
jb 0x100a3090
mov edi, dword [ebp - 8]
sub edi, dword [ebp - 0xc]
sar edi, 1
sub ebx, edi
test ebx, ebx
jle 0x100a30f8
sub ecx, edx
cmp dword [ebp + 8], 0xfde9
jne 0x100a30d1
push dword [ebp - 8]
push ecx
push edx
call fcn.100a0efc
add esp, 0xc
jmp 0x100a30e9
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 8]
push ecx
push edx
push dword [ebp - 0x2c]
push dword [ebp + 8]
call dword [0x100e2be4]
test eax, eax
jg 0x100a30fb
xor eax, eax
cmp dword [ebp - 0x1c], eax
je 0x100a30fb
xor esi, esi
jmp 0x100a3172
mov eax, dword [ebp - 0x30]
add edi, eax
add dword [ebp - 0x10], edi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], edi
dec edi
mov dword [esi + 0xc], eax
js 0x100a3121
lea ecx, [edi + 1]
mov eax, dword [ebp - 0xc]
mov dx, word [ebp + 0x14]
xor word [eax], dx
inc eax
inc eax
dec ecx
mov dword [ebp - 0xc], eax
jne 0x100a310f
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x14], ebx
jl 0x100a301c
test ebx, ebx
jle 0x100a315c
add esi, 0x10
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
shl eax, 1
push eax
push dword [esi - 4]
push edi
call fcn.100144ff
mov eax, dword [esi]
add esp, 0xc
lea eax, [edi + eax*2]
add esi, 0x14
dec ebx
mov dword [ebp + 0xc], eax
jne 0x100a313a
mov eax, dword [ebp + 0xc]
mov cx, word [ebp + 0x14]
mov word [eax], cx
push dword [ebp - 0x18]
call fcn.1003f93e
mov esi, dword [ebp - 0x10]
pop ecx
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp - 0x28]
call fcn.1003f96c
lea eax, [ebp - 0x48]
push eax
call fcn.1003f9f9
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret