Function at 0x24b8ec7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x6400104]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
xor eax, eax
mov edi, esi
xor ebx, ebx
mov ebp, ebx
mov byte [esp + 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esi], ebx
stosd dword es:[edi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x20], ebx
stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
push eax
lea ecx, [esp + 0x3c]
call fcn.024904b0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
je 0x24b913d
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esp
push dword [esp + 0x40]
call fcn.0247a84c
call fcn.024cc39a
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
je 0x24b9037
mov byte [esp + 0x10], bl
lea eax, [ecx - 4]
push dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.02479905
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0247a58e
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
push eax
call fcn.0247ab70
call fcn.024b5d47
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x20]
lea ebp, [eax + 4]
sub ecx, edx
mov edi, ebx
sub ecx, ebp
je 0x24b9075
mov al, byte [edx + edi]
mov ecx, esi
xor al, byte [ebx + 0x6400020]
cbw
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
mov edx, dword [esp + 0x20]
xor eax, eax
inc ebx
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [esp + 0x24]
sub eax, edx
inc edi
sub eax, ebp
cmp edi, eax
jb 0x24b903f
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
xor eax, eax
mov ecx, esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
call fcn.024906c6
lea ecx, [esp + 0x14]
call fcn.0247fe0d
lea ecx, [esp + 0x20]
call fcn.0247fe0d
lea ecx, [esp + 0x38]
call fcn.0247fe0d
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.02585cf8
add esp, 0x20
ret
lea ecx, [esp + 0x38]
call fcn.0247ff7a
int3