Function at 0x100248c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1004e3b0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov ebx, ebp
je 0x10024a1a
mov edx, dword [esp + 0x48]
cmp edx, 0x10
jb 0x100249a1
shr edx, 4
mov dword [esp + 0x10], edx
jmp 0x10024910
mov edx, edi
sub edx, ebx
mov dword [esp + 0x1c], edx
mov edx, esi
mov eax, ebx
sub edx, ebx
mov ebx, edi
sub ebx, esi
lea ebp, [edi + 3]
lea ecx, [esi + 1]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 4
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [ebp - 1]
add ebp, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [ebp - 4]
dec dword [esp + 0x20]
mov byte [ecx - 2], bl
jne 0x10024934
mov ecx, dword [esp + 0x14]
push ecx
push esi
push esi
call fcn.10022ba0
sub dword [esp + 0x54], 0x10
mov ebx, esi
add esp, 0xc
add edi, 0x10
add esi, 0x10
dec dword [esp + 0x10]
jne 0x10024910
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x18]
test edx, edx
je 0x10024a01
mov ecx, edi
sub ecx, ebx
mov edi, esi
mov eax, ebx
mov dword [esp + 0x1c], ecx
sub edi, ebx
mov dword [esp + 0x10], edx
jmp 0x100249c4
mov ecx, dword [esp + 0x1c]
mov cl, byte [eax + ecx]
xor cl, byte [eax]
inc eax
dec dword [esp + 0x10]
mov byte [eax + edi - 1], cl
jne 0x100249c0
cmp edx, 0x10
jae 0x100249f0
mov edi, ebx
mov ecx, 0x10
sub edi, esi
lea eax, [esi + edx]
sub ecx, edx
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec ecx
jne 0x100249e7
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.10022ba0
add esp, 0xc
mov ebx, esi
mov ecx, dword [ebx]
mov dword [ebp], ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0xc]
jmp 0x10024c0c
mov eax, dword [esp + 0x48]
cmp edi, esi
je 0x10024af6
cmp eax, 0x10
jb 0x10024a8e
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
push edx
push esi
push edi
call fcn.10023a30
mov ebp, ebx
add esp, 0xc
lea ecx, [ebx + 2]
mov eax, esi
sub ebp, esi
mov edx, 4
nop
movzx ebx, byte [eax + ebp]
xor byte [eax], bl
movzx ebx, byte [ecx - 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx]
xor byte [eax + 2], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
dec edx
jne 0x10024a50
sub dword [esp + 0x48], 0x10
mov ebx, edi
add edi, 0x10
add esi, 0x10
dec dword [esp + 0x10]
jne 0x10024a32
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10024acc
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.10023a30
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x48], ecx
jbe 0x10024aca
lea edx, [esp + 0x28]
mov eax, edx
sub ebx, edx
sub esi, eax
lea eax, [esp + ecx + 0x28]
mov dl, byte [eax + ebx]
xor dl, byte [eax]
inc ecx
mov byte [eax + esi], dl
cmp ecx, dword [esp + 0x48]
jb 0x10024ab7
mov ebx, edi
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1003d054
add esp, 0x2c
ret
cmp eax, 0x10
jb 0x10024b9a
sub ebx, esi
shr eax, 4
mov dword [esp + 0x18], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0xc]
push esi
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call fcn.10023a30
mov eax, esi
add esp, 0xc
lea ecx, [ebp + 2]
mov esi, 4
lea esp, [esp]
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec esi
jne 0x10024b40
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x48], 0x10
mov dword [ebp], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x34]
add edi, 0x10
sub ebx, 0x10
dec dword [esp + 0x18]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov esi, eax
jne 0x10024b08
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10024c0f
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x38], eax
push edx
mov eax, edx
push eax
call fcn.10023a30
mov edx, dword [esp + 0x54]
add esp, 0xc
xor ecx, ecx
test edx, edx
je 0x10024bf3
lea eax, [esp + 0x28]
mov edi, ebp
sub edi, eax
sub esi, eax
lea eax, [esp + ecx + 0x28]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [eax + esi], bl
cmp ecx, edx
jb 0x10024be2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003d054
add esp, 0x2c
ret