Function at 0x100a10d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
test bl, 0x40
jne 0x100a1117
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x34], edx
cmp edx, 0xf
jae 0x100a1143
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x100a1130
movzx eax, byte [esi + 0xf]
mov ebx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x100a1167
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x100a119d
ja 0x100a1188
cmp dword [esi + 0x20], 0
jbe 0x100a119d
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x10
jb 0x100a123f
mov eax, 0xfffffff8
lea ecx, [esi + 0x10]
sub eax, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
push dword [ebp - 0x1c]
xor dword [ecx + 4], eax
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [ebp - 0x20]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
add esp, 0x18
mov esi, dword [ebp - 0x30]
inc byte [eax - 1]
lea eax, [eax - 1]
jne 0x100a1203
lea ecx, [esi + eax]
test ecx, ecx
jne 0x100a11f4
mov edx, dword [ebp - 0x24]
sub ebx, 0x10
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x2c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [ebp - 8]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [edx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [edx + 0xc], eax
add edx, 0x10
dec dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
jne 0x100a11c2
test ebx, ebx
je 0x100a129b
xor ecx, ecx
test ebx, ebx
je 0x100a125c
lea esp, [esp]
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x100a1250
push dword [ebp - 0x1c]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x20]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x20]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x100a129b
lea eax, [ebp - 0x14]
sub edi, eax
sub dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, ebx
jb 0x100a1286
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jae 0x100a12bd
mov ecx, 0x10
lea edi, [esi + eax]
sub ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret