Function at 0x5ec96c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.0040af90
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*4]
call fcn.0040686c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0xf
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x5eca4f
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea eax, [eax + edx*8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0xc]
fld dword [eax]
fcomp dword [edx]
wait
fnstsw ax
sahf
setae dl
and edx, 0x7f
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
fld dword [eax]
fcomp dword [ecx + 8]
wait
fnstsw ax
sahf
setbe al
and eax, 0x7f
add eax, eax
or edx, eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
fld dword [eax + 4]
fcomp dword [ecx + 4]
wait
fnstsw ax
sahf
setae al
and eax, 0x7f
shl eax, 2
or edx, eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
fld dword [eax + 4]
fcomp dword [ecx + 0xc]
wait
fnstsw ax
sahf
setbe al
and eax, 0x7f
shl eax, 3
or edx, eax
mov dword [ebp - 0x40], edx
mov al, byte [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x40]
and dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
or dword [ebp - 0x38], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x44]
jne 0x5ec9b9
cmp dword [ebp - 0x34], 0xf
jne 0x5eca6b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x5f580c]
call fcn.0040b31c
jmp 0x5ecc5b
cmp dword [ebp - 0x38], 0xf
je 0x5eca84
mov eax, dword [ebp - 0x18]
mov edx, dword [0x5f580c]
call fcn.0040b2d8
jmp 0x5ecc5b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
movzx eax, byte [eax + edx - 1]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x5ecad6
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x40]
mov eax, dword [eax*4 + 0x6f93d0]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x44]
jne 0x5ecaab
mov eax, dword [ebp - 0x14]
shl eax, 3
call fcn.0040686c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
shl eax, 3
call fcn.0040686c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
shl ecx, 3
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.00406a30
mov eax, dword [ebp - 0x30]
sub eax, 2
test eax, eax
jl 0x5ecb2d
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
inc eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x44]
jne 0x5ecb18
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
test byte [ebp - 0x34], 1
jne 0x5ecb69
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax]
mov edx, 0x5ec678
mov eax, 1
call fcn.005ec7d8
pop ecx
test al, al
jne 0x5ecc4b
test byte [ebp - 0x34], 2
jne 0x5ecb8e
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
mov edx, 0x5ec678
mov eax, 2
call fcn.005ec7d8
pop ecx
test al, al
jne 0x5ecc4b
test byte [ebp - 0x34], 4
jne 0x5ecbb3
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov edx, 0x5ec6cc
mov eax, 4
call fcn.005ec7d8
pop ecx
test al, al
jne 0x5ecc4b
test byte [ebp - 0x34], 8
jne 0x5ecbd4
push ebp
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
mov edx, 0x5ec6cc
mov eax, 8
call fcn.005ec7d8
pop ecx
test al, al
jne 0x5ecc4b
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x5f580c]
call fcn.0040b1b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x5ecc01
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp byte [eax + edx], 0
je 0x5ecbf5
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x24]
mov esi, dword [ecx + ebx*8]
mov dword [eax + edx*8], esi
mov esi, dword [ecx + ebx*8 + 4]
mov dword [eax + edx*8 + 4], esi
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jne 0x5ecc18
mov eax, dword [ebp - 0x1c]
call fcn.00406888
mov eax, dword [ebp - 4]
call fcn.00406888
mov eax, dword [ebp - 0x10]
call fcn.00406888
pop esi
pop ebx
mov esp, ebp
pop ebp
ret