Function at 0x100ba8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x18]
mov eax, dword [ebx + 0x164]
mov edx, dword [ebx + 0x160]
mov dword [ebp - 0xc], eax
mov eax, esi
add eax, dword [ebx + 0x38]
mov dword [ebp - 0x10], edx
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x100baabe
jb 0x100ba90e
cmp eax, 0xffffffe0
ja 0x100baabe
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x40]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x60]
cmp dword [ebx + 0x174], 0
je 0x100ba934
push ecx
push eax
call edx
add esp, 8
mov dword [ebx + 0x174], 0
mov edx, dword [ebx + 0x170]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x18], edx
push edi
mov edi, dword [ebp + 0x10]
test edx, edx
je 0x100ba995
test esi, esi
je 0x100ba983
mov al, byte [edx + ebx + 0x10]
dec esi
xor al, byte [edi]
inc edi
mov byte [ecx], al
inc ecx
xor byte [edx + ebx + 0x40], al
inc edx
and edx, 0xf
mov dword [ebp + 8], ecx
mov dword [ebp - 8], edi
mov dword [ebp + 0x18], edx
jne 0x100ba948
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x18], eax
jmp 0x100ba99b
pop edi
pop esi
mov dword [ebx + 0x170], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], ecx
mov dword [ebp - 8], edi
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [ebp - 4], eax
cmp esi, 0xc00
jb 0x100baa15
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [ebp - 8], edx
nop dword [eax + eax]
push ebx
push dword [ebp + 0xc]
push 0xc0
push ecx
push edi
call dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
add eax, 0xc0
mov dword [ebp - 4], eax
bswap eax
push 0xc00
push dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add esp, 0x24
add ecx, 0xc00
add edi, 0xc00
sub esi, 0xc00
mov dword [ebp + 8], ecx
sub dword [ebp - 8], 1
jne 0x100ba9c0
mov dword [ebp - 8], edi
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 0x10], eax
je 0x100baa5f
push ebx
push dword [ebp + 0xc]
mov edi, eax
shr edi, 4
push edi
push ecx
push dword [ebp - 8]
call dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
add edi, eax
push eax
push dword [ebp + 8]
sub esi, eax
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add esp, 0x24
add dword [ebp + 8], eax
test esi, esi
je 0x100baaa9
push dword [ebp + 0xc]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x168]
push ebx
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp + 0x18]
inc eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
sub edi, eax
lea edx, [ecx + eax]
add ecx, 0x40
add ecx, ebx
add dword [ebp + 0x18], esi
mov al, byte [edi + edx]
lea edx, [edx + 1]
xor al, byte [ecx - 0x30]
lea ecx, [ecx + 1]
mov byte [edx - 1], al
xor byte [ecx - 1], al
sub esi, 1
jne 0x100baa92
mov ecx, dword [ebp + 0x18]
mov eax, 1
pop edi
pop esi
mov dword [ebx + 0x170], ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret