Function at 0x10108c60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101cf170
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x164]
mov eax, dword [esi + 0x174]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, ecx
add edx, dword [esi + 0x38]
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x10108eff
jb 0x10108ca5
cmp edx, 0xffffffe0
ja 0x10108eff
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x168]
xor edx, edx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x16c], edx
je 0x10108d29
cmp ecx, edx
jne 0x10108ce7
mov ecx, dword [esi + 0x160]
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call ecx
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0x40]
mov dword [esi + 0x178], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x1c], 0x10
mov dword [esi + 0x184], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x16c], edx
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esi + 0xc]
mov edx, eax
and edx, 0xf
push edi
mov edi, dword [esp + 0x2c]
bswap ebp
mov dword [esp + 0x14], edx
je 0x10108da9
jmp 0x10108d4e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10108d7a
mov cl, byte [edi]
dec dword [esp + 0x34]
mov byte [eax + esi + 0x178], cl
mov dl, byte [edx + esi + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x14]
mov byte [ebx], dl
inc ecx
inc ebx
inc eax
inc edi
and ecx, 0xf
mov dword [esp + 0x14], ecx
jne 0x10108d46
jmp 0x10108d82
test edx, edx
jne 0x10108eef
push eax
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp ecx, 0x10
jb 0x10108dd9
test eax, eax
je 0x10108dd9
push eax
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp ecx, 0xc00
jb 0x10108e45
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x1c], edx
nop
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push esi
push edx
push 0xc0
push ebx
push edi
call dword [esp + 0x5c]
sub dword [esp + 0x58], 0xc00
add ebp, 0xc0
mov eax, ebp
add esp, 0x24
bswap eax
add ebx, 0xc00
add edi, 0xc00
dec dword [esp + 0x1c]
mov dword [esi + 0xc], eax
jne 0x10108df0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
and ecx, 0xfffffff0
mov dword [esp + 0x20], ecx
je 0x10108e94
push ecx
mov eax, ecx
push edi
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x40]
shr eax, 4
push edx
mov dword [esp + 0x2c], eax
call dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
push ebx
push edi
call dword [esp + 0x5c]
add ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edx, ebp
add ebx, eax
add edi, eax
add esp, 0x24
sub dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
bswap edx
mov dword [esi + 0xc], edx
cmp dword [esp + 0x34], 0
je 0x10108eef
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x170]
push eax
lea ecx, [esi + 0x10]
push ecx
push esi
call edx
inc ebp
bswap ebp
mov dword [esi + 0xc], ebp
mov ebp, dword [esp + 0x20]
add esp, 0xc
lea eax, [ebx + ebp]
lea ebp, [esi + ebp + 0x10]
sub edi, ebx
mov cl, byte [edi + eax]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
inc dword [esp + 0x28]
mov byte [esi + ebx + 0x178], cl
mov bl, byte [ebp]
xor bl, cl
dec edx
mov byte [eax], bl
inc ebp
inc eax
mov dword [esp + 0x34], edx
test edx, edx
jne 0x10108ec3
mov eax, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x168], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret