Function at 0x5ec710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc0], 0
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x28]
push edi
shr esi, 3
xor edi, edi
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xbc], 2
cmp esi, 0x14
je 0x5ec79b
cmp esi, 0x1c
je 0x5ec79b
cmp esi, 0x20
je 0x5ec79b
xor eax, eax
jmp 0x5ece27
test ebx, ebx
jne 0x5ec7c4
cmp esi, 0x14
jne 0x5ec7ab
call fcn.005474e9
jmp 0x5ec7bc
cmp esi, 0x1c
jne 0x5ec7b7
call fcn.005474ef
jmp 0x5ec7bc
call fcn.005474f5
mov dword [ebp - 0x94], eax
jmp 0x5ec7cd
push ebx
call fcn.0054f2fe
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x9c]
mov eax, 0x200
cmp dword [ebp + 0xc], eax
cmovae eax, dword [ebp + 0xc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x5ec81e
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x5ec80d
push 0x55
push 0x84b7d8
push 0x6e
push 0x7d
push 0xa
call fcn.00553208
add esp, 0x14
jmp 0x5ec794
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
call fcn.007390e0
add esp, 0xc
call fcn.00580b3e
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x5ece07
call fcn.00564eb1
mov edi, eax
test edi, edi
je 0x5ece07
push edi
call fcn.00564f0f
push edi
call fcn.00564e52
push edi
mov dword [ebp - 0x88], eax
call fcn.00564e52
push edi
mov dword [ebp - 0xa4], eax
call fcn.00564e52
push edi
mov dword [ebp - 0xb4], eax
call fcn.00564e52
push edi
mov dword [ebp - 0x98], eax
call fcn.00564e52
push edi
mov dword [ebp - 0xa0], eax
call fcn.00564e52
push edi
mov dword [ebp - 0xc8], eax
call fcn.00564e52
push edi
mov dword [ebp - 0x8c], eax
call fcn.00564e52
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0xd0], ebx
test ebx, ebx
je 0x5ece07
mov eax, dword [ebp - 0xc4]
dec eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0054d738
push eax
push ebx
call fcn.00581b9b
add esp, 0xc
test eax, eax
je 0x5ece07
push dword [ebp - 0xb0]
xor ebx, ebx
cmp dword [ebp - 0x9c], ebx
push 0
push dword [ebp - 0x90]
sete bl
call fcn.00567374
add esp, 0xc
inc dword [ebp - 0xb0]
test eax, eax
je 0x5ece07
cmp dword [ebp - 0x9c], 0
jne 0x5ec926
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00554e04
pop ecx
pop ecx
test eax, eax
jle 0x5ece07
jmp 0x5ec92d
and dword [ebp - 0x9c], 0
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.007390e0
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.007390e0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x5ec962
add byte [ebp + eax - 0x44], 1
jne 0x5ec962
sub eax, 1
jns 0x5ec956
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0056fe28
add esp, 0x18
test eax, eax
je 0x5ece07
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0056fe28
add esp, 0x18
test eax, eax
je 0x5ece07
xor ecx, ecx
test esi, esi
jle 0x5ec9c1
mov al, byte [ebp + ecx - 0x84]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, esi
jl 0x5ec9b1
push dword [ebp - 0x98]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + esi - 0x25], 1
push esi
push eax
call fcn.0054d00c
add esp, 0xc
test eax, eax
je 0x5ece07
push dword [ebp - 0x90]
push ebx
push edi
push 0x40
push dword [ebp - 0x98]
call fcn.005675d0
add esp, 0x14
test eax, eax
jg 0x5eca0c
je 0x5ec8d8
jmp 0x5ece07
mov ebx, dword [ebp - 0x90]
push 0
push 2
push ebx
call fcn.00567374
add esp, 0xc
test eax, eax
je 0x5ece07
push 0
push 3
push ebx
call fcn.00567374
add esp, 0xc
test eax, eax
je 0x5ece07
mov eax, dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0xac], 0xa0
dec eax
xor edx, edx
mov dword [ebp - 0xb8], ecx
div dword [ebp - 0xac]
mov dword [ebp - 0xac], eax
jmp 0x5eca6b
mov ebx, dword [ebp - 0x90]
test ecx, ecx
je 0x5eca83
push ecx
push 0
push ebx
call fcn.00567374
add esp, 0xc
test eax, eax
je 0x5ece07
push 0
push dword [ebp - 0xb4]
call fcn.0054d69c
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0xac], ebx
jl 0x5ecb3d
lea eax, [esi - 1]
test eax, eax
js 0x5ecab3
add byte [ebp + eax - 0x44], 1
jne 0x5ecab3
sub eax, 1
jns 0x5ecaa7
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0056fe28
add esp, 0x18
test eax, eax
je 0x5ece07
push dword [ebp - 0x88]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0054d00c
add esp, 0xc
test eax, eax
je 0x5ece07
mov eax, esi
shl eax, 3
imul eax, ebx
push eax
mov eax, dword [ebp - 0x88]
push eax
push eax
call fcn.00581b9b
add esp, 0xc
test eax, eax
je 0x5ece07
push dword [ebp - 0x88]
mov eax, dword [ebp - 0xb4]
push eax
push eax
call fcn.00565132
add esp, 0xc
test eax, eax
je 0x5ece07
inc ebx
cmp ebx, dword [ebp - 0xac]
jle 0x5ecaa0
push dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xb4]
push ebx
call fcn.0054d43f
pop ecx
pop ecx
test eax, eax
je 0x5ece07
push ebx
push dword [ebp - 0xa0]
call fcn.0054d28f
pop ecx
pop ecx
test eax, eax
je 0x5ece07
mov ebx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xa0]
push ebx
push eax
push eax
call fcn.00565132
add esp, 0xc
test eax, eax
je 0x5ece07
push dword [ebp - 0x98]
push dword [ebp - 0x88]
call fcn.00581be1
pop ecx
pop ecx
test eax, eax
je 0x5ece07
push edi
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0xc8]
push 0
call fcn.00565f5c
add esp, 0x14
test eax, eax
je 0x5ece07
call fcn.0054d738
push eax
push dword [ebp - 0xc8]
push dword [ebp - 0x88]
call fcn.00565193
add esp, 0xc
test eax, eax
je 0x5ece07
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0x8c]
call fcn.00565193
add esp, 0xc
test eax, eax
je 0x5ece07
push ebx
push dword [ebp - 0x8c]
call fcn.0054d18c
pop ecx
pop ecx
test eax, eax
js 0x5ecc47
push dword [ebp - 0x90]
push 1
push edi
push 0x40
push dword [ebp - 0x8c]
call fcn.005675d0
add esp, 0x14
test eax, eax
jg 0x5ecc65
jne 0x5ece07
mov ecx, dword [ebp - 0xb8]
inc ecx
mov dword [ebp - 0xb8], ecx
cmp ecx, 0x1000
jl 0x5eca65
jmp 0x5ec8d8
push 1
push 2
push dword [ebp - 0x90]
call fcn.00567374
add esp, 0xc
test eax, eax
je 0x5ece07
call fcn.0054d738
push eax
push dword [ebp - 0x8c]
push ebx
call fcn.00565193
add esp, 0xc
test eax, eax
je 0x5ece07
push edi
push dword [ebp - 0x98]
push ebx
push 0
push dword [ebp - 0x88]
call fcn.00565f5c
add esp, 0x14
test eax, eax
je 0x5ece07
push 2
push ebx
call fcn.0054d69c
pop ecx
pop ecx
test eax, eax
je 0x5ece07
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
call fcn.00580b89
add esp, 0xc
test eax, eax
je 0x5ece07
jmp 0x5ecd1b
push dword [ebp - 0xa4]
call fcn.0054d3df
pop ecx
test eax, eax
je 0x5ecd46
call fcn.0054d738
push eax
push ebx
push ebx
call fcn.00565132
add esp, 0xc
test eax, eax
je 0x5ece07
inc dword [ebp - 0xbc]
push dword [ebp - 0xa8]
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push ebx
push dword [ebp - 0xa4]
call fcn.005a794a
add esp, 0x18
test eax, eax
jne 0x5ecced
jmp 0x5ece07
xor ebx, ebx
inc ebx
push ebx
push 3
push dword [ebp - 0x90]
call fcn.00567374
add esp, 0xc
test eax, eax
je 0x5ece07
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0xd4]
push dword [ebx + 8]
call fcn.0054d318
push dword [ebx + 0xc]
call fcn.0054d318
push dword [ebx + 0x10]
call fcn.0054d318
push dword [ebp - 0x8c]
call fcn.0054d2d6
push dword [ebp - 0x98]
mov dword [ebx + 8], eax
call fcn.0054d2d6
push dword [ebp - 0xa4]
mov dword [ebx + 0xc], eax
call fcn.0054d2d6
xor ecx, ecx
mov dword [ebx + 0x10], eax
add esp, 0x18
cmp dword [ebx + 8], ecx
je 0x5ece01
cmp dword [ebx + 0xc], ecx
je 0x5ece01
test eax, eax
je 0x5ece01
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x5ecdd5
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x5ecde7
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x5ece07
push esi
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.007390e0
add esp, 0xc
jmp 0x5ece07
mov dword [ebp - 0xc0], ecx
push edi
call fcn.00564db2
push edi
call fcn.00564e16
push dword [ebp - 0xa8]
call fcn.00580ac2
mov eax, dword [ebp - 0xc0]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret