Function at 0x25408e7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x6400104]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor eax, eax
push edi
mov edi, esi
xor ecx, ecx
mov ebx, ecx
mov byte [esp + 0x13], cl
mov ebp, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esi], ecx
stosd dword es:[edi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x24], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x13]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x3c]
push eax
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
lea ecx, [esp + 0x40]
call fcn.024904b0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
je 0x2540b46
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esp
push dword [esp + 0x44]
call fcn.0247a84c
call fcn.02540f50
mov edx, dword [esp + 0x2c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
je 0x2540a59
and dword [esp + 0x18], ebx
lea eax, [ecx - 4]
mov byte [esp + 0x20], bl
push dword [esp + 0x20]
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.0253fb39
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x24]
lea ebp, [eax + 4]
sub ecx, edx
xor edi, edi
sub ecx, ebp
je 0x2540a94
mov al, byte [edx + edi]
mov ecx, esi
xor al, byte [ebx + 0x6400044]
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push eax
call fcn.02490462
mov edx, dword [esp + 0x24]
xor eax, eax
inc ebx
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [esp + 0x28]
sub eax, edx
inc edi
sub eax, ebp
cmp edi, eax
jb 0x2540a61
lea eax, [esp + 0x13]
xor ebx, ebx
push eax
mov ecx, esi
mov byte [esp + 0x17], bl
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
mov ecx, esi
call fcn.02490462
lea ecx, [esp + 0x14]
call fcn.0247fe0d
lea ecx, [esp + 0x24]
call fcn.0247fe0d
lea ecx, [esp + 0x3c]
call fcn.0247fe0d
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.02585cf8
add esp, 0x24
ret
lea ecx, [esp + 0x3c]
call fcn.0247ff7a
int3