Function at 0x100822b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.1011abd0
push ebx
mov ebx, dword [esp + 0x20]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x160]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x18], eax
mov eax, esi
add eax, dword [ebx + 0x38]
mov dword [esp + 0x24], edx
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x100824db
jb 0x10082300
cmp eax, 0xffffffe0
ja 0x100824db
cmp dword [ebx + 0x16c], 0
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
je 0x10082334
push eax
push ecx
call edx
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [ebx + 0x16c], 0
jmp 0x1008233c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x168]
mov dword [esp + 0x24], ecx
push ebp
mov ebp, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x34], eax
push edi
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x100823a9
nop dword [eax]
test esi, esi
je 0x10082399
mov al, byte [ecx + ebx + 0x10]
dec esi
xor al, byte [ebp]
inc ebp
mov byte [edi], al
inc edi
xor byte [ecx + ebx + 0x40], al
inc ecx
and ecx, 0xf
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ecx
jne 0x10082360
lea eax, [ebx + 0x60]
lea ecx, [ebx + 0x40]
push eax
push ecx
call edx
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x2c], eax
jmp 0x100823ad
pop edi
pop ebp
pop esi
mov dword [ebx + 0x168], ecx
xor eax, eax
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x3c]
cmp esi, 0xc00
jb 0x10082426
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [esp + 0x10], edx
nop word [eax + eax]
push ebx
push dword [esp + 0x20]
push 0xc0
push edi
push ebp
call ecx
mov eax, dword [esp + 0x4c]
push 0xc00
push edi
push dword [esp + 0x30]
add eax, 0xc0
push dword [esp + 0x38]
mov dword [esp + 0x5c], eax
bswap eax
mov dword [ebx + 0xc], eax
call dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
sub esi, 0xc00
sub dword [esp + 0x10], 1
jne 0x100823d0
mov dword [esp + 0x10], edi
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x10082473
push ebx
push dword [esp + 0x20]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x1c]
push ebp
call ecx
mov eax, dword [esp + 0x4c]
add eax, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
add ebp, eax
push eax
push edi
push dword [esp + 0x30]
sub esi, eax
push dword [esp + 0x38]
call dword [esp + 0x44]
add esp, 0x24
add edi, dword [esp + 0x24]
test esi, esi
je 0x100824c7
push dword [esp + 0x1c]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [esp + 0x44]
lea ecx, [ebx + 0x40]
inc eax
add esp, 0xc
bswap eax
mov dword [ebx + 0xc], eax
sub ebp, edi
mov eax, dword [esp + 0x2c]
add ecx, eax
lea edx, [eax + edi]
add eax, esi
mov dword [esp + 0x2c], eax
nop dword [eax]
mov al, byte [edx + ebp]
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 0x100824b0
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
mov dword [ebx + 0x168], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret