Function at 0x100ba1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x18]
xor edx, edx
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x168]
mov ebx, dword [edi + 0x160]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x164]
mov dword [ebp - 0x1c], eax
mov eax, ecx
add eax, dword [edi + 0x38]
mov dword [ebp - 0x18], ebx
adc edx, dword [edi + 0x3c]
cmp edx, 0xf
ja 0x100ba441
jb 0x100ba237
cmp eax, 0xffffffe0
ja 0x100ba441
mov dword [edi + 0x38], eax
lea eax, [edi + 0x40]
mov dword [edi + 0x3c], edx
lea edx, [edi + 0x60]
cmp dword [edi + 0x174], 0
je 0x100ba260
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x18]
add esp, 8
mov dword [edi + 0x174], 0
mov eax, dword [edi + 0x170]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x100ba2bf
test ecx, ecx
je 0x100ba42f
mov dl, byte [ebx]
lea ecx, [eax + edi]
mov al, byte [ecx + 0x10]
inc ebx
xor al, dl
mov dword [ebp - 8], ebx
mov byte [esi], al
inc esi
xor byte [ecx + 0x40], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
inc eax
dec ecx
and eax, 0xf
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], eax
jne 0x100ba274
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], ecx
jmp 0x100ba2c2
mov dword [ebp - 8], ebx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ebp - 0xc], eax
cmp ecx, 0xc00
jb 0x100ba35d
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x18], edx
push 0xc00
push ebx
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
nop
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
push eax
push edi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
sub ebx, esi
nop
mov ecx, eax
lea edx, [eax + esi]
shr ecx, 2
add eax, 4
mov ecx, dword [edi + ecx*4 + 0x10]
xor ecx, dword [ebx + edx]
mov dword [edx], ecx
cmp eax, 0x10
jb 0x100ba320
mov ebx, dword [ebp - 8]
add esi, 0x10
add ebx, 0x10
sub dword [ebp - 0x14], 1
mov dword [ebp - 8], ebx
jne 0x100ba300
mov ecx, dword [ebp + 0x18]
sub ecx, 0xc00
sub dword [ebp - 0x18], 1
mov dword [ebp + 0x18], ecx
jne 0x100ba2e3
mov eax, ecx
and eax, 0xfffffff0
je 0x100ba3da
push eax
push ebx
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp ecx, 0x10
jb 0x100ba3da
shr ecx, 4
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], ecx
push dword [ebp + 0xc]
push eax
push edi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
xor edx, edx
mov dword [ebp - 0xc], eax
sub ebx, esi
bswap eax
mov dword [edi + 0xc], eax
mov dword [ebp - 0x18], ebx
mov eax, edx
lea ecx, [edx + esi]
shr eax, 2
add edx, 4
mov eax, dword [edi + eax*4 + 0x10]
xor eax, dword [ebx + ecx]
mov dword [ecx], eax
cmp edx, 0x10
jb 0x100ba3a3
mov ebx, dword [ebp - 8]
lea eax, [edi + 0x10]
mov ecx, dword [ebp + 0x18]
add ebx, 0x10
sub ecx, 0x10
mov dword [ebp - 8], ebx
add esi, 0x10
mov dword [ebp + 0x18], ecx
sub dword [ebp - 0x1c], 1
jne 0x100ba385
test ecx, ecx
je 0x100ba42c
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
push eax
push edi
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x40]
mov eax, dword [ebp - 0xc]
sub ebx, esi
inc eax
add esp, 0xc
bswap eax
mov dword [edi + 0xc], eax
add edx, ecx
lea eax, [ecx + esi]
mov esi, dword [ebp + 0x18]
add ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ecx
mov edi, eax
nop
mov cl, byte [edi + ebx]
lea edx, [edx + 1]
mov al, byte [edx - 0x31]
lea edi, [edi + 1]
xor byte [edx - 1], cl
xor al, cl
mov byte [edi - 1], al
sub esi, 1
jne 0x100ba410
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop esi
mov dword [edi + 0x170], eax
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret