Function at 0x2fdcb6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ecx + 0x80]
push ebx
mov ebx, dword [eax + 0x80]
movzx eax, word [ebx + 0x42a]
movzx edx, word [ebx + 0x434]
mov dword [ebp - 0x28], ecx
mov ecx, eax
push esi
shr ecx, 5
push edi
mov edi, 0xffff
and ecx, 3
and eax, 0x1f
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], edx
cmp edx, edi
jne 0x2fdd21
cmp ax, 7
jne 0x2fdd21
test cx, cx
jne 0x2fdd0b
mov eax, dword [ebx + 0x42c]
jmp 0x2fdd11
mov eax, dword [ebx + 0x430]
movzx ecx, ax
mov eax, ecx
shl eax, 0x10
or eax, ecx
xor esi, esi
xor edx, edx
jmp 0x2fdd66
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.002fd188
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x20]
and eax, edi
mov esi, eax
shl esi, 0x10
or esi, eax
mov eax, dword [ebp - 0x20]
not eax
or eax, dword [ebp - 0x24]
and ecx, edi
and eax, edi
mov edx, eax
shl edx, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
movzx ebx, word [ebx + 0x454]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x80]
mov dword [ebp - 0x2c], edi
mov edi, dword [ecx + 0x4e8]
mov ecx, dword [ecx + 0x500]
add ecx, edi
mov dword [ebp - 0x20], ecx
mov ecx, ebx
imul ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ecx, ebx
lea ecx, [edi + ecx*2]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
sub ecx, ebx
lea edi, [ecx + ecx]
mov dword [ebp - 0x1c], edi
cmp edi, 0x20
jae 0x2fddcc
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], ecx
jmp 0x2fdde8
mov edi, dword [ebp - 4]
neg edi
shr edi, 1
and edi, 0xf
sub ecx, edi
mov dword [ebp - 0x14], ecx
and ecx, 0xf
shr dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ecx
test edx, edx
jne 0x2fde67
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 8]
mov edi, ecx
jge 0x2fe378
mov ebx, dword [ebp - 0x18]
add ebx, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 4], ebx
add edx, ecx
cmp edx, dword [ebp - 0x20]
ja 0x2fe378
mov esi, dword [ebp - 0xc]
test esi, esi
jbe 0x2fde27
mov edx, ecx
inc ecx
inc ecx
dec esi
mov word [edx], ax
jne 0x2fde1d
mov edx, dword [ebp - 0x14]
test edx, edx
jbe 0x2fde4b
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
add ecx, 0x20
dec edx
jne 0x2fde2e
mov esi, dword [ebp - 0x10]
test esi, esi
jbe 0x2fde5c
mov edx, ecx
inc ecx
inc ecx
dec esi
mov word [edx], ax
jne 0x2fde52
inc edi
cmp edi, dword [ebp - 8]
jl 0x2fde02
jmp 0x2fe378
test esi, esi
jne 0x2fe051
test eax, eax
jne 0x2fdefb
cmp edx, 0xffffffff
je 0x2fe378
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 8]
mov edi, eax
jge 0x2fe378
mov ebx, dword [ebp - 0x18]
add ebx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 4], ebx
add ecx, eax
cmp ecx, dword [ebp - 0x20]
ja 0x2fe378
mov esi, dword [ebp - 0xc]
test esi, esi
jbe 0x2fdebb
mov ecx, eax
and word [ecx], dx
inc eax
inc eax
dec esi
jne 0x2fdeb1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jbe 0x2fdedf
and dword [eax], edx
and dword [eax + 4], edx
and dword [eax + 8], edx
and dword [eax + 0xc], edx
and dword [eax + 0x10], edx
and dword [eax + 0x14], edx
and dword [eax + 0x18], edx
and dword [eax + 0x1c], edx
add eax, 0x20
dec ecx
jne 0x2fdec2
mov esi, dword [ebp - 0x10]
test esi, esi
jbe 0x2fdef0
mov ecx, eax
and word [ecx], dx
inc eax
inc eax
dec esi
jne 0x2fdee6
inc edi
cmp edi, dword [ebp - 8]
jl 0x2fde96
jmp 0x2fe378
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp edx, 0xffffffff
jne 0x2fdf7f
cmp ecx, dword [ebp - 8]
mov edi, ecx
jge 0x2fe378
mov ebx, dword [ebp - 0x18]
add ebx, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 4], ebx
add edx, ecx
cmp edx, dword [ebp - 0x20]
ja 0x2fe378
cmp dword [ebp - 0xc], 0
jbe 0x2fdf3d
mov esi, dword [ebp - 0xc]
mov edx, ecx
or word [edx], ax
inc ecx
inc ecx
dec esi
jne 0x2fdf33
mov edx, dword [ebp - 0x14]
test edx, edx
jbe 0x2fdf61
or dword [ecx], eax
or dword [ecx + 4], eax
or dword [ecx + 8], eax
or dword [ecx + 0xc], eax
or dword [ecx + 0x10], eax
or dword [ecx + 0x14], eax
or dword [ecx + 0x18], eax
or dword [ecx + 0x1c], eax
add ecx, 0x20
dec edx
jne 0x2fdf44
cmp dword [ebp - 0x10], 0
jbe 0x2fdf74
mov esi, dword [ebp - 0x10]
mov edx, ecx
or word [edx], ax
inc ecx
inc ecx
dec esi
jne 0x2fdf6a
inc edi
cmp edi, dword [ebp - 8]
jl 0x2fdf16
jmp 0x2fe378
cmp ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
jge 0x2fe378
mov ecx, dword [ebp - 0x18]
add ecx, ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], esi
mov esi, dword [ebp - 0x1c]
add esi, ecx
cmp esi, dword [ebp - 0x20]
ja 0x2fe378
cmp dword [ebp - 0xc], 0
jbe 0x2fdfc6
mov ebx, dword [ebp - 0xc]
mov esi, ecx
mov di, word [esi]
inc ecx
and di, dx
or di, ax
inc ecx
dec ebx
mov word [esi], di
jne 0x2fdfb3
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x2fe021
mov edi, dword [ecx]
and edi, edx
or edi, eax
mov dword [ecx], edi
mov edi, edx
and edi, dword [ecx + 4]
add ecx, 0x20
or edi, eax
mov dword [ecx - 0x1c], edi
mov edi, dword [ecx - 0x18]
and edi, edx
or edi, eax
mov dword [ecx - 0x18], edi
mov edi, edx
and edi, dword [ecx - 0x14]
or edi, eax
mov dword [ecx - 0x14], edi
mov edi, dword [ecx - 0x10]
and edi, edx
or edi, eax
mov dword [ecx - 0x10], edi
mov edi, edx
and edi, dword [ecx - 0xc]
or edi, eax
mov dword [ecx - 0xc], edi
mov edi, dword [ecx - 8]
and edi, edx
or edi, eax
mov dword [ecx - 8], edi
mov edi, edx
and edi, dword [ecx - 4]
or edi, eax
dec esi
mov dword [ecx - 4], edi
jne 0x2fdfcd
cmp dword [ebp - 0x10], 0
jbe 0x2fe03d
mov ebx, dword [ebp - 0x10]
mov esi, ecx
mov di, word [esi]
inc ecx
and di, dx
or di, ax
inc ecx
dec ebx
mov word [esi], di
jne 0x2fe02a
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 8]
jl 0x2fdf93
jmp 0x2fe378
test eax, eax
jne 0x2fe1af
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp edx, 0xffffffff
jne 0x2fe0dd
cmp eax, dword [ebp - 8]
mov edi, eax
jge 0x2fe378
mov ebx, dword [ebp - 0x18]
add ebx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 4], ebx
add ecx, eax
cmp ecx, dword [ebp - 0x20]
ja 0x2fe378
cmp dword [ebp - 0xc], 0
jbe 0x2fe09b
mov edx, dword [ebp - 0xc]
mov ecx, eax
xor word [ecx], si
inc eax
inc eax
dec edx
jne 0x2fe091
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jbe 0x2fe0bf
xor dword [eax], esi
xor dword [eax + 4], esi
xor dword [eax + 8], esi
xor dword [eax + 0xc], esi
xor dword [eax + 0x10], esi
xor dword [eax + 0x14], esi
xor dword [eax + 0x18], esi
xor dword [eax + 0x1c], esi
add eax, 0x20
dec ecx
jne 0x2fe0a2
cmp dword [ebp - 0x10], 0
jbe 0x2fe0d2
mov edx, dword [ebp - 0x10]
mov ecx, eax
xor word [ecx], si
inc eax
inc eax
dec edx
jne 0x2fe0c8
inc edi
cmp edi, dword [ebp - 8]
jl 0x2fe074
jmp 0x2fe378
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jge 0x2fe378
mov eax, dword [ebp - 0x18]
add eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp ecx, dword [ebp - 0x20]
ja 0x2fe378
cmp dword [ebp - 0xc], 0
jbe 0x2fe124
mov ebx, dword [ebp - 0xc]
mov ecx, eax
mov di, word [ecx]
inc eax
xor di, si
and di, dx
inc eax
dec ebx
mov word [ecx], di
jne 0x2fe111
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jbe 0x2fe17f
mov edi, dword [eax]
xor edi, esi
and edi, edx
mov dword [eax], edi
mov edi, dword [eax + 4]
xor edi, esi
and edi, edx
mov dword [eax + 4], edi
mov edi, dword [eax + 8]
xor edi, esi
and edi, edx
mov dword [eax + 8], edi
mov edi, dword [eax + 0xc]
xor edi, esi
and edi, edx
mov dword [eax + 0xc], edi
mov edi, dword [eax + 0x10]
xor edi, esi
and edi, edx
mov dword [eax + 0x10], edi
mov edi, dword [eax + 0x14]
xor edi, esi
and edi, edx
mov dword [eax + 0x14], edi
mov edi, dword [eax + 0x18]
xor edi, esi
and edi, edx
mov dword [eax + 0x18], edi
mov edi, dword [eax + 0x1c]
xor edi, esi
and edi, edx
mov dword [eax + 0x1c], edi
add eax, 0x20
dec ecx
jne 0x2fe12b
cmp dword [ebp - 0x10], 0
jbe 0x2fe19b
mov ebx, dword [ebp - 0x10]
mov ecx, eax
mov di, word [ecx]
inc eax
xor di, si
and di, dx
inc eax
dec ebx
mov word [ecx], di
jne 0x2fe188
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 8]
jl 0x2fe0f1
jmp 0x2fe378
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
cmp edx, 0xffffffff
jne 0x2fe290
cmp ecx, dword [ebp - 8]
jge 0x2fe378
mov ecx, dword [ebp - 0x18]
add ecx, ecx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], edx
mov edx, dword [ebp - 0x1c]
add edx, ecx
cmp edx, dword [ebp - 0x20]
ja 0x2fe378
cmp dword [ebp - 0xc], 0
jbe 0x2fe205
mov ebx, dword [ebp - 0xc]
mov edx, ecx
mov di, word [edx]
inc ecx
xor di, si
or di, ax
inc ecx
dec ebx
mov word [edx], di
jne 0x2fe1f2
mov edx, dword [ebp - 0x14]
test edx, edx
jbe 0x2fe260
mov edi, dword [ecx]
xor edi, esi
or edi, eax
mov dword [ecx], edi
mov edi, dword [ecx + 4]
xor edi, esi
or edi, eax
mov dword [ecx + 4], edi
mov edi, dword [ecx + 8]
xor edi, esi
or edi, eax
mov dword [ecx + 8], edi
mov edi, dword [ecx + 0xc]
xor edi, esi
or edi, eax
mov dword [ecx + 0xc], edi
mov edi, dword [ecx + 0x10]
xor edi, esi
or edi, eax
mov dword [ecx + 0x10], edi
mov edi, dword [ecx + 0x14]
xor edi, esi
or edi, eax
mov dword [ecx + 0x14], edi
mov edi, dword [ecx + 0x18]
xor edi, esi
or edi, eax
mov dword [ecx + 0x18], edi
mov edi, dword [ecx + 0x1c]
xor edi, esi
or edi, eax
mov dword [ecx + 0x1c], edi
add ecx, 0x20
dec edx
jne 0x2fe20c
cmp dword [ebp - 0x10], 0
jbe 0x2fe27c
mov ebx, dword [ebp - 0x10]
mov edx, ecx
mov di, word [edx]
inc ecx
xor di, si
or di, ax
inc ecx
dec ebx
mov word [edx], di
jne 0x2fe269
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 8]
jl 0x2fe1d2
jmp 0x2fe378
cmp ecx, dword [ebp - 8]
jge 0x2fe378
mov ecx, dword [ebp - 0x18]
add ecx, ecx
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp - 4]
mov ecx, edi
add edi, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x1c]
add edi, ecx
cmp edi, dword [ebp - 0x20]
ja 0x2fe378
mov edi, dword [ebp - 0xc]
test edi, edi
jbe 0x2fe2dc
mov dword [ebp - 0x2c], edi
mov edi, ecx
mov bx, word [edi]
xor bx, si
inc ecx
and bx, dx
or bx, ax
inc ecx
dec dword [ebp - 0x2c]
mov word [edi], bx
jne 0x2fe2c4
mov edi, dword [ebp - 0x14]
test edi, edi
jbe 0x2fe347
mov ebx, dword [ecx]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx], ebx
mov ebx, dword [ecx + 4]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 4], ebx
mov ebx, dword [ecx + 8]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 8], ebx
mov ebx, dword [ecx + 0xc]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 0xc], ebx
mov ebx, dword [ecx + 0x10]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 0x10], ebx
mov ebx, dword [ecx + 0x14]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 0x14], ebx
mov ebx, dword [ecx + 0x18]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 0x18], ebx
mov ebx, dword [ecx + 0x1c]
xor ebx, esi
and ebx, edx
or ebx, eax
mov dword [ecx + 0x1c], ebx
add ecx, 0x20
dec edi
jne 0x2fe2e3
mov edi, dword [ebp - 0x10]
test edi, edi
jbe 0x2fe369
mov dword [ebp - 0x2c], edi
mov edi, ecx
mov bx, word [edi]
xor bx, si
inc ecx
and bx, dx
or bx, ax
inc ecx
dec dword [ebp - 0x2c]
mov word [edi], bx
jne 0x2fe351
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 8]
jl 0x2fe2a1
mov eax, dword [ebp - 0x30]
push 2
push dword [eax + 0x3cc]
mov eax, dword [ebp - 0x28]
push dword [ebp + 8]
mov ecx, dword [eax + 0x80]
call fcn.002fd3a6
pop edi
pop esi
pop ebx
leave
ret 4