Function at 0x6ea308
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6ea643
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
imul esi, edi, 0x3e8
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x424]
mov edx, esi
call fcn.006cf178
test al, al
je 0x6ea36e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
mov eax, dword [0x824ad4]
mov eax, dword [eax]
mov ecx, 0xc8
call fcn.006cfd80
jmp 0x6ea628
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x420]
mov edx, edi
call fcn.006cf178
test al, al
je 0x6ea628
mov edi, dword [ebp - 8]
mov eax, dword [ebx + 0x414]
mov edx, 0x20
call fcn.00425208
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6ea621
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x6ea3ba
call fcn.00409be4
jmp 0x6ea628
mov edx, dword [edi + 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0042538c
movzx eax, byte [ebx + 0x41c]
sub al, 1
jb 0x6ea3e5
je 0x6ea482
sub al, 3
je 0x6ea523
jmp 0x6ea604
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
imul dword [edx + 4]
call fcn.00406a98
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
imul ecx, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004252c4
lea eax, [ebx + 0x14]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x10]
mov eax, ebx
call fcn.006eaa98
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
imul edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
call fcn.00406ae8
mov eax, 8
call fcn.00406a98
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
push ebx
push 0x6eac08
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.00424ba0
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x824ad4]
mov eax, dword [eax]
call fcn.006cfc0c
mov dword [edi + 4], eax
push 0
mov eax, dword [ebx + 0x424]
mov ecx, edi
mov edx, esi
call fcn.006cefac
jmp 0x6ea604
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
imul dword [edx + 4]
add eax, eax
call fcn.00406a98
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
imul dword [edx + 4]
mov ecx, eax
add ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004252c4
mov edx, edi
mov ecx, dword [ebp - 0x10]
mov eax, ebx
call fcn.006ea654
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
imul dword [edx + 4]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406ae8
mov eax, 8
call fcn.00406a98
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
push ebx
push 0x6eac08
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00424ba0
mov edx, dword [ebp - 0x30]
mov eax, dword [0x824ad4]
mov eax, dword [eax]
call fcn.006cfc0c
mov dword [edi + 4], eax
push 0
mov eax, dword [ebx + 0x424]
mov ecx, edi
mov edx, esi
call fcn.006cefac
jmp 0x6ea604
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
imul dword [edx + 4]
add eax, eax
call fcn.00406a98
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
imul dword [edx + 4]
mov ecx, eax
add ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004252c4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
imul dword [edx + 4]
add eax, eax
test eax, eax
jl 0x6ea59a
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx eax, byte [ecx]
xor al, 0xaf
xor dl, al
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x6ea574
mov edx, edi
mov ecx, dword [ebp - 0x10]
mov eax, ebx
call fcn.006ea654
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
imul dword [edx + 4]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406ae8
mov eax, 8
call fcn.00406a98
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
push ebx
push 0x6eac08
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.00424ba0
mov edx, dword [ebp - 0x34]
mov eax, dword [0x824ad4]
mov eax, dword [eax]
call fcn.006cfc0c
mov dword [edi + 4], eax
push 0
mov eax, dword [ebx + 0x424]
mov ecx, edi
mov edx, esi
call fcn.006cefac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ea628
cmp dword [ebp - 0xc], 0
jbe 0x6ea620
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ea64a
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040a4d0
ret