Function at 0x6e2e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov edx, 1
shl edx, cl
mov esi, dword [esp + 0x38]
mov eax, 1
lea ebp, [edx - 1]
cmp edi, 0xffffffff
mov dword [esp + 8], edx
je 0x6e2f40
dec cl
mov edx, 0x10000
shl edx, cl
sar edx, 0x10
mov dword [esp], edx
lea edx, [edi + 1]
test edi, edi
mov dword [esp + 4], edx
je 0x6e2f57
and edx, 0xfffffffe
mov eax, 1
xor ecx, ecx
mov ebx, ebp
jmp 0x6e2ef0
lea edi, [ecx + 1]
mov esi, dword [esp + 0x38]
mov dword [esi + ebx*8 + 0xc], edi
dec ebx
mov di, 1
mov esi, dword [esp + 0x50]
mov word [esi + ecx*2 + 2], di
add ecx, 2
cmp edx, ecx
je 0x6e2f5b
mov esi, dword [esp + 0x3c]
movsx edi, word [esi + ecx*2]
cmp edi, 0xffffffff
je 0x6e2f10
cmp dword [esp], edi
mov esi, 0
cmovle eax, esi
jmp 0x6e2f1d
mov esi, dword [esp + 0x38]
mov dword [esi + ebx*8 + 0xc], ecx
dec ebx
mov di, 1
mov esi, dword [esp + 0x50]
mov word [esi + ecx*2], di
mov esi, dword [esp + 0x3c]
movsx edi, word [esi + ecx*2 + 2]
cmp edi, 0xffffffff
je 0x6e2ed0
cmp dword [esp], edi
mov esi, 0
cmovle eax, esi
jmp 0x6e2ee0
mov dword [esi], 1
mov dword [esi + 4], ecx
mov eax, edx
shr eax, 1
mov ecx, edx
shr ecx, 3
jmp 0x6e31b4
xor ecx, ecx
mov ebx, ebp
test byte [esp + 4], 1
mov edi, dword [esp + 0x38]
je 0x6e2f92
mov edx, dword [esp + 0x3c]
movsx edx, word [edx + ecx*2]
cmp edx, 0xffffffff
je 0x6e2f81
xor edi, edi
cmp dword [esp], edx
cmovle eax, edi
mov edi, dword [esp + 0x38]
jmp 0x6e2f8a
mov dword [edi + ebx*8 + 0xc], ecx
dec ebx
mov dx, 1
mov esi, dword [esp + 0x50]
mov word [esi + ecx*2], dx
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov eax, dword [esp + 8]
mov ecx, eax
shr ecx, 3
cmp ebx, ebp
jne 0x6e3123
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x50]
lea ecx, [eax + 0x6a]
mov dword [esp + 0x14], ecx
add eax, 0xe2
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
xor edx, edx
xor esi, esi
jmp 0x6e2ff8
mov eax, esi
mov esi, dword [esp]
add esi, eax
mov edi, dword [esp + 4]
lea eax, [edi + 1]
add ecx, 0x1010101
adc edx, 0x1010101
cmp edi, dword [esp + 0x40]
mov edi, eax
mov ebx, ecx
je 0x6e31aa
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
movsx eax, word [eax + edi*2]
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi + 4], edx
mov dword [esp], esi
mov dword [ecx + esi], ebx
mov esi, eax
cmp eax, 9
mov ecx, ebx
jl 0x6e2fd0
mov dword [esp + 0xc], ecx
mov eax, dword [esp]
mov ecx, dword [esp + 0x14]
lea ebx, [ecx + eax]
lea ecx, [esi - 9]
mov eax, 8
cmp ecx, 0x18
jb 0x6e30ff
mov dword [esp + 0x20], esi
shr ecx, 3
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
movd xmm0, dword [esp + 0xc]
movd xmm1, edx
punpckldq xmm0, xmm1
pshufd xmm0, xmm0, 0x44
add ecx, 0xfffffffd
mov edi, ecx
shr edi, 2
inc edi
mov esi, edi
and esi, 3
xor eax, eax
cmp ecx, 0xc
jb 0x6e30b7
and edi, 0xfffffffc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp]
add ecx, eax
xor eax, eax
nop
movdqu xmmword [ecx + eax*8 - 0x70], xmm0
movdqu xmmword [ecx + eax*8 - 0x60], xmm0
movdqu xmmword [ecx + eax*8 - 0x50], xmm0
movdqu xmmword [ecx + eax*8 - 0x40], xmm0
movdqu xmmword [ecx + eax*8 - 0x30], xmm0
movdqu xmmword [ecx + eax*8 - 0x20], xmm0
movdqu xmmword [ecx + eax*8 - 0x10], xmm0
movdqu xmmword [ecx + eax*8], xmm0
add eax, 0x10
add edi, 0xfffffffc
jne 0x6e3080
mov edi, dword [esp + 0x10]
and edi, 0xfffffffc
test esi, esi
je 0x6e30e6
shl eax, 3
nop word cs:[eax + eax]
mov ecx, eax
or ecx, 8
movdqu xmmword [ebx + ecx], xmm0
movdqu xmmword [ebx + ecx + 0x10], xmm0
add eax, 0x20
dec esi
jne 0x6e30d0
cmp dword [esp + 0x10], edi
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
je 0x6e2fd0
lea eax, [edi*8 + 8]
mov ecx, dword [esp + 0xc]
nop word cs:[eax + eax]
mov dword [ebx + eax], ecx
mov dword [ebx + eax + 4], edx
add eax, 8
cmp eax, esi
jl 0x6e3110
jmp 0x6e2fd0
shr eax, 1
add eax, ecx
add eax, 3
xor ecx, ecx
xor edx, edx
jmp 0x6e313f
lea esi, [edx + 1]
cmp edx, dword [esp + 0x40]
mov edx, esi
je 0x6e3209
mov esi, dword [esp + 0x3c]
movsx esi, word [esi + edx*2]
test esi, esi
jle 0x6e3130
cmp si, 1
mov dword [esp + 4], esi
je 0x6e3190
and esi, 0xfffffffe
mov dword [esp], esi
xor esi, esi
nop dword [eax]
mov dword [edi + ecx*8 + 0xc], edx
nop word cs:[eax + eax]
add ecx, eax
and ecx, ebp
cmp ecx, ebx
ja 0x6e3170
mov dword [edi + ecx*8 + 0xc], edx
nop dword [eax]
add ecx, eax
and ecx, ebp
cmp ecx, ebx
ja 0x6e3180
add esi, 2
cmp esi, dword [esp]
jne 0x6e3160
test byte [esp + 4], 1
je 0x6e3130
mov dword [edi + ecx*8 + 0xc], edx
nop dword [eax + eax]
add ecx, eax
and ecx, ebp
cmp ecx, ebx
ja 0x6e31a0
jmp 0x6e3130
mov eax, dword [esp + 8]
shr eax, 1
mov ecx, dword [esp + 0x18]
add eax, ecx
add eax, 3
mov dword [esp], eax
mov eax, dword [esp]
add eax, eax
mov dword [esp + 4], eax
xor edx, edx
xor esi, esi
nop dword [eax]
mov edi, esi
and edi, ebp
mov ecx, dword [esp + 0x50]
movzx ebx, byte [ecx + edx + 0x6a]
mov eax, dword [esp + 0x38]
mov dword [eax + edi*8 + 0xc], ebx
mov eax, dword [esp]
lea edi, [esi + eax]
and edi, ebp
movzx ebx, byte [ecx + edx + 0x6b]
mov eax, dword [esp + 0x38]
mov dword [eax + edi*8 + 0xc], ebx
add esi, dword [esp + 4]
and esi, ebp
add edx, 2
cmp edx, dword [esp + 8]
jb 0x6e31d0
mov eax, dword [esp + 0x4c]
add eax, 0xffffffe1
mov dword [esp], eax
xor esi, esi
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 8]
nop dword [eax]
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + esi*8 + 0xc]
movzx ebx, word [ebp + edi*2]
lea ecx, [ebx + 1]
mov word [ebp + edi*2], cx
bsr ecx, ebx
xor ecx, 0x1f
add ecx, dword [esp]
mov edx, dword [esp + 0x38]
mov byte [edx + esi*8 + 0xb], cl
shl ebx, cl
sub ebx, eax
mov ecx, dword [esp + 0x38]
mov word [ecx + esi*8 + 8], bx
mov ecx, dword [esp + 0x48]
movzx ecx, byte [ecx + edi]
mov edx, dword [esp + 0x38]
mov byte [edx + esi*8 + 0xa], cl
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + edi*4]
mov edx, dword [esp + 0x38]
mov dword [edx + esi*8 + 0xc], ecx
inc esi
cmp eax, esi
jne 0x6e3220
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret