Function at 0x2988a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x15b8
call fcn.02989520
mov ebx, ecx
mov edi, dword [esp + 0x15d0]
mov ecx, dword [esp + 0x15cc]
pxor xmm0, xmm0
movdqu xmmword [esp + 0x34], xmm0
movdqu xmmword [esp + 0x44], xmm0
movdqu xmmword [esp + 0x54], xmm0
movdqu xmmword [esp + 0x64], xmm0
movdqu xmmword [esp + 0x74], xmm0
movdqu xmmword [esp + 0x84], xmm0
movdqu xmmword [esp + 0x94], xmm0
movdqu xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xb4], 0
cmp dword [esp + 0x15d4], 0
mov dword [esp + 0x18], edx
je 0x2988b1c
test ecx, ecx
jle 0x2989393
xor eax, eax
cmp ecx, 1
je 0x2988ae8
and ecx, 0xfffffffe
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*8]
shl eax, 5
lea edx, [eax + ebx]
add edx, 0x8f13
xor eax, eax
nop dword [eax + eax]
movzx esi, byte [edx + eax - 1]
inc dword [esp + esi*4 + 0x34]
movzx esi, byte [edx + eax]
inc dword [esp + esi*4 + 0x34]
add eax, 2
cmp ecx, eax
jne 0x2988ad0
mov ecx, dword [esp + 0x15cc]
test cl, 1
je 0x2989393
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*8]
shl ecx, 5
add ecx, ebx
movzx eax, byte [eax + ecx + 0x8f12]
mov ecx, dword [esp + 0x15cc]
inc dword [esp + eax*4 + 0x34]
jmp 0x2989393
lea edi, [edx + edx*8]
mov eax, edi
shl eax, 6
mov dword [esp + 0x14], eax
test ecx, ecx
mov dword [esp + 0xc], ebx
jle 0x2988c19
cmp ecx, 1
jne 0x2988e1b
mov ebp, ebx
xor eax, eax
xor ebx, ebx
mov ecx, dword [esp + 0x15cc]
test cl, 1
je 0x2988b75
mov ecx, dword [esp + 0x14]
add ecx, ebp
add ecx, 0x8192
movzx ecx, word [ecx + eax*2]
test cx, cx
je 0x2988b75
mov word [esp + ebx*4 + 0xb8], cx
mov word [esp + ebx*4 + 0xba], ax
inc ebx
lea eax, [esp + 0x538]
push 0x800
push 0
push eax
call fcn.029895d0
add esp, 0xc
test ebx, ebx
sete byte [esp + 0x10]
je 0x2988c30
xor eax, eax
cmp ebx, 1
je 0x2988bef
mov ecx, ebx
and ecx, 0xfffffffe
xor eax, eax
nop word [eax + eax]
movzx edx, word [esp + eax*4 + 0xb8]
movzx esi, dl
inc dword [esp + esi*4 + 0x538]
shr edx, 8
inc dword [esp + edx*4 + 0x938]
movzx edx, word [esp + eax*4 + 0xbc]
movzx esi, dl
inc dword [esp + esi*4 + 0x538]
shr edx, 8
inc dword [esp + edx*4 + 0x938]
add eax, 2
cmp ecx, eax
jne 0x2988bb0
test bl, 1
je 0x2988c10
movzx eax, word [esp + eax*4 + 0xb8]
movzx ecx, al
inc dword [esp + ecx*4 + 0x538]
shr eax, 8
inc dword [esp + eax*4 + 0x938]
mov eax, dword [esp + 0x938]
jmp 0x2988c39
lea eax, [esp + 0x538]
push 0x800
push 0
push eax
call fcn.029895d0
add esp, 0xc
xor ebx, ebx
mov byte [esp + 0x10], 1
xor eax, eax
mov dword [esp + 0x2c], edi
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, 2
sub eax, ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0xb8]
mov dword [esp + 4], eax
xor ecx, ecx
lea edx, [esp + 0x1138]
lea esi, [esp + 0x538]
xor eax, eax
mov dword [esp], ebx
jmp 0x2988c9e
mov eax, dword [esp + 0x1c]
inc eax
add ecx, 8
mov esi, dword [esp + 8]
add esi, 0x400
mov edx, ebp
cmp eax, dword [esp + 0x30]
je 0x2988d51
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 4]
mov dword [esp + 4], edx
mov edx, 3
xor edi, edi
nop word cs:[eax + eax]
mov dword [esp + edx*4 + 0xd2c], edi
add edi, dword [esi + edx*4 - 0xc]
mov dword [esp + edx*4 + 0xd30], edi
add edi, dword [esi + edx*4 - 8]
mov dword [esp + edx*4 + 0xd34], edi
add edi, dword [esi + edx*4 - 4]
mov dword [esp + edx*4 + 0xd38], edi
add edi, dword [esi + edx*4]
add edx, 4
cmp edx, 0x103
jne 0x2988cc0
mov dword [esp + 8], esi
cmp byte [esp + 0x10], 0
mov edi, dword [esp + 4]
jne 0x2988c80
xor edx, edx
nop dword [eax + eax]
movzx eax, word [ebp + edx*4]
shr eax, cl
movzx eax, al
mov esi, ebp
mov ebp, edi
mov edi, dword [esp + eax*4 + 0xd38]
lea ebx, [edi + 1]
mov dword [esp + eax*4 + 0xd38], ebx
mov ebx, dword [esp]
mov eax, dword [esi + edx*4]
mov dword [ebp + edi*4], eax
mov edi, ebp
mov ebp, esi
mov eax, edx
and eax, 1
xor edx, 1
lea edx, [edx + eax*2]
cmp edx, ebx
jb 0x2988d10
jmp 0x2988c80
test ebx, ebx
mov ebx, dword [esp + 4]
je 0x2989265
mov esi, dword [esp]
cmp esi, 1
jne 0x2988d6f
mov word [ebx], 1
jmp 0x298901c
movzx eax, word [ebx + 4]
add word [ebx], ax
lea ebp, [esi - 2]
cmp esi, 3
jl 0x2988e85
mov dword [esp + 0x1c], ebp
mov ecx, 2
mov edx, 2
sub edx, esi
xor esi, esi
mov ebp, 1
jmp 0x2988dbb
movzx edi, word [ebx + esi*4]
add word [ebx + ebp*4], di
mov word [ebx + esi*4], bp
inc esi
lea eax, [edx + ebp]
inc eax
inc ebp
cmp eax, 1
je 0x2988e91
cmp ecx, dword [esp]
jge 0x2988de0
movzx edi, word [ebx + ecx*4]
movzx eax, word [ebx + esi*4]
cmp ax, di
jb 0x2988de4
inc ecx
mov word [ebx + ebp*4], di
cmp ecx, dword [esp]
jge 0x2988da0
jmp 0x2988df2
movzx eax, word [ebx + esi*4]
mov word [ebx + ebp*4], ax
mov word [ebx + esi*4], bp
inc esi
cmp ecx, dword [esp]
jge 0x2988da0
cmp esi, ebp
jge 0x2988e10
movzx edi, word [ebx + esi*4]
movzx eax, word [ebx + ecx*4]
cmp di, ax
jb 0x2988da4
jmp 0x2988e14
movzx eax, word [ebx + ecx*4]
inc ecx
add word [ebx + ebp*4], ax
jmp 0x2988dad
and ecx, 0xfffffffe
mov eax, dword [esp + 0x14]
mov ebp, ebx
lea edx, [eax + ebx]
add edx, 0x8194
xor eax, eax
xor ebx, ebx
jmp 0x2988e4b
add eax, 2
cmp ecx, eax
je 0x2988b43
movzx esi, word [edx + eax*2 - 2]
test si, si
je 0x2988e66
mov word [esp + ebx*4 + 0xb8], si
mov word [esp + ebx*4 + 0xba], ax
inc ebx
movzx esi, word [edx + eax*2]
test si, si
je 0x2988e40
mov word [esp + ebx*4 + 0xb8], si
lea esi, [eax + 1]
mov word [esp + ebx*4 + 0xba], si
inc ebx
jmp 0x2988e40
mov word [ebx + esi*4 - 8], 0
jmp 0x2988f11
mov eax, dword [esp]
mov word [ebx + eax*4 - 8], 0
lea edx, [eax - 3]
mov ebp, dword [esp + 0x1c]
mov esi, ebp
mov ecx, edx
and esi, 3
je 0x2988ec1
mov ecx, edx
nop dword [eax]
movzx eax, word [ebx + ecx*4]
movzx eax, word [ebx + eax*4]
inc eax
mov word [ebx + ecx*4], ax
dec ecx
dec esi
jne 0x2988eb0
cmp edx, 3
jb 0x2988f11
inc ecx
nop word [eax + eax]
movzx eax, word [ebx + ecx*4 - 4]
movzx eax, word [ebx + eax*4]
inc eax
mov word [ebx + ecx*4 - 4], ax
movzx eax, word [ebx + ecx*4 - 8]
movzx eax, word [ebx + eax*4]
inc eax
mov word [ebx + ecx*4 - 8], ax
movzx eax, word [ebx + ecx*4 - 0xc]
movzx eax, word [ebx + eax*4]
inc eax
mov word [ebx + ecx*4 - 0xc], ax
movzx eax, word [ebx + ecx*4 - 0x10]
movzx eax, word [ebx + eax*4]
inc eax
mov word [ebx + ecx*4 - 0x10], ax
add ecx, 0xfffffffc
jne 0x2988ed0
mov ecx, dword [esp]
mov eax, ecx
or eax, 0xfffffffe
and ecx, 0xfffffffe
add ecx, eax
inc ecx
xor edx, edx
mov esi, 1
jmp 0x2988f40