Function at 0x10100d20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.10156030
mov edx, dword [esp + 0x34]
xor ecx, ecx
push ebx
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x170]
mov ebx, dword [esi + 0x160]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x28], eax
mov eax, edx
add eax, dword [esi + 0x38]
mov dword [esp + 0x24], ebx
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x10100fcf
jb 0x10100d7a
cmp eax, 0xffffffe0
ja 0x10100fcf
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
je 0x10100db1
push eax
push ecx
call ebx
mov edx, dword [esp + 0x44]
lea ecx, [esi + 0x40]
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x10100db9
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esi + 0x168]
mov dword [esp + 0x18], ebp
bswap eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x10100e23
mov dword [esp + 0x18], ecx
nop
test edx, edx
je 0x10100e0b
mov cl, byte [esi + ebp + 0x10]
lea eax, [esi + 0x40]
xor cl, byte [edi]
dec edx
mov byte [ebx], cl
inc edi
xor byte [eax + ebp], cl
inc ebx
inc ebp
mov dword [esp + 0x18], eax
and ebp, 0xf
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], ebp
jne 0x10100de0
mov ecx, eax
jmp 0x10100e17
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x10100fbf
lea eax, [esi + 0x60]
push eax
push ecx
call dword [esp + 0x34]
add esp, 8
mov ecx, dword [esp + 0x44]
cmp ecx, 0xc00
jb 0x10100edb
mov ebp, dword [esp + 0x10]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x2c], edx
nop word [eax + eax]
mov dword [esp + 0x18], 0xc0
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x34]
inc ebp
add esp, 0xc
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x18], 1
jne 0x10100e58
push 0xc00
lea eax, [ebx - 0xc00]
mov dword [esp + 0x14], ebp
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
add esp, 0x10
sub ecx, 0xc00
sub dword [esp + 0x2c], 1
mov dword [esp + 0x44], ecx
jne 0x10100e50
mov ebp, dword [esp + 0x1c]
mov edx, ecx
and edx, 0xfffffff0
mov dword [esp + 0x18], edx
je 0x10100f75
cmp ecx, 0x10
jb 0x10100f5c
mov ebp, dword [esp + 0x44]
lea eax, [esi + 0x10]
shr ecx, 4
mov dword [esp + 0x2c], ecx
nop dword [eax]
push dword [esp + 0x24]
push eax
push esi
call dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
sub ebp, 0x10
mov dword [esp + 0x10], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x2c], 1
lea eax, [esi + 0x10]
jne 0x10100f00
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x1c]
push edx
mov eax, ebx
sub eax, edx
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
add esp, 0x10
test ecx, ecx
je 0x10100fbf
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x44]
inc eax
bswap eax
mov dword [esi + 0xc], eax
sub edi, ebx
lea esi, [ebx + ebp]
nop dword [eax]
mov eax, dword [esp + 0x14]
lea esi, [esi + 1]
mov cl, byte [eax + ebp - 0x30]
xor cl, byte [edi + esi - 1]
mov byte [esi - 1], cl
xor byte [eax + ebp], cl
inc ebp
sub edx, 1
jne 0x10100fa0
mov esi, dword [esp + 0x38]
pop edi
mov dword [esi + 0x168], ebp
xor eax, eax
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret