Function at 0x10100ae0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.10156030
push ebx
mov ebx, dword [esp + 0x34]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x174]
mov edx, dword [ebp + 0x160]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x164]
mov dword [esp + 0x20], eax
mov eax, ebx
add eax, dword [ebp + 0x38]
mov dword [esp + 0x24], edx
adc ecx, dword [ebp + 0x3c]
cmp ecx, 0xf
ja 0x10100d16
jb 0x10100b30
cmp eax, 0xffffffe0
ja 0x10100d16
cmp dword [ebp + 0x16c], 0
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x40]
mov dword [ebp + 0x3c], ecx
lea ecx, [ebp + 0x60]
mov dword [esp + 0x10], eax
je 0x10100b5f
push ecx
push eax
call edx
add esp, 8
mov dword [ebp + 0x16c], 0
lea eax, [ebp + 0x40]
jmp 0x10100b63
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [ebp + 0x168]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
bswap ecx
mov dword [esp + 0x14], ecx
test edi, edi
je 0x10100be5
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], edx
test ebx, ebx
je 0x10100bcb
mov al, byte [edi + ebp + 0x10]
dec ebx
mov cl, byte [esi]
inc esi
xor al, cl
mov dword [esp + 0x10], esi
mov byte [edx], al
lea eax, [ebp + 0x40]
xor byte [eax + edi], cl
inc edx
inc edi
mov dword [esp + 0x40], edx
and edi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
jne 0x10100b90
lea ecx, [ebp + 0x60]
push ecx
push eax
call dword [esp + 0x34]
add esp, 8
jmp 0x10100bed
mov eax, dword [esp + 0x1c]
test edi, edi
jne 0x10100d06
lea ecx, [ebp + 0x60]
push ecx
push eax
call dword [esp + 0x34]
add esp, 8
jmp 0x10100bed
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
cmp ebx, 0xc00
jb 0x10100c64
mov edi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x1c], edx
push 0xc00
push esi
lea eax, [ebp + 0x60]
push eax
push edi
call dword [esp + 0x38]
push ebp
push dword [esp + 0x34]
push 0xc0
push dword [esp + 0x5c]
push esi
call dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add dword [esp + 0x40], 0xc00
add ecx, 0xc0
mov eax, ecx
mov dword [esp + 0x14], ecx
bswap eax
add esi, 0xc00
mov dword [ebp + 0xc], eax
sub ebx, 0xc00
sub dword [esp + 0x1c], 1
jne 0x10100c07
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x10100cb9
push eax
push dword [esp + 0x14]
mov esi, eax
lea eax, [ebp + 0x60]
push eax
push dword [esp + 0x24]
shr esi, 4
call dword [esp + 0x38]
push ebp
push dword [esp + 0x34]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x30]
call dword [esp + 0x68]
mov eax, dword [esp + 0x38]
add esp, 0x24
add eax, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x2c]
add esi, eax
add dword [esp + 0x40], eax
sub ebx, eax
test ebx, ebx
je 0x10100d06
push dword [esp + 0x20]
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x170]
push ebp
call eax
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x40]
sub esi, eax
mov ebp, dword [esp + 0x18]
lea edx, [edi + eax]
mov cl, byte [esi + edx]
lea eax, [edi + ebp]
xor byte [eax], cl
lea edx, [edx + 1]
mov al, byte [edi + ebp - 0x30]
inc edi
xor al, cl
mov byte [edx - 1], al
sub ebx, 1
jne 0x10100ce8
mov ebp, dword [esp + 0x34]
mov dword [ebp + 0x168], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret