Function at 0x415d18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, 0x484f98
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 2
jmp 0x415f51
mov eax, dword [0x484f90]
shl eax, 5
mov edx, dword [ebx]
add edx, 3
xor ecx, ecx
mov cl, byte [edx + 0x454e43]
xor eax, ecx
and eax, 0x7fff
mov dword [0x484f90], eax
mov eax, dword [0x484f90]
movzx edi, word [eax*2 + 0x474e44]
mov eax, dword [ebx]
and eax, 0x7fff
mov word [eax*2 + 0x464e44], di
mov edx, dword [0x484f90]
mov cx, word [ebx]
mov word [edx*2 + 0x474e44], cx
mov dword [0x484f94], esi
mov eax, dword [0x484f9c]
mov dword [ebp - 4], eax
mov esi, 2
test edi, edi
je 0x415ddf
mov eax, dword [0x484f94]
cmp eax, dword [0x484fac]
jae 0x415ddf
mov edx, dword [ebx]
sub edx, edi
cmp edx, 0x7efa
ja 0x415ddf
push edi
call fcn.00415ace
pop ecx
mov esi, eax
cmp esi, dword [0x484fa4]
jbe 0x415dca
mov esi, dword [0x484fa4]
cmp esi, 3
jne 0x415ddf
mov eax, dword [ebx]
sub eax, dword [0x484f9c]
cmp eax, 0x1000
jbe 0x415ddf
dec esi
cmp dword [0x484f94], 3
jb 0x415eca
cmp esi, dword [0x484f94]
ja 0x415eca
mov edx, dword [0x484f94]
sub edx, 3
push edx
mov ecx, dword [ebx]
dec ecx
sub ecx, dword [ebp - 4]
push ecx
call fcn.00416c82
add esp, 8
mov edx, dword [0x484f94]
dec edx
sub dword [0x484fa4], edx
sub dword [0x484f94], 2
inc dword [ebx]
mov ecx, dword [0x484f90]
shl ecx, 5
mov edx, dword [ebx]
add edx, 3
movzx edx, byte [edx + 0x454e43]
xor ecx, edx
and ecx, 0x7fff
mov dword [0x484f90], ecx
mov ecx, dword [0x484f90]
movzx edi, word [ecx*2 + 0x474e44]
mov edx, dword [ebx]
and edx, 0x7fff
mov word [edx*2 + 0x464e44], di
mov ecx, dword [0x484f90]
mov dx, word [ebx]
mov word [ecx*2 + 0x474e44], dx
dec dword [0x484f94]
jne 0x415e25
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, 2
inc dword [ebx]
test eax, eax
je 0x415f3c
push 0
mov eax, dword [ebx]
sub eax, dword [0x484f8c]
push eax
cmp dword [0x484f8c], 0
jl 0x415eb6
mov edx, 0x454e44
add edx, dword [0x484f8c]
jmp 0x415eb8
xor edx, edx
push edx
call fcn.00416ae5
add esp, 0xc
mov eax, dword [ebx]
mov dword [0x484f8c], eax
jmp 0x415f3c
cmp dword [ebp - 8], 0
je 0x415f26
mov ecx, dword [ebx]
xor eax, eax
mov al, byte [ecx + 0x454e43]
push eax
push 0
call fcn.00416c82
add esp, 8
test eax, eax
je 0x415f1c
push 0
mov edx, dword [ebx]
sub edx, dword [0x484f8c]
push edx
cmp dword [0x484f8c], 0
jl 0x415f0a
mov ecx, 0x454e44
add ecx, dword [0x484f8c]
jmp 0x415f0c
xor ecx, ecx
push ecx
call fcn.00416ae5
add esp, 0xc
mov eax, dword [ebx]
mov dword [0x484f8c], eax
inc dword [ebx]
dec dword [0x484fa4]
jmp 0x415f3c
mov dword [ebp - 8], 1
inc dword [ebx]
dec dword [0x484fa4]
jmp 0x415f3c
call fcn.00415c14
cmp dword [0x484fa4], 0x106
jae 0x415f51
cmp dword [0x484fa0], 0
je 0x415f37
cmp dword [0x484fa4], 0
jne 0x415d35
cmp dword [ebp - 8], 0
je 0x415f79
mov edx, dword [ebx]
xor eax, eax
mov al, byte [edx + 0x454e43]
push eax
push 0
call fcn.00416c82
add esp, 8
push 1
mov edx, dword [ebx]
sub edx, dword [0x484f8c]
push edx
cmp dword [0x484f8c], 0
jl 0x415f9a
mov ecx, 0x454e44
add ecx, dword [0x484f8c]
jmp 0x415f9c
xor ecx, ecx
push ecx
call fcn.00416ae5
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret