Function at 0x100244b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [esi]
test al, 0x40
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
jne 0x10024510
push edx
lea edx, [esi + 0x10]
push edx
push esi
call ecx
movzx eax, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
cmp eax, 0xf
mov dword [esp + 0x14], edx
jae 0x10024545
lea esp, [esp]
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
add eax, 1
shl ecx, 8
cmp eax, 0xf
jb 0x10024530
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x48]
or ecx, eax
cmp ecx, edi
mov byte [esi + 0xf], 1
je 0x1002456c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d6528
add esp, 0x2c
ret
lea ecx, [edi + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x100245a4
ja 0x1002458d
cmp dword [esi + 0x20], 0
jbe 0x100245a4
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d6528
add esp, 0x2c
ret
push ebp
mov ebp, edi
shr ebp, 4
je 0x100245e1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push ebp
push ecx
push ebx
call dword [esp + 0x3c]
shl ebp, 4
mov edx, ebp
add dword [esp + 0x34], edx
add esp, 0x18
add ebx, edx
sub edi, edx
je 0x10024649
shr edx, 4
mov ecx, esi
call fcn.10024470
mov edx, dword [esp + 0x18]
test edi, edi
je 0x1002464d
xor eax, eax
test edi, edi
jbe 0x100245fe
jmp 0x100245f0
mov dl, byte [ebx + eax]
xor byte [esi + eax + 0x10], dl
add eax, 1
cmp eax, edi
jb 0x100245f0
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call ebp
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test edi, edi
jbe 0x10024649
lea edx, [esp + 0x28]
mov ebp, ebx
sub ebp, edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
sub edx, eax
lea eax, [esp + ecx + 0x28]
mov bl, byte [eax + ebp]
xor bl, byte [eax]
add ecx, 1
cmp ecx, edi
mov byte [edx + eax], bl
jb 0x10024636
mov edx, dword [esp + 0x18]
cmp edx, 0x10
pop ebp
jae 0x10024669
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.100d7a80
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d6528
add esp, 0x2c
ret